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 2 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
22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
# Gazebo ROS Demos

* Author: Dave Coleman <[email protected]>
* Author: Alejandro Hernández
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd be in favor of simply removing this line... we're both authors, but so are many others who have contributed to this repo.

* 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:

roslaunch rrbot_control rrbot_control.launch

Example of Moving Joints:

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

## Develop and Contribute

Expand Down
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.

8 changes: 4 additions & 4 deletions rrbot_description/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

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

<buildtool_depend>catkin</buildtool_depend>
<buildtool_depend>ament_cmake</buildtool_depend>

<run_depend>joint_state_publisher</run_depend>
<run_depend>robot_state_publisher</run_depend>
<run_depend>rviz</run_depend>
<run_depend>rviz2</run_depend>
ahcorde marked this conversation as resolved.
Show resolved Hide resolved

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

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

<!-- 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>
<control_period>0.001</control_period>
</plugin>
</gazebo>

Expand Down Expand Up @@ -65,9 +66,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