File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ find_package(catkin REQUIRED COMPONENTS
88 message_generation
99 std_msgs
1010 geometry_msgs
11+ controller_interface
12+ controller_manager
13+ hardware_interface
1114)
1215
1316catkin_package ()
@@ -20,6 +23,7 @@ include_directories(include
2023
2124add_library (FTSensor
2225 src/FTSensor.cpp
26+
2327 )
2428
2529add_executable (ft_sensor_hw
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ A catkin package to read measurements from any ATI FT sensor via XML
66ToDO:
77 - [ ] Use force-torque-sensor controller from ros_control
88 - [x] Create an URDF of the sensor to visualize the forces and frames
9- - [ ] Create plugin to be used in simulation
9+ - [x ] Create plugin to be used in simulation
Load diff This file was deleted.
Original file line number Diff line number Diff line change 2525 <node name =" rqt_plot_view_torque" pkg =" rqt_plot" type =" rqt_plot" args =" -e /world_my_sensor/ft_sensor_topic/wrench/torque/x:y:z" />
2626
2727
28- <!-- Load joint controller configurations from YAML file to parameter server -->
29- <!-- <rosparam file="$(find force_torque_sensor)/config/force_torque_sensor_control.yaml" command="load"/> -->
30- <rosparam command =" load" file =" $(find force_torque_sensor)/config/force_torque_sensor_control.yaml" />
31-
28+ <group ns =" my_sensor" >
29+ <rosparam command =" load" file =" $(find force_torque_sensor)/config/force_torque_sensor_controller.yaml" />
30+ <!-- load hardware interface-->
31+ <rosparam command =" load" file =" $(find force_torque_sensor)/config/hardware_interfaces.yaml" />
32+ <rosparam file =" $(find force_torque_sensor)/config/joint_names.yaml" command =" load" />
3233 <!-- load position controllers -->
3334<!-- <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
3435 output="screen" ns="/ft_sensor" args="
3536 joint_state_controller world_my_sensor_measure_joint"/>
3637 -->
38+ </group >
39+ <node name =" controller_spawner" pkg =" controller_manager" type =" spawner" respawn =" false" output =" screen" ns =" /my_sensor" args =" force_torque_sensor_controller" />
3740
38- < node name = " force_torque_sensor_controller " pkg = " controller_manager " type = " spawner " output = " screen " args = " force_torque_sensor_controller " />
41+
3942
4043
4144
Original file line number Diff line number Diff line change 22<robot xmlns : xacro =" http://ros.org/wiki/xacro" >
33
44 <xacro : macro name =" ft_sensor_gazebo" params =" parent name type" >
5-
5+
6+ <gazebo >
7+ <plugin name =" gazebo_ros_control" filename =" libgazebo_ros_control.so" >
8+ <robotNamespace >/${name}/</robotNamespace >
9+ </plugin >
10+ </gazebo >
611
712 <gazebo reference =" ${name}_${type}_base" >
813 <gravity >true</gravity >
Original file line number Diff line number Diff line change 44 <!-- Include all available models -->
55 <xacro : include filename =" $(find force_torque_sensor)/model/models.urdf.xacro" />
66 <xacro : include filename =" $(find force_torque_sensor)/model/ft_sensor.gazebo.xacro" />
7+ <xacro : include filename =" $(find force_torque_sensor)/model/ft_sensor.trasmission.xacro" />
78
89 <!-- Base model for all sensor to have common frame names -->
910 <xacro : macro name =" ft_sensor" params =" parent name type *origin" >
3637
3738 <xacro : ft_sensor_gazebo name =" ${name}" parent =" ${parent}" type =" ${type}" />
3839
40+ <xacro : ft_sensor_transmission name =" ${name}" parent =" ${parent}" type =" ${type}" />
41+
42+
3943 </xacro : macro >
4044
4145</robot >
You can’t perform that action at this time.
0 commit comments