Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docker files for CONCERT Integration of TUM

License

JakobThumm/TUM-CONCERT-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUM-CONCERT-Docker

Docker files for CONCERT Integration of TUM

Related git repositories

Folder structure

An extract of the most important folders (some folders removed for simplicity!):

tum_integration_ws
    ├── build
    │   ├── base_estimation
    │   ├── centauro_cartesio
    │   ├── eigen-3.4.0
    │   ├── realsense_gazebo_description
    │   ├── realsense_gazebo_plugin
    │   └── sara-shield
    ├── catkin_ws
    │   ├── devel
            └── setup.bash
    │   ├── setup.bash
    │   └── src
    │       ├── concert_msgs
    │       ├── sara_shield_utils
    │       ├── rviz_plugin_sara_shield
    │       ├── rviz_plugin_sara_shield
    │       └── human-gazebo
    ├── install
    │   ├── include
    │   │   ├── SaRA
    │   │   ├── base_estimation
    │   │   ├── centauro_cartesio
    │   │   └── eigen3
    │   ├── lib
    ├── recipes
    │   └── multidof_recipes
    ├── ros_src
    │   ├── concert_description -> /home/user/tum_integration_ws/src/concert_description
    │   ├── modular -> /home/user/tum_integration_ws/src/modular
    │   ├── realsense_gazebo_description -> /home/user/tum_integration_ws/src/realsense_gazebo_description
    │   └── sara-shield -> /home/user/tum_integration_ws/src/sara-shield
    └── src
        ├── base_estimation
        ├── centauro_cartesio
        ├── concert_description
        ├── eigen-3.4.0
        ├── modular
        ├── realsense_gazebo_description
        ├── realsense_gazebo_plugin
        └── sara-shield

BUILD AND RUN THE DOCKER CONTAINER

./build-docker.bash --no-cache 
./run-docker.bash

Builds the image jakobthumm/tum-concert:latest.

Inside Docker

Start roscore

roscore

Start gazebo simulation

mon launch sara_shield concert.launch

Open xbot2-Gui

After Gazebo runs, start Xbot2-Gui with

xbot2-gui

This should open a large window with status "Running" in the top left corner. If it opens a small window with the status "Inactive" instead, close and rerun the command above.

Open rviz

Open Rviz for visualization

rviz -d $(rospack find sara_shield)/safety_shield/rviz/concert_sara_shield.rviz

Alternatively, run rviz and inside Rviz: go to the menu File, and select Open Config and load /home/user/tum_integration_ws/src/sara-shield/safety_shield/rviz/concert_sara_shield.rvizor even add the topics by hand:

The visualization topics of sara-shield are named /sara_shield/human_joint_marker_array and /sara_shield/robot_joint_marker_array and can be visualized by adding them in rviz.

and then start the safety-shield plugin in the xbot2 gui.

Send goal position:

rostopic pub /sara_shield/goal_joint_pos std_msgs/Float32MultiArray "layout:
  dim:
  - label: ''
    size: 0
    stride: 0
  data_offset: 0
data: [-2.5, 1.4, 0.0, 0.0, 0.0, 0.0]"

and then

rostopic pub /sara_shield/goal_joint_pos std_msgs/Float32MultiArray "layout:
  dim:
  - label: ''
    size: 0
    stride: 0
  data_offset: 0
data: [2.5, 1.4, 0.0, 0.0, 0.0, 0.0]"

Send safety override

To set the safety shield to unsafe send

rostopic pub /sara_shield/safe_flag std_msgs/Bool "data: false"

send true to activate normal safety shield behavior again.

Send dummy human measurements

Send dummy measurements:

rostopic pub /sara_shield/send_dummy_meas std_msgs/Bool "data: true"

Don't send dummy measurements:

rostopic pub /sara_shield/send_dummy_meas std_msgs/Bool "data: false"

Notes

  • The password for the user user is user
  • If something doesn't seem to be found, try re-sourcing tum_integration_ws/catkin_ws/devel/setup.bash and then tum_integration_ws/setup.bash

Known issues

Laptop with Nvidia Graphics Card (libGL error)

If you get an error

libGL error: MESA-LOADER: failed to retrieve device information

On laptops, you have to disable Nvidia's on-demand mode, which only turns on the GPU if needed. To check your current mode, run

sudo prime-select query

If it says on-demand, switch to mode nvidia with

sudo prime-select nvidia

Restart your computer

Send no humans in scene

To tell sara-shield that there are no more humans in the scene, send

rostopic pub /sara_shield/humans_in_scene std_msgs/Bool "data: false" 

Gravity compensation

In order to compansate gravity, do the following steps:

cd ~/tum_integration_ws/src/
git clone [email protected]:ADVRHumanoids/xbot2_examples.git
cd xbot2_examples
git checkout v2.10

then change following lines manually:

  • line 40: remove ControlMode::PosImpedance() +
  • line 187: remove _robot->setPositionReference(_qref); then
cd ~/tum_integration_ws/build
mkdir xbot2_examples && cd xbot2_examples
cmake ../../src/xbot2_examples
ccmake ../../src/xbot2_examples

inside ccmake, change /usr/lib/ to /opt/xbot then sudo make -j4 install

In the config, add

  gcomp_example:
      type: gcomp_example
      thread: rt_main
      params:
        enabled_chains: 
          value: [chain_E]
          type: vector<string>

About

Docker files for CONCERT Integration of TUM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •