-
Notifications
You must be signed in to change notification settings - Fork 347
Added README.md for dummy_robot_bringup. #574
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
Merged
ahcorde
merged 11 commits into
ros2:rolling
from
cardboardcode:add_dummy_robot_bringup_readme
Oct 6, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
699b0dc
:heavy_plus_sign: :book: Added dummy_robot_bringup README.md. Modifie…
cardboardcode 20bb225
:hammer: Adhered dummy_robot_bringup README.md to approved style of i…
cardboardcode 9b56fa8
:hammer: Corrected phrasing following feedback on similar pull requests.
cardboardcode 9f1e9b1
:hammer: Updated based on feedback to correct phrasing.
cardboardcode 8b5abbb
Resolved flake error.
cardboardcode d780b99
Merge branch 'rolling' into add_dummy_robot_bringup_readme
cardboardcode 8c3137e
Merge branch 'rolling' into add_dummy_robot_bringup_readme
ahcorde 6fb20d5
Added some fixes
ahcorde a3f56b3
Fixes
ahcorde 166dcbf
Added exec dependency
ahcorde 4af681e
make linters happy
ahcorde 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
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,76 @@ | ||
## **What Is This?** | ||
|
||
This is a simple demo robot with all components from publishing **joint states** to publishing **fake laser data** to visualizing the robot model on a map in `RViz2`. | ||
|
||
## **Build** | ||
|
||
```bash | ||
colcon build --package-select dummy_map_server dummy_sensors dummy_robot_bringup | ||
``` | ||
|
||
## **Run** | ||
|
||
```bash | ||
ros2 launch dummy_robot_bringup dummy_robot_bringup_launch.py | ||
``` | ||
|
||
## **Verify** | ||
|
||
A similar terminal output should be seen: | ||
|
||
```bash | ||
[INFO] [launch]: All log files can be found below /home/$USER/.ros/log/2022-07-22-17-02-33-629155-comname-39641 | ||
[INFO] [launch]: Default logging verbosity is set to INFO | ||
[INFO] [dummy_map_server-1]: process started with pid [39643] | ||
[INFO] [robot_state_publisher-2]: process started with pid [39645] | ||
[INFO] [dummy_joint_states-3]: process started with pid [39647] | ||
[INFO] [dummy_laser-4]: process started with pid [39649] | ||
[dummy_laser-4] [INFO] [1658480554.018685559] [dummy_laser]: angle inc: 0.004363 | ||
[dummy_laser-4] [INFO] [1658480554.018738346] [dummy_laser]: scan size: 1081 | ||
[dummy_laser-4] [INFO] [1658480554.018747091] [dummy_laser]: scan time increment: 0.000028 | ||
[robot_state_publisher-2] Link single_rrbot_link1 had 1 children | ||
[robot_state_publisher-2] Link single_rrbot_link2 had 1 children | ||
[robot_state_publisher-2] Link single_rrbot_link3 had 2 children | ||
[robot_state_publisher-2] Link single_rrbot_camera_link had 0 children | ||
[robot_state_publisher-2] Link single_rrbot_hokuyo_link had 0 children | ||
[robot_state_publisher-2] [INFO] [1658480554.019739425] [robot_state_publisher]: got segment single_rrbot_camera_link | ||
[robot_state_publisher-2] [INFO] [1658480554.019783457] [robot_state_publisher]: got segment single_rrbot_hokuyo_link | ||
[robot_state_publisher-2] [INFO] [1658480554.019791344] [robot_state_publisher]: got segment single_rrbot_link1 | ||
[robot_state_publisher-2] [INFO] [1658480554.019796905] [robot_state_publisher]: got segment single_rrbot_link2 | ||
[robot_state_publisher-2] [INFO] [1658480554.019801861] [robot_state_publisher]: got segment single_rrbot_link3 | ||
[robot_state_publisher-2] [INFO] [1658480554.019806522] [robot_state_publisher]: got segment world | ||
``` | ||
|
||
The robot should be displayed similarly in `RViz2`: | ||
|
||
 | ||
|
||
## **FAQ** | ||
|
||
`Q`: I ran `ros2 launch dummy_robot_bringup dummy_robot_bringup_launch.py` and `rviz2`. However, nothing is displayed in `RViz2` window. | ||
|
||
`A`: This issue could be related to the **ROS 2 Daemon**. It serves the same role as a **ROS1 Master** but within **ROS 2**. Restarting the daemon, as follows, should resolve this issue. | ||
|
||
`Reference`: https://github.com/ros2/ros2cli/issues/582#issuecomment-775997721 | ||
|
||
```bash | ||
ros2 daemon stop; ros2 daemon start | ||
# Verify | ||
# Open new terminal | ||
ros2 launch dummy_robot_bringup dummy_robot_bringup_launch.py | ||
# Open new terminal | ||
ros2 node list | ||
``` | ||
|
||
```bash | ||
# You should see the following terminal output: | ||
/dummy_joint_states | ||
/dummy_laser | ||
/dummy_map_server | ||
/robot_state_publisher | ||
``` | ||
|
||
## **References** | ||
|
||
- Original Rolling Demo Tutorial: https://docs.ros.org/en/rolling/Tutorials/Demos/dummy-robot-demo.html | ||
- What is ROS 2 Daemon: https://answers.ros.org/question/327348/what-is-ros2-daemon/ |
180 changes: 0 additions & 180 deletions
180
dummy_robot/dummy_robot_bringup/config/dummy_robot.rviz
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
Uh oh!
There was an error while loading. Please reload this page.