Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dyninv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Stack Of Tasks
sot-dyninv
Commits
1f6a7c29
Commit
1f6a7c29
authored
14 years ago
by
Nicolas Mansard
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/MetaTask6d.py
+11
-0
11 additions, 0 deletions
python/MetaTask6d.py
with
11 additions
and
0 deletions
python/MetaTask6d.py
+
11
−
0
View file @
1f6a7c29
...
...
@@ -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
=
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment