Skip to content
Snippets Groups Projects
Commit 1f6a7c29 authored by Nicolas Mansard's avatar Nicolas Mansard
Browse files

Added the function toFlags for converting integer sets to sot flags.

parent e6744caf
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,17 @@ from dynamic_graph.sot.core.math_small_entities import Derivator_of_Matrix
from dynamic_graph.sot.dynamics import *
from dynamic_graph.sot.dyninv import *
def toFlags(arr):
l=max(arr)+1
lres=[0]*l
for i in arr:
lres[i]=1
lres.reverse()
res=''
for i in lres:
res+=str(i)
return res
class MetaTask6d(object):
name=''
opPoint=''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment