-
Notifications
You must be signed in to change notification settings - Fork 10
Add realsense docker module and include examples #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yuhsiang1117
wants to merge
10
commits into
j3soon:main
Choose a base branch
from
yuhsiang1117:feat/realsense
base: main
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 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4b85d8a
feat: create a new docker module for realsense
yuhsiang1117 f97799c
feat: create realsense example package and create realsense_desp work…
yuhsiang1117 8142b2b
feat: add realsense gazebo simulation package
yuhsiang1117 2f4f670
feat: add realsense related packages to template_ws
yuhsiang1117 ff4ac96
feat: add RealSense documentation and fix permissions of install script
yuhsiang1117 2344eeb
fix: rename realsense_example to realsense_examples
yuhsiang1117 034c48a
fix: add rviz config path in realsense_gazebo launch file
yuhsiang1117 a3d0c02
fix: adjust realsense d435 pose and mesh path for turtlebot3 burger
yuhsiang1117 09717b7
fix: add dependent package installation in docker
yuhsiang1117 db72697
fix: parameterize RealSense package installation
yuhsiang1117 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
Empty file.
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,77 @@ | ||
| # Realsense | ||
|
|
||
| [](https://github.com/j3soon/ros2-essentials/blob/main/docker_modules/install_cartographer.sh) | ||
|
|
||
| ROS2 Realsense. (Only installed by default for the template workspace.) | ||
|
|
||
| To enable Realsense, set the `REALSENSE` argument to `YES` in the `compose.yaml` file of your desired workspace (e.g., `husky_ws/docker/compose.yaml`). After making these changes, rebuild the Docker image. | ||
|
|
||
| > TODO: Remove duplicate content from the template workspace below. | ||
|
|
||
| ## 🐳 Start Container | ||
|
|
||
| > Make sure your system meets the [system requirements](https://j3soon.github.io/ros2-essentials/#system-requirements) and have followed the [setup instructions](https://j3soon.github.io/ros2-essentials/#setup) before using this workspace. | ||
|
|
||
| Run the following commands in a Ubuntu desktop environment. If you are using a remote server, make sure you're using a terminal within a remote desktop session (e.g., VNC) instead of SSH (i.e., don't use `ssh -X` or `ssh -Y`). | ||
|
|
||
| ```sh | ||
| cd ~/ros2-essentials/template_ws/docker | ||
| docker compose build | ||
| xhost +local:docker | ||
| docker compose up -d | ||
| # The initial build will take a while, please wait patiently. | ||
| ``` | ||
|
|
||
| > If your user's UID is `1000`, you may replace the `docker compose build` command with `docker compose pull`. | ||
|
|
||
| The commands in the following sections assume that you are inside the Docker container: | ||
|
|
||
| ```sh | ||
| # in a new terminal | ||
| docker exec -it ros2-template-ws bash | ||
| ``` | ||
|
|
||
| If the initial build somehow failed, run: | ||
|
|
||
| ```sh | ||
| rm -r build install | ||
| colcon build --symlink-install | ||
| ``` | ||
|
|
||
| Once you have finished testing, you can stop and remove the container with: | ||
|
|
||
| ```sh | ||
| docker compose down | ||
| ``` | ||
|
|
||
| ## Realsense test with gazebo | ||
|
|
||
| - realsense_desp package: Description of a robot with realsense D435 camera. | ||
| - realsense_gazebo package: Gazebo simulation of the robot with robot state publisher. | ||
| - Launch Gazebo with turtlebot3 in `tmux` | ||
| ```bash | ||
| ros2 launch realsense_gazebo realsense_gazebo.launch.py | ||
| ``` | ||
|
|
||
| - Run the control tool in new window of `tmux` | ||
| ```bash | ||
| ros2 run rqt_robot_steering rqt_robot_steering | ||
| ``` | ||
|
|
||
| ## Realsense test in realworld | ||
|
|
||
| - Launch Realsense camera node in `tmux` | ||
| ```bash | ||
| # add pointcloud.enable:=true to enable pointcloud | ||
| ros2 launch realsense2_camera rs_launch.py | ||
| ``` | ||
|
|
||
| - Open RViz to verify the camera topics in `tmux` | ||
| ```bash | ||
| ros2 run rviz2 rviz2 | ||
| ``` | ||
|
|
||
| ## References | ||
|
|
||
| - [Realsense ROS Wrapper](https://github.com/IntelRealSense/realsense-ros) | ||
| - [RealSense Gazebo ROS Plugin](https://github.com/pal-robotics/realsense_gazebo_plugin) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.