You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install the package +floatingBaseBalancingTorqueControlWithSimulator
- minor hack: in the main CMakeLists.txt of the whole-body-controllers, the script returns to the caller before running 'add_subdirectory(controllers)'. As a result, the respective CMakeLists.txt doesn't run, so we had to add the copy commands directly to the main CMakeLists.txt.
Copy file name to clipboardExpand all lines: controllers/+floatingBaseBalancingTorqueControlWithSimulator/README.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,17 @@ Currently, the only supported robot model is `iCubGazeboV2_5` which has the prop
41
41
42
42
### How to run the demo
43
43
44
-
You don't need any module external module running outside of Matlab. For running the simulation from the source module (for developpers wishing to perform any modification), follow the few steps below:
44
+
You don't need any module external module running outside of Matlab.
45
+
46
+
For running the simulation from the source module (for developpers wishing to perform any modification), follow the few steps below:
45
47
1. Set the `YARP_ROBOT_NAME` environment variable to the desired model. The default and only currently supported model is `iCubGazeboV2_5`. There is no direct link with Gazebo. This model is suitable for the `matlab-whole-body-simulator` because of the modified inertia of the intermediate small and light links within the 3-DoF joints (shoulder pitch-roll-yaw, hip pitch-roll-yaw, etc), tuned for stabilising the dynamics of the simulation.
46
48
```
47
49
> setenv(`YARP_ROBOT_NAME`,`iCubGazeboV2_5`)
48
50
```
49
51
50
-
2. Verify that the target robot model is available. You can check if the controller is targeting the correct robot model by typing on a terminal:
52
+
2. Verify that the target robot model is available. You can check if the controller is targeting the correct robot model by typing on the Matlab command line:
51
53
```
52
-
yarp resource --find model.urdf
54
+
system('yarp resource --find model.urdf')
53
55
```
54
56
55
57
then, check that the path and the model name are correct.
@@ -58,6 +60,12 @@ You don't need any module external module running outside of Matlab. For running
58
60
4. Open the Simulink model `torqueControlBalancingWithSimu.mdl`.
59
61
5. Run the model.
60
62
63
+
For running the simulation from the installed module (e.g. in case of a user, without any experience in simulation nor control, just trying the simulator for the first time), skip steps 3. and 4. and execute instead:
64
+
- still in Matlab, and from any location except from [whole-body-controllers/controllers](../) (for avoiding file naming collision with [this folder](./)), open the model directly from the Matlab command line:
At start, the module calls the initialization file `initTorqueControlBalancingWithSimu.m`. Once opened, this file contains some configuration variables. Please follow the instruction inside the script to properly configure your simulation.
0 commit comments