This repository was archived by the owner on Nov 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Add Angular Momentum task & use base-estimator entity to achieve walk in torque control #75
Open
NoelieRamuzat
wants to merge
21
commits into
stack-of-tasks:devel
Choose a base branch
from
NoelieRamuzat:topic/tsid_am_task
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
27bac45
[Angular Momentum] Add AM task in inverse-dynamic-balance-controller …
9951391
[Inv_Dyn] Update references of contacts when they are added
c1671d1
[Base-estim] Plug base-estimator to inv_dyn entity to have updates on…
e233250
[Doc] Add documentation for walk and bellStep simulation
c05584c
[Inv_Dyn] Clean useless sendMsg
15c85a6
[DDP] Add ddp files to plugin list
1382c0a
[Inv_Dyn] Add control mode (vel/torque) and change signal phase (int)
30ff3c6
[Inv_Dyn] Wrong init size for m_q_sot (39 -> 38)
f83a15d
fix namespace issues
nim65s de4ac01
sync submodule
nim65s a6639c4
v1.5.3
nim65s da0fd7d
[Angular Momentum] Add AM task in inverse-dynamic-balance-controller …
8766480
[Inv_Dyn] Update references of contacts when they are added
6629e64
[Base-estim] Plug base-estimator to inv_dyn entity to have updates on…
2e8ba0f
[Doc] Add documentation for walk and bellStep simulation
d5ff701
[Inv_Dyn] Clean useless sendMsg
4468508
[DDP] Add ddp files to plugin list
501baec
[Inv_Dyn] Add control mode (vel/torque) and change signal phase (int)
479e4aa
[Inv_Dyn] Wrong init size for m_q_sot (39 -> 38)
cd75739
Merge remote-tracking branch 'origin/topic/tsid_am_task' into topic/t…
d7edbda
[Inv_Dyn] Fix wrong sendMsg type (ERROR to INFO)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule cmake
updated
24 files
| +6 −0 | .docs/pages/base.rst | |
| +33 −2 | .docs/pages/developers.rst | |
| +4 −0 | .docs/pages/internal.rst | |
| +111 −3 | Config.cmake.in | |
| +32 −0 | base.cmake | |
| +14 −11 | boost.cmake | |
| +2 −2 | compiler.cmake | |
| +23 −0 | componentConfig.cmake.in | |
| +3 −1 | cython/cython.cmake | |
| +2 −1 | cython/setup.in.py | |
| +474 −686 | doxygen.cmake | |
| +0 −4 | doxygen/Doxyfile.extra.in | |
| +0 −2,121 | doxygen/Doxyfile.in | |
| +10 −0 | doxygen/doxyfile.awk | |
| +26 −0 | find-external/CppAD/Findcppad.cmake | |
| +20 −0 | find-external/CppAD/Findcppadcg.cmake | |
| +5 −2 | hpp/doc.cmake | |
| +7 −3 | hpp/idl/omniidl_be_python_with_docstring.py | |
| +85 −16 | package-config.cmake | |
| +43 −9 | pkg-config.cmake | |
| +1 −1 | pkg-config.pc.cmake | |
| +58 −44 | python.cmake | |
| +14 −8 | test.cmake | |
| +141 −103 | version.cmake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Pyrene step in the air in torque control | ||
|
|
||
| In the following, we demonstrate how to run the foot sinusoid simulation with <a href="https://github.com/stack-of-tasks/sot-torque-control">sot-torque-control</a>, and talos-torque-control. | ||
|
|
||
| ## Start the simulation | ||
|
|
||
| Start the simulation with the robot in the half-sitting position: | ||
| ``` | ||
| roslaunch talos_data talos_gazebo.launch start_half_sitting:=true | ||
| ``` | ||
|
|
||
| ## Start the SoT in torque mode | ||
|
|
||
| To start the SoT in simulation in torque mode: | ||
| ``` | ||
| roslaunch roscontrol_sot_talos sot_talos_controller_gazebo_effort.launch | ||
| ``` | ||
|
|
||
| ## Run the test | ||
|
|
||
| First of all, you need to go to the folder where your script is. | ||
| For running the ddp test of talos-torque-control, assuming you are in the root directory: | ||
|
|
||
| ``` | ||
| cd script | ||
| ``` | ||
|
|
||
| Then, you can just run the test : | ||
|
|
||
| ``` | ||
| python sim_torque_bellStep.py | ||
| ``` | ||
|
|
||
| This will launch the simulation making the robot executing a sinusoid movement of its left foot in the air (a "bell step") in torque control. | ||
|
|
||
| The script also saves the dynamic graph in /tmp/sot_talos_tsid_bellStep.pdf. | ||
|
|
||
| ## Other | ||
|
|
||
| More information on how to use the SoT and how to work on Talos can be found <a href="https://wiki.laas.fr/robots/Pyrene">in the robot wiki page</a> (you need LAAS permissions to access this). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Make Pyrene walk in torque control (quasistatic trajectories) | ||
|
|
||
| In the following, we demonstrate how to run the walking simulation with <a href="https://github.com/stack-of-tasks/sot-torque-control">sot-torque-control</a>, and talos-torque-control; using the reference quasistatic trajectories computed by <a href="https://github.com/loco-3d/multicontact-api">multicontact-api</a>. | ||
|
|
||
| ## Start the simulation | ||
|
|
||
| Start the simulation with the robot in the half-sitting position: | ||
| ``` | ||
| roslaunch talos_data talos_gazebo.launch start_half_sitting:=true | ||
| ``` | ||
|
|
||
| ## Start the SoT in torque mode | ||
|
|
||
| To start the SoT in simulation in torque mode: | ||
| ``` | ||
| roslaunch roscontrol_sot_talos sot_talos_controller_gazebo_effort.launch | ||
| ``` | ||
|
|
||
| ## Run the test | ||
|
|
||
| First of all, you need to go to the folder where your script is. | ||
| For running the ddp test of talos-torque-control, assuming you are in the root directory: | ||
|
|
||
| ``` | ||
| cd script | ||
| ``` | ||
|
|
||
| Then, you can just run the test, specifying which type of walk you want the robot to execute (on spot or 20cm steps): | ||
|
|
||
| ``` | ||
| Usage: python sim_walk_torque.py walk_type:=[on_spot|walk_20] {path_folder_of_the_reference_trajectories} | ||
| ``` | ||
| For instance, for the walk on spot simulation, just run: | ||
|
|
||
| ``` | ||
| python sim_walk_torque.py on_spot | ||
| ``` | ||
|
|
||
| This will launch the simulation making the robot walk on spot in torque control (for now only a quasistatic movement). | ||
|
|
||
| The script also saves the dynamic graph in /tmp/sot_talos_tsid_walk.pdf. | ||
|
|
||
| For the 20cm walk just specify "walk_20" instead of "on_spot" in the command line. | ||
|
|
||
| If you have some reference trajectories which are not the ones of the talos-torque-control package, you can test them by specifying the absolute path of their folder: | ||
|
|
||
| ``` | ||
| python sim_walk_torque.py walk_20 path_to_folder_of_ref_trajectories | ||
| ``` | ||
|
|
||
| The trajectories must have a .dat extension and the following names: | ||
| * am.dat -> angular momentum trajectory (3D vector to 9D vector if derivatives) | ||
| * com.dat -> center of Mass trajectory (3D vector to 9D vector if derivatives) | ||
| * leftFoot.dat and rightFoot.dat -> feet trajectories (12D SE3 vector to 36D SE3 vector if derivatives) | ||
| * leftForceFoot.dat and rightForceFoot.dat -> feet forces trajectories (6D vector to 18D vector if derivatives) | ||
|
|
||
| ## Other | ||
|
|
||
| More information on how to use the SoT and how to work on Talos can be found <a href="https://wiki.laas.fr/robots/Pyrene">in the robot wiki page</a> (you need LAAS permissions to access this). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,9 +66,6 @@ class SOTIMUOFFSETCOMPENSATION_EXPORT ImuOffsetCompensation : public ::dynamicgr | |
|
|
||
| /* --- METHODS --- */ | ||
| void update_offset_impl(int iter); | ||
| void sendMsg(const std::string& msg, MsgType t = MSG_TYPE_INFO, const char* file = "", int line = 0) { | ||
| logger_.stream(t) << ("[ImuOffsetCompensation-" + name + "] " + msg, t, file, line); | ||
| } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you (re)move the sendMsg methods?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The sendMsg method have been move into the logger.h class of dynamic-graph to be used uniformly by all packages. |
||
|
|
||
| protected: | ||
| bool m_initSucceeded; /// true if the entity has been successfully initialized | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be more appropriate to have this documentation in pyrene-torque-control?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also put it in talos-torque-control. But because there were no example of use of sot-torque-control I also put it here.
But I can remove it :)