File tree 8 files changed +368
-2
lines changed 8 files changed +368
-2
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ install(
149
149
150
150
if (CATKIN_ENABLE_TESTING)
151
151
find_package (rostest REQUIRED)
152
+ find_package (catkin REQUIRED COMPONENTS angles)
152
153
153
154
# Lint tests
154
155
roslint_add_test()
Original file line number Diff line number Diff line change 39
39
40
40
<exec_depend >message_runtime</exec_depend >
41
41
42
+ <test_depend >angles</test_depend >
42
43
<!-- The official rosdep has an entry for Google's benchmark deb
43
44
(https://github.com/ros/rosdistro/blob/2cbcebdedcc1e827501acfecaf2386cd33f26809/rosdep/base.yaml#L232-L239)
44
45
since https://github.com/ros/rosdistro/pull/23163 got merged.
52
53
For this reason we conditionally test_depend on benchmark only if the $ROS_DISTRO is ROS Melodic or newer.
53
54
-->
54
55
<test_depend condition =" $ROS_DISTRO >= melodic" >benchmark</test_depend >
56
+ <test_depend >controller_manager</test_depend >
57
+ <test_depend >diff_drive_controller</test_depend >
58
+ <test_depend >gazebo_ros</test_depend >
59
+ <test_depend >joint_state_controller</test_depend >
60
+ <test_depend >robot_state_publisher</test_depend >
55
61
<test_depend >rostest</test_depend >
56
62
57
63
<export >
Original file line number Diff line number Diff line change 22
22
23
23
<!-- Spawn controller -->
24
24
<node name =" controller_spawner" pkg =" controller_manager" type =" spawner"
25
- args =" diffbot_controller" />
25
+ args =" joint_state_controller
26
+ diffbot_controller" />
27
+
28
+ <!-- Convert joint states to TF transforms -->
29
+ <node name =" robot_state_publisher" pkg =" robot_state_publisher" type =" robot_state_publisher" />
26
30
</launch >
Original file line number Diff line number Diff line change 77
77
<bodyName >imu_link</bodyName >
78
78
<updateRateHZ >50.0</updateRateHZ >
79
79
<frameName >imu_link</frameName >
80
- <gaussianNoise >0.001 </gaussianNoise >
80
+ <gaussianNoise >1.0e-6 </gaussianNoise >
81
81
<xyzOffset >0 0 0</xyzOffset >
82
82
<rpyOffset >0 0 0</rpyOffset >
83
83
<initialOrientationAsReference >false</initialOrientationAsReference >
93
93
</plugin >
94
94
</gazebo >
95
95
96
+ <!-- ground truth plugin -->
97
+ <gazebo >
98
+ <plugin name =" gazebo_ros_p3d" filename =" libgazebo_ros_p3d.so" >
99
+ <bodyName >base_link</bodyName >
100
+ <topicName >ground_truth_odom</topicName >
101
+ <alwaysOn >true</alwaysOn >
102
+ <updateRate >50.0</updateRate >
103
+ </plugin >
104
+ </gazebo >
105
+
96
106
<!-- Colour -->
97
107
<gazebo reference =" base_link" >
98
108
<material >Gazebo/Green</material >
Original file line number Diff line number Diff line change
1
+ # Publish all joint states
2
+ joint_state_controller :
3
+ type : joint_state_controller/JointStateController
4
+ publish_rate : 50
5
+
6
+ # Diff drive controller
1
7
diffbot_controller :
2
8
type : " diff_drive_controller/DiffDriveController"
3
9
left_wheel : ' wheel_0_joint'
Original file line number Diff line number Diff line change
1
+ imu :
2
+ topic : /imu
3
+ angular_velocity_dimensions : ['yaw']
4
+ differential : true
5
+ orientation_dimensions : ['yaw']
6
+ orientation_target_frame : &target_frame base_link
7
+ twist_target_frame : *target_frame
Original file line number Diff line number Diff line change
1
+ <launch>
2
+ <!-- Simulat robot -->
3
+ <include file="$(find fuse_models)/test/diffbot.launch"/>
4
+
5
+ <!-- Load IMU sensor configuration -->
6
+ <rosparam file="$(find fuse_models)/test/imu.yaml" command="load" ns="imu_2d_test"/>
7
+
8
+ <!-- Run test -->
9
+ <test test-name="imu_2d_test" pkg="fuse_models" type="test_imu_2d" time-limit="120">
10
+ <remap from="odom" to="/ground_truth_odom"/>
11
+ </test>
12
+ </launch>
You can’t perform that action at this time.
0 commit comments