Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:vision:realsense2-ros [2023-01-17 16:02] – created Marcus Klang | documentation:vision:realsense2-ros [2023-01-19 11:06] (current) – Marcus Klang | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Realsense2 + ROS ====== | ====== Realsense2 + ROS ====== | ||
| - | Minimal test setup in ROS containers: | + | Minimal test setup in [[documentation: |
| + | To allow hardware to work within containers you have to use the option '' | ||
| + | |||
| + | ==== Inside the container ==== | ||
| <cli> | <cli> | ||
| - | sudo apt install ros-noetic-realsense2-camera | + | # Install realsense drivers |
| - | roslaunch realsense2_camera rs_camera.launch | + | # Get distribution environment variables |
| + | . / | ||
| + | export repo=" | ||
| + | export repo_check=" | ||
| + | export repo_add=" | ||
| + | if ! grep -q "^deb .*$repo_check" | ||
| + | sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE | ||
| + | sudo apt-key adv --keyserver hkp:// | ||
| + | sudo add-apt-repository " | ||
| + | else | ||
| + | echo " | ||
| + | fi | ||
| + | |||
| + | sudo apt update | ||
| + | sudo apt install | ||
| </ | </ | ||
| - | This should start a ROS node and create suitable topics. | + | To get all Robotlab pieces for vision there is a config: |
| + | < | ||
| + | workspace init minimal_vision.rosinstall | ||
| + | cd ~/ | ||
| + | catkin build | ||
| + | workspace shell | ||
| + | roslaunch vision realsense_d435.launch | ||
| + | </ | ||
| + | |||
| + | ==== Known issues ==== | ||
| + | If you get an error similar to this: | ||
| + | '' | ||
| + | |||
| + | This is known to be fixable by a firmware update of the Realsense D435 camera. | ||