Skip to content

Commit 8ecb96e

Browse files
committed
-remove the material tag from the end effector link
-add missing dependencies in CMakeLists.txt and package.xml -launch controller_switcher at startup in single_lwr.launch -change the path where the generated workbench xacro is saved
1 parent 5b3b303 commit 8ecb96e

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ project(lwr_force_position_controllers)
55
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
66
## is used, also find other catkin packages
77
find_package(catkin REQUIRED COMPONENTS
8+
eigen_conversions
9+
kdl_conversions
810
controller_interface
911
lwr_controllers
1012
roscpp
@@ -45,6 +47,8 @@ catkin_package(
4547
kdljacdot
4648
controller_interface
4749
lwr_controllers
50+
kdl_conversions
51+
eigen_conversions
4852
INCLUDE_DIRS include
4953
LIBRARIES ${PROJECT_NAME}
5054
)

launch/single_lwr.launch

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model vito -x 0 -y 0 -z 1.0 -R 0 -P 0 -Y 0" respawn="false" output="screen"/>
4949

5050
<!-- generate and load workbench urdf -->
51-
<node name="generate_workbench" pkg="xacro" type="xacro.py" args="-o $(find vito_description)/robot/workbench.urdf $(find lwr_force_position_controllers)/robot/workbench.urdf.xacro" />
52-
<node name="spawn_workbench" pkg="gazebo_ros" type="spawn_model" args="-file $(find vito_description)/robot/workbench.urdf -urdf -model workbench" respawn="false" output="screen"/>
51+
<node name="generate_workbench" pkg="xacro" type="xacro.py" args="-o $(find lwr_force_position_controllers)/robot/workbench.urdf $(find lwr_force_position_controllers)/robot/workbench.urdf.xacro" />
52+
<node name="spawn_workbench" pkg="gazebo_ros" type="spawn_model" args="-file $(find lwr_force_position_controllers)/robot/workbench.urdf -urdf -model workbench" respawn="false" output="screen"/>
5353

5454
<!-- enable/disable gui at will, the rviz listens to the simulation -->
5555
<include file="$(find gazebo_ros)/launch/empty_world.launch">
@@ -113,5 +113,5 @@
113113

114114
</group>
115115

116-
<!-- <node name="controller_switcher" pkg="controller_switcher" type="controller_switcher" args="lwr"/> -->
116+
<node name="controller_switcher" pkg="controller_switcher" type="controller_switcher" args="lwr"/>
117117
</launch>

model/end_effector.urdf.xacro

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<geometry>
3838
<sphere radius="0.01" />
3939
</geometry>
40-
<material name="Red"/>
4140
</visual>
4241

4342
<collision>

package.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@
1515
<build_depend>kdljacdot</build_depend>
1616
<build_depend>message_runtime</build_depend>
1717
<build_depend>message_generation</build_depend>
18+
<build_depend>eigen_conversions</build_depend>
19+
<build_depend>kdl_conversions</build_depend>
1820
<run_depend>controller_interface</run_depend>
1921
<run_depend>lwr_controllers</run_depend>
2022
<run_depend>roscpp</run_depend>
2123
<run_depend>kdljacdot</run_depend>
24+
<run_depend>eigen_conversions</run_depend>
25+
<run_depend>kdl_conversions</run_depend>
26+
2227

2328
<export>
2429
<controller_interface plugin="${prefix}/lwr_force_position_controllers_plugins.xml"/>
2530
</export>
26-
</package>
31+
</package>

0 commit comments

Comments
 (0)