Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
Multicontact-api
Commits
e141335e
Commit
e141335e
authored
Apr 16, 2019
by
Guilhem Saurel
Browse files
Merge branch 'master' into devel
parents
dd50ff25
9c44f9f8
Pipeline
#4109
passed with stage
in 21 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e141335e
...
...
@@ -7,4 +7,30 @@
This package is extracted from an original work of Justin Carpentier (jcarpent@laas.fr),
with the goal to simplify the library and remove old dependencies.
This package installs a python module used to define, store and use ContactSequence objects.
This package installs a python module used to define, store and use ContactSequence objects.
Basic usage of the ContactSequence object is to initialize either an empty sequence of given size :
```
Python
cs = ContactSequenceHumanoid(num_contact_phases)
```
Or load it from a xml file :
```
Python
cs = ContactSequenceHumanoid(0)
cs.loadFromXML(filename, "ContactSequence")
```
This ContactSequence object store a sequence of ContactPhases, defining a set of active contact with their placement.
A ContactPhase can also store centroidal data : state trajectory (c,dc,L) and control trajectory (ddc,dL).
This trajectories are stored as a set of discretized points, the time corresponding to each point can be found in 'time trajectory'.
For example, to access the position of the center of mass during the first contact phase of a motion :
```
Python
phase = cs.contact_phases[0]
for k in range(len(phase.state_trajectory)):
print "c ("+str(phase.time_trajectory[k])+") = "+str(phase.state_trajectory[k][0:3])
```
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment