Skip to content

Commit

Permalink
add gazebo_ros_diff_drive until ros-simulation/gazebo_ros_pkgs#298 is…
Browse files Browse the repository at this point in the history
… merged
  • Loading branch information
534o committed Mar 3, 2015
1 parent a6702d7 commit 40ecea6
Show file tree
Hide file tree
Showing 5 changed files with 612 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tetris_description/urdf/tetris.gazebo.xacro
Expand Up @@ -9,7 +9,7 @@
</gazebo>

<gazebo>
<plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so">
<plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive_fixed.so">
<alwaysOn>true</alwaysOn>
<updateRate>100</updateRate>
<leftJoint>right_wheel_joint</leftJoint> <!-- intentionally reverted -->
Expand Down
27 changes: 26 additions & 1 deletion tetris_gazebo/CMakeLists.txt
@@ -1,10 +1,35 @@
cmake_minimum_required(VERSION 2.8.3)
project(tetris_gazebo)

find_package(catkin REQUIRED COMPONENTS)
find_package(catkin REQUIRED COMPONENTS gazebo_plugins)

# Depend on system install of Gazebo and SDFormat
find_package(gazebo REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread)

include_directories(
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
)

link_directories(
${catkin_LIBRARY_DIRS}
${GAZEBO_LIBRARY_DIRS}
)


catkin_package()

add_library(gazebo_ros_diff_drive_fixed src/gazebo_ros_diff_drive.cpp)
target_link_libraries(gazebo_ros_diff_drive_fixed gazebo_ros_utils ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})

install(TARGETS
gazebo_ros_diff_drive_fixed
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)

install(DIRECTORY launch worlds models
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)
2 changes: 2 additions & 0 deletions tetris_gazebo/package.xml
Expand Up @@ -14,6 +14,8 @@

<buildtool_depend>catkin</buildtool_depend>

<build_depend>gazebo_plugins</build_depend>

<run_depend>tetris_description</run_depend>
<run_depend>rosbash</run_depend>
<run_depend>xacro</run_depend>
Expand Down

0 comments on commit 40ecea6

Please sign in to comment.