Skip to content

Commit 1f4529d

Browse files
Cleanup example 12 (ros-controls#481)
1 parent e41ee31 commit 1f4529d

File tree

5 files changed

+4
-56
lines changed

5 files changed

+4
-56
lines changed

example_12/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ install(
7676
DESTINATION include/ros2_control_demo_example_12
7777
)
7878
install(
79-
DIRECTORY description/launch description/ros2_control description/urdf description/gazebo
79+
DIRECTORY description/launch description/ros2_control description/urdf
8080
DESTINATION share/ros2_control_demo_example_12
8181
)
8282
install(

example_12/description/gazebo/rrbot.gazebo.xacro

Lines changed: 0 additions & 38 deletions
This file was deleted.

example_12/description/ros2_control/rrbot.ros2_control.xacro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
33

4-
<xacro:macro name="rrbot_ros2_control" params="name prefix use_gazebo_classic:=^|false">
4+
<xacro:macro name="rrbot_ros2_control" params="name prefix">
55

66
<ros2_control name="${name}" type="system">
77
<hardware>
8-
<xacro:if value="${use_gazebo_classic}">
9-
<plugin>gazebo_ros2_control/GazeboSystem</plugin>
10-
</xacro:if>
11-
<xacro:unless value="${use_gazebo_classic}">
128
<plugin>ros2_control_demo_example_12/RRBotSystemPositionOnlyHardware</plugin>
139
<param name="example_param_hw_start_duration_sec">0</param>
1410
<param name="example_param_hw_stop_duration_sec">3.0</param>
1511
<param name="example_param_hw_slowdown">100</param>
16-
</xacro:unless>
1712
</hardware>
1813

1914
<joint name="${prefix}joint1">

example_12/description/urdf/rrbot.urdf.xacro

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ https://github.com/ros-simulation/gazebo_ros_demos/blob/kinetic-devel/rrbot_desc
66
-->
77
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="2dof_robot">
88
<xacro:arg name="prefix" default="" />
9-
<xacro:arg name="use_gazebo_classic" default="false" />
109

1110
<!-- Import RRBot macro -->
1211
<xacro:include filename="$(find ros2_control_demo_description)/rrbot/urdf/rrbot_description.urdf.xacro" />
@@ -25,11 +24,5 @@ https://github.com/ros-simulation/gazebo_ros_demos/blob/kinetic-devel/rrbot_desc
2524
</xacro:rrbot>
2625

2726
<xacro:rrbot_ros2_control
28-
name="RRBot" prefix="$(arg prefix)" use_gazebo_classic="$(arg use_gazebo_classic)"/>
29-
30-
<xacro:if value="$(arg use_gazebo_classic)">
31-
<!-- Import Gazebo Classic definitions + plugin -->
32-
<xacro:include filename="$(find ros2_control_demo_example_12)/gazebo/rrbot.gazebo.xacro" />
33-
<xacro:rrbot_gazebo prefix="$(arg prefix)"/>
34-
</xacro:if>
27+
name="RRBot" prefix="$(arg prefix)"/>
3528
</robot>

example_12/package.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<maintainer email="[email protected]">Christoph Froehlich</maintainer>
1111

1212
<author email="[email protected]">Dr.-Ing. Denis Štogl</author>
13-
<author email="[email protected]">Christoph Froehlich</author>
13+
<author email="[email protected]">Sai Kishor Kothakota</author>
1414

1515
<license>Apache-2.0</license>
1616

@@ -23,8 +23,6 @@
2323

2424
<exec_depend>controller_manager</exec_depend>
2525
<exec_depend>forward_command_controller</exec_depend>
26-
<exec_depend>gazebo_ros</exec_depend>
27-
<exec_depend>gazebo_ros2_control</exec_depend>
2826
<exec_depend>joint_state_broadcaster</exec_depend>
2927
<exec_depend>joint_state_publisher_gui</exec_depend>
3028
<exec_depend>joint_trajectory_controller</exec_depend>

0 commit comments

Comments
 (0)