Skip to content
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

Adding a demo robot #241

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions nav2_bringup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Bringup

## Before starting:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not clear if this is a README for the bring-up of the Navigation 2 system or just describing how to bring up gazebo. The location in nav2_bringup would indicate that it should describe how to bring up the whole system. We should also include instructions for starting the nav2 system.

- Build ROS2 from master branch

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"from the master branch"

- If working with Ubuntu 16, install [Gazebo 9](http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install)
- In step #3:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was immediately obvious that the text was referring to step 3 n the gazebo install tutorial. Could make this explicit: "In step #3 in the gazebo installation instructions" or something like that.


```$ sudo apt-get install gazebo9-common libsdformat6 gazebo9 libgazebo-dev```

- You might want to cleanup prior Gazebo installations:

```$ sudo apt autoremove```

- Build gazebo_ros_pkgs from ros2 branch

## Driving the Gazebo differential drive robot

To run:

$ gazebo <dash><dash>verbose <path_to>/gazebo_ros_simplebot.world

Try sending commands:

$ ros2 topic pub /nav2/cmd_vel geometry_msgs/Twist '{linear: {x: 1.0}}' -1
$ ros2 topic pub /nav2/cmd_vel geometry_msgs/Twist '{angular: {z: 0.1}}' -1

Try listening to odometry:

$ ros2 topic echo /nav2/odom

Try listening to TF:

$ ros2 run tf2_ros tf2_echo odom base_link
$ ros2 run tf2_ros tf2_echo base_link right_wheel
$ ros2 run tf2_ros tf2_echo base_link left_wheel

Open RVIZ:

$ ros2 run rviz2 rviz2

On RViz, add the following topics:

* /ray/pointcloud2
* /ray/pointcloud
* /ray/laserscan

*Note that the laser scans are not working on RViz due to https://github.com/ros2/rviz/issues/332*

Provide a transform for the laser sensor:

$ ros2 run tf2_ros static_transform_publisher 0.75 0 0.484 0 0 0 base_link ray_link

On RViz, change the Fixed Frame" to ```ray_link```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray quote (") after Fixed Frame?


Echo the range topics, i.e.

$ ros2 topic echo /ray/range

## Next Steps
- Fix transforms for laser sensor
- Add transform for imu?
- Fix topic names
- Verify the output of the imu
- Reduce the size of the robot
- Create launch file? use empty_world.launch.py as an example
Loading