|
2 | 2 | <sdf version="1.5"> |
3 | 3 | <model name="roombaROS"> |
4 | 4 |
|
5 | | - <!-- <plugin name="gazebo_ros_state" filename="libgazebo_ros_state.so"> |
6 | | - <ros> |
7 | | - <namespace>/gazebo</namespace> |
8 | | - </ros> |
9 | | - <update_rate>1.0</update_rate> |
10 | | - </plugin> --> |
11 | | - |
12 | 5 | <plugin name="gz::sim::systems::Contact" filename="gz-sim-contact-system"></plugin> |
13 | 6 |
|
14 | 7 | <link name="base"> |
15 | 8 |
|
16 | | - <!-- <inertial> |
17 | | - <pose>0.001453 -0.000453 0.029787 0 0 0</pose> |
18 | | - <inertia> |
19 | | - <ixx>0.058640</ixx> |
20 | | - <ixy>0.000124</ixy> |
21 | | - <ixz>0.000615</ixz> |
22 | | - <iyy>0.058786</iyy> |
23 | | - <iyz>0.000014</iyz> |
24 | | - <izz>1.532440</izz> |
25 | | - </inertia> |
26 | | - <mass>2.234000</mass> |
27 | | - </inertial> --> |
28 | | - |
29 | 9 | <inertial> |
30 | 10 | <mass>1.0</mass> |
31 | 11 | <inertia> |
|
39 | 19 | <pose>0 0 0.047800 0 0 0</pose> |
40 | 20 | <geometry> |
41 | 21 | <mesh> |
42 | | - <scale>0.1 0.1 0.1</scale> |
43 | 22 | <uri>model://roombaROS/meshes/create_body.dae</uri> |
44 | 23 | </mesh> |
45 | 24 | </geometry> |
|
49 | 28 | <pose>0 0 0.047800 0 0 0</pose> |
50 | 29 | <geometry> |
51 | 30 | <mesh> |
52 | | - <scale>0.1 0.1 0.1</scale> |
53 | 31 | <uri>model://roombaROS/meshes/create_body.dae</uri> |
54 | 32 | </mesh> |
55 | 33 | </geometry> |
|
59 | 37 | <pose>-0.01 0 0.03 0 0 0</pose> |
60 | 38 | <geometry> |
61 | 39 | <mesh> |
62 | | - <scale>0.1 0.1 0.1</scale> |
63 | 40 | <uri>model://roombaROS/meshes/right_bumper.dae</uri> |
64 | 41 | </mesh> |
65 | 42 | </geometry> |
|
69 | 46 | <pose>-0.01 0 0.03 0 0 0</pose> |
70 | 47 | <geometry> |
71 | 48 | <mesh> |
72 | | - <scale>0.1 0.1 0.1</scale> |
73 | 49 | <uri>model://roombaROS/meshes/center_bumper.dae</uri> |
74 | 50 | </mesh> |
75 | 51 | </geometry> |
|
79 | 55 | <pose>-0.01 0 0.03 0 0 0</pose> |
80 | 56 | <geometry> |
81 | 57 | <mesh> |
82 | | - <scale>0.1 0.1 0.1</scale> |
83 | 58 | <uri>model://roombaROS/meshes/left_bumper.dae</uri> |
84 | 59 | </mesh> |
85 | 60 | </geometry> |
|
238 | 213 | </ray> |
239 | 214 | </sensor> |
240 | 215 |
|
241 | | - <!-- <sensor name="right_bumper" type="contact"> |
242 | | - <always_on>true</always_on> |
243 | | - <update_rate>20.0</update_rate> |
244 | | - <contact> |
245 | | - <collision>right_bumper_collision</collision> |
246 | | - </contact> |
247 | | - <plugin name="gazebo_ros_right_bumper_controller" filename="libgazebo_ros_bumper.so"> |
248 | | - <bumperTopicName>/roombaROS/events/right_bumper</bumperTopicName> |
249 | | - <ros> |
250 | | - <remapping>/bumper_states:=/roombaROS/events/right_bumper</remapping> |
251 | | - </ros> |
252 | | - <frameName>right_bumper_sensor</frameName> |
253 | | - </plugin> |
254 | | - </sensor> --> |
255 | | - |
256 | 216 | <sensor name="right_bumper" type="contact"> |
257 | 217 | <always_on>true</always_on> |
258 | 218 | <update_rate>20.0</update_rate> |
|
262 | 222 | </contact> |
263 | 223 | </sensor> |
264 | 224 |
|
265 | | - <!-- <sensor name="center_bumper" type="contact"> |
266 | | - <always_on>true</always_on> |
267 | | - <update_rate>20.0</update_rate> |
268 | | - <contact> |
269 | | - <collision>center_bumper_collision</collision> |
270 | | - </contact> |
271 | | - <plugin name="gazebo_ros_center_bumper_controller" filename="libgazebo_ros_bumper.so"> |
272 | | - <bumperTopicName>/roombaROS/events/center_bumper</bumperTopicName> |
273 | | - <ros> |
274 | | - <remapping>/bumper_states:=/roombaROS/events/center_bumper</remapping> |
275 | | - </ros> |
276 | | - <frameName>center_bumper_sensor</frameName> |
277 | | - </plugin> |
278 | | - </sensor> --> |
279 | | - |
280 | 225 | <sensor name="center_bumper" type="contact"> |
281 | 226 | <always_on>true</always_on> |
282 | 227 | <update_rate>20.0</update_rate> |
|
286 | 231 | </contact> |
287 | 232 | </sensor> |
288 | 233 |
|
289 | | - <!-- <sensor name="left_bumper" type="contact"> |
290 | | - <always_on>true</always_on> |
291 | | - <update_rate>20.0</update_rate> |
292 | | - <contact> |
293 | | - <collision>left_bumper_collision</collision> |
294 | | - </contact> |
295 | | - <plugin name="gazebo_ros_left_bumper_controller" filename="libgazebo_ros_bumper.so"> |
296 | | - <bumperTopicName>/roombaROS/events/left_bumper</bumperTopicName> |
297 | | - <ros> |
298 | | - <remapping>/bumper_states:=/roombaROS/events/left_bumper</remapping> |
299 | | - </ros> |
300 | | - <frameName>left_bumper_sensor</frameName> |
301 | | - </plugin> |
302 | | - </sensor> --> |
303 | | - |
304 | 234 | <sensor name="left_bumper" type="contact"> |
305 | 235 | <always_on>true</always_on> |
306 | 236 | <update_rate>20.0</update_rate> |
|
457 | 387 | <max_contacts>10</max_contacts> |
458 | 388 | </collision> |
459 | 389 |
|
460 | | - <!-- <sensor name='laser' type='ray'> |
461 | | - <ray> |
462 | | - <scan> |
463 | | - <horizontal> |
464 | | - <samples>180</samples> |
465 | | - <resolution>1.000000</resolution> |
466 | | - <min_angle>-1.570000</min_angle> |
467 | | - <max_angle>1.570000</max_angle> |
468 | | - </horizontal> |
469 | | - </scan> |
470 | | - <range> |
471 | | - <min>0.080000</min> |
472 | | - <max>10.000000</max> |
473 | | - <resolution>0.010000</resolution> |
474 | | - </range> |
475 | | - </ray> |
476 | | - <update_rate>20.000000</update_rate> |
477 | | - <always_on>1</always_on> |
478 | | - <visualize>1</visualize> |
479 | | - <plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_ray_sensor.so"> |
480 | | - <ros> |
481 | | - <remapping>~/out:=/roombaROS/laser/scan</remapping> |
482 | | - </ros> |
483 | | - <output_type>sensor_msgs/LaserScan</output_type> |
484 | | - <frameName>laser</frameName> |
485 | | - <update_rate>20.000000</update_rate> |
486 | | - </plugin> |
487 | | - </sensor> --> |
488 | | - |
489 | 390 | <sensor name='laser' type='gpu_lidar'> |
490 | 391 | <lidar> |
491 | 392 | <scan> |
|
542 | 443 | <joint name='joint_laser' type='fixed'> |
543 | 444 | <parent>base</parent> |
544 | 445 | <child>laser</child> |
545 | | - <!-- <axis> |
546 | | - <xyz>0.000000 0.000000 0.000000</xyz> |
547 | | - <limit> |
548 | | - <lower>0.000000</lower> |
549 | | - <upper>0.000000</upper> |
550 | | - </limit> |
551 | | - </axis> --> |
552 | 446 | </joint> |
553 | 447 |
|
554 | | - <!-- <plugin name="differential_drive_controller" filename="libgazebo_ros_planar_move.so"> |
555 | | - <alwaysOn>true</alwaysOn> |
556 | | - <updateRate>10</updateRate> |
557 | | - <leftJoint>right_wheel_joint</leftJoint> |
558 | | - <rightJoint>left_wheel_joint</rightJoint> |
559 | | - <wheelSeparation>0.5380</wheelSeparation> |
560 | | - <wheelDiameter>0.2410</wheelDiameter> |
561 | | - <torque>20</torque> |
562 | | - <commandTopic>/cmd_vel</commandTopic> |
563 | | - <odometryTopic>roombaROS/odom</odometryTopic> |
564 | | - <odometryFrame>odom</odometryFrame> |
565 | | - <odometryRate>20.0</odometryRate> |
566 | | - <robotBaseFrame>base</robotBaseFrame> |
567 | | - <publishWheelTF>true</publishWheelTF> |
568 | | - <publishWheelJointState>true</publishWheelJointState> |
569 | | - </plugin> --> |
570 | | - |
571 | 448 | <plugin filename="gz-sim-diff-drive-system" name="gz::sim::systems::DiffDrive"> |
572 | 449 | <left_joint>left_wheel_joint</left_joint> |
573 | 450 | <right_joint>right_wheel_joint</right_joint> |
|
0 commit comments