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

Initial port to ROS 2 #41

Open
wants to merge 11 commits into
base: foxy
Choose a base branch
from
Open
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
24 changes: 6 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
# Gazebo ROS Demos

* Author: Dave Coleman <[email protected]>
* License: GNU General Public License, version 3 (GPL-3.0)

Example robots and code for interfacing Gazebo with ROS

## Tutorials

[ROS URDF](http://gazebosim.org/tutorials/?tut=ros_urdf)
Example robots and code for interfacing Gazebo, ROS2 and Moveit2

## Quick Start

Rviz:

roslaunch rrbot_description rrbot_rviz.launch

Gazebo:

roslaunch rrbot_gazebo rrbot_world.launch

ROS Control:
ros2 launch rrbot_moveit_demo_nodes rrbot_demo.launch.py

roslaunch rrbot_control rrbot_control.launch
## Develop and Contribute

Example of Moving Joints:
We welcome any contributions to this repo and encourage you to fork the project then send pull requests back to this parent repo. Thanks for your help!

rostopic pub /rrbot/joint2_position_controller/command std_msgs/Float64 "data: -0.9"
davetcoleman marked this conversation as resolved.
Show resolved Hide resolved

## Develop and Contribute
## Notes

We welcome any contributions to this repo and encourage you to fork the project then send pull requests back to this parent repo. Thanks for your help!
`gazebo_tutorials` and `rrbot_control` have not yet been ported to ROS2, but need to be.
Empty file added gazebo_tutorials/COLCON_IGNORE
Empty file.
Empty file added rrbot_control/COLCON_IGNORE
Empty file.
16 changes: 4 additions & 12 deletions rrbot_description/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.10.2)
project(rrbot_description)
find_package(ament_cmake REQUIRED)

find_package(catkin REQUIRED)
ament_package()

catkin_package()

install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

install(DIRECTORY meshes
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

install(DIRECTORY urdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY urdf meshes DESTINATION share/${PROJECT_NAME})
202 changes: 0 additions & 202 deletions rrbot_description/launch/rrbot.rviz

This file was deleted.

16 changes: 0 additions & 16 deletions rrbot_description/launch/rrbot_rviz.launch

This file was deleted.

10 changes: 4 additions & 6 deletions rrbot_description/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>rrbot_description</name>
<version>0.0.0</version>
<version>0.2.0</version>
<description>The rrbot_description package</description>

<maintainer email="[email protected]">Dave Coleman</maintainer>
Expand All @@ -14,12 +14,10 @@

<author email="[email protected]">Dave Coleman</author>

<buildtool_depend>catkin</buildtool_depend>

<run_depend>joint_state_publisher</run_depend>
<run_depend>robot_state_publisher</run_depend>
<run_depend>rviz</run_depend>
<buildtool_depend>ament_cmake</buildtool_depend>

<export>
<build_type>ament_cmake</build_type>
</export>

</package>
15 changes: 9 additions & 6 deletions rrbot_description/urdf/rrbot.gazebo
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<!-- ros_control plugin -->
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/rrbot</robotNamespace>
<robotSimType>gazebo_ros_control/DefaultRobotHWSim</robotSimType>
<plugin filename="libgazebo_ros2_control.so" name="gazebo_ros2_control">
<robot_sim_type>gazebo_ros2_control/GazeboSystem</robot_sim_type>
<parameters>$(find rrbot_moveit_demo_nodes)/config/gazebo_controllers.yaml</parameters>
</plugin>
</gazebo>

Expand Down Expand Up @@ -65,9 +65,12 @@
<stddev>0.01</stddev>
</noise>
</ray>
<plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_gpu_laser.so">
<topicName>/rrbot/laser/scan</topicName>
<frameName>hokuyo_link</frameName>
<plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_ray_sensor.so">
<ros>
<namespace>/rrbot</namespace>
<remapping>~/out:=laser/scan</remapping>
</ros>
<output_type>sensor_msgs/LaserScan</output_type>
</plugin>
</sensor>
</gazebo>
Expand Down
Loading