|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <sdf version="1.6"> |
3 | 3 |
|
4 | | - <model name="f1_renault_ackermann_harmonic_laser"> |
| 4 | + <model name="f1_renault_ackermann"> |
5 | 5 | <pose>0 0 0.0 0 0 0</pose> |
6 | 6 |
|
7 | 7 | <link name='base_link'> |
|
45 | 45 | <uri>model://f1_renault_camera/Renault/chasis.dae</uri> |
46 | 46 | </mesh> |
47 | 47 | </geometry> |
48 | | - <surface> |
49 | | - <contact> |
50 | | - <ode /> |
51 | | - </contact> |
52 | | - <friction> |
53 | | - <ode> |
54 | | - <mu>0.2</mu> |
55 | | - <mu2>0.2</mu2> |
56 | | - </ode> |
57 | | - </friction> |
58 | | - </surface> |
59 | 48 | </collision> |
60 | 49 | <visual name='chassis_link_fixed_joint_lump__chassis_link_visual'> |
61 | 50 | <!-- <pose>0 1.51 0 0 -0 1.5708</pose> --> |
|
100 | 89 | <izz>1.04961</izz> |
101 | 90 | </inertia> |
102 | 91 | </inertial> |
103 | | - <collision name='bl_1_collision'> |
104 | | - <pose>0.175 0.20252 0.028 0 -0 0</pose> |
| 92 | + |
| 93 | + <collision name="bl_1_collision"> |
| 94 | + <pose>0 0 0 0 1.57 0</pose> |
105 | 95 | <geometry> |
106 | | - <mesh> |
107 | | - <scale>0.0002 0.0002 0.0002</scale> |
108 | | - <uri>model://f1_renault_camera/Renault/bl_1.stl</uri> |
109 | | - </mesh> |
| 96 | + <cylinder> |
| 97 | + <radius>0.065</radius> |
| 98 | + <length>0.05</length> |
| 99 | + </cylinder> |
110 | 100 | </geometry> |
111 | 101 | <surface> |
112 | | - <contact> |
113 | | - <ode /> |
114 | | - </contact> |
115 | 102 | <friction> |
116 | 103 | <ode> |
117 | 104 | <mu>1.7</mu> |
|
120 | 107 | </friction> |
121 | 108 | </surface> |
122 | 109 | </collision> |
| 110 | + |
123 | 111 | <visual name='bl_1_visual'> |
124 | 112 | <!-- <pose>0.875 1.0136 0.1444 0 -0 0</pose> --> |
| 113 | + |
125 | 114 | <pose>0.175 0.028 -0.20252 0 -0 0</pose> |
126 | 115 | <geometry> |
127 | 116 | <mesh> |
|
163 | 152 | <izz>1.04961</izz> |
164 | 153 | </inertia> |
165 | 154 | </inertial> |
166 | | - <collision name='br_1_collision'> |
167 | | - <pose>-0.175 0.20252 0.028 0 0 0</pose> |
| 155 | + |
| 156 | + <collision name="br_1_collision"> |
| 157 | + <pose>0 0 0 0 1.57 0</pose> |
168 | 158 | <geometry> |
169 | | - <mesh> |
170 | | - <scale>0.0002 0.0002 0.0002</scale> |
171 | | - <uri>model://f1_renault_camera/Renault/br_1.stl</uri> |
172 | | - </mesh> |
| 159 | + <cylinder> |
| 160 | + <radius>0.065</radius> |
| 161 | + <length>0.05</length> |
| 162 | + </cylinder> |
173 | 163 | </geometry> |
174 | 164 | <surface> |
175 | | - <contact> |
176 | | - <ode /> |
177 | | - </contact> |
178 | 165 | <friction> |
179 | 166 | <ode> |
180 | 167 | <mu>1.7</mu> |
|
183 | 170 | </friction> |
184 | 171 | </surface> |
185 | 172 | </collision> |
| 173 | + |
186 | 174 | <visual name='br_1_visual'> |
187 | 175 | <!-- <pose>-0.875 1.0136 0.1444 0 -0 0</pose> --> |
| 176 | + |
188 | 177 | <pose>-0.175 0.028 -0.20252 0 -0 0</pose> |
189 | 178 | <geometry> |
190 | 179 | <mesh> |
|
194 | 183 | </geometry> |
195 | 184 | </visual> |
196 | 185 | <self_collide>0</self_collide> |
197 | | - </link> |
| 186 | + </link> |
198 | 187 |
|
199 | 188 |
|
200 | 189 | <!-- Steering Wheel --> |
|
243 | 232 | </mesh> |
244 | 233 | </geometry> |
245 | 234 | </visual> |
246 | | - <self_collide>1</self_collide> |
| 235 | + <self_collide>0</self_collide> |
247 | 236 | </link> |
248 | 237 |
|
249 | | - |
| 238 | + |
250 | 239 | <!-- Left Steering --> |
251 | 240 | <!-- <joint name='l_steer' type='revolute'> |
252 | 241 | <pose relative_to='chassis_link'>-0.825 1.51736 0.324997 0 -0 0</pose> |
|
346 | 335 | <izz>1.04961</izz> |
347 | 336 | </inertia> |
348 | 337 | </inertial> |
349 | | - <collision name='fl_1_collision'> |
350 | | - <pose>0.175 -0.30348 0.02888 0 -0 0</pose> |
| 338 | + |
| 339 | + <collision name="fl_1_collision"> |
| 340 | + <pose>0 0 0 0 1.57 0</pose> |
351 | 341 | <geometry> |
352 | | - <mesh> |
353 | | - <scale>0.0002 0.0002 0.0002</scale> |
354 | | - <uri>model://f1_renault_camera/Renault/fl_1.stl</uri> |
355 | | - </mesh> |
| 342 | + <cylinder> |
| 343 | + <radius>0.065</radius> |
| 344 | + <length>0.05</length> |
| 345 | + </cylinder> |
356 | 346 | </geometry> |
357 | 347 | <surface> |
358 | | - <contact> |
359 | | - <ode /> |
360 | | - </contact> |
361 | 348 | <friction> |
362 | 349 | <ode> |
363 | | - <mu>1.1</mu> |
364 | | - <mu2>1.1</mu2> |
| 350 | + <mu>1.7</mu> |
| 351 | + <mu2>1.7</mu2> |
365 | 352 | </ode> |
366 | 353 | </friction> |
367 | 354 | </surface> |
368 | 355 | </collision> |
369 | 356 | <visual name='fl_1_visual'> |
370 | 357 | <!-- <pose>0.875 -1.5174 0.1444 0 -0 0</pose> --> |
| 358 | + |
371 | 359 | <pose>0.175 0.02888 0.30348 0 -0 0</pose> |
372 | 360 | <geometry> |
373 | 361 | <mesh> |
|
378 | 366 | </visual> |
379 | 367 | <self_collide>0</self_collide> |
380 | 368 | </link> |
381 | | - |
| 369 | + |
382 | 370 | <!-- Right Steering --> |
383 | 371 | <!-- <joint name='r_steer' type='revolute'> |
384 | 372 | <pose relative_to='chassis_link'>0.825 1.51736 0.324997 0 -0 0</pose> |
|
443 | 431 | <izz>1.04961</izz> |
444 | 432 | </inertia> |
445 | 433 | </inertial> |
446 | | - <collision name='fr_1_collision'> |
447 | | - <pose>-0.175 -0.30348 0.02888 0 -0 0</pose> |
| 434 | + <collision name="fr_1_collision"> |
| 435 | + <pose>0 0 0 0 1.57 0</pose> |
448 | 436 | <geometry> |
449 | | - <mesh> |
450 | | - <scale>0.0002 0.0002 0.0002</scale> |
451 | | - <uri>model://f1_renault_camera/Renault/fr_1.stl</uri> |
452 | | - </mesh> |
| 437 | + <cylinder> |
| 438 | + <radius>0.065</radius> |
| 439 | + <length>0.05</length> |
| 440 | + </cylinder> |
453 | 441 | </geometry> |
454 | 442 | <surface> |
455 | | - <contact> |
456 | | - <ode /> |
457 | | - </contact> |
458 | 443 | <friction> |
459 | 444 | <ode> |
460 | 445 | <mu>1.7</mu> |
|
464 | 449 | </surface> |
465 | 450 | </collision> |
466 | 451 | <visual name='fr_1_visual'> |
467 | | - <!-- <pose>-0.875 -1.5174 0.1444 0 -0 0</pose> --> |
468 | 452 | <pose>-0.175 0.02888 0.30348 0 -0 0</pose> |
469 | 453 | <geometry> |
470 | 454 | <mesh> |
|
474 | 458 | </geometry> |
475 | 459 | </visual> |
476 | 460 | </link> |
477 | | - |
| 461 | + |
478 | 462 | <link name="camera_link"/> |
479 | 463 |
|
480 | 464 | <link name="camera_rgb_frame"> |
|
491 | 475 | <mass>0.035</mass> |
492 | 476 | </inertial> |
493 | 477 |
|
494 | | - <!-- OLD POSE --> |
495 | | - <!-- <pose>0.0138 -0.0094 0.0214 0 0 0</pose> --> |
496 | | - |
497 | | - <!-- NEW POSE --> |
498 | 478 | <pose>0 2.7 0.2 0 0 1.57</pose> |
499 | 479 |
|
500 | 480 | <sensor name="camera" type="camera"> |
501 | 481 | <always_on>true</always_on> |
502 | 482 | <visualize>true</visualize> |
503 | | - <update_rate>30</update_rate> |
| 483 | + <update_rate>20.0</update_rate> |
504 | 484 | <topic>/cam_f1_left/image_raw</topic> |
505 | 485 | <gz_frame_id>camera_rgb_frame</gz_frame_id> |
506 | | - <camera name="intel_realsense_r200"> |
| 486 | + <camera name="cleft"> |
507 | 487 | <camera_info_topic>/cam_f1_left/camera_info</camera_info_topic> |
508 | | - <horizontal_fov>1.02974</horizontal_fov> |
| 488 | + <horizontal_fov>1.570000</horizontal_fov> |
509 | 489 | <image> |
510 | | - <width>1920</width> |
511 | | - <height>1080</height> |
| 490 | + <width>640</width> |
| 491 | + <height>480</height> |
512 | 492 | <format>R8G8B8</format> |
513 | 493 | </image> |
514 | 494 | <clip> |
515 | | - <near>0.02</near> |
516 | | - <far>300</far> |
| 495 | + <near>0.100000</near> |
| 496 | + <far>15.000000</far> |
517 | 497 | </clip> |
518 | 498 | <noise> |
519 | 499 | <type>gaussian</type> |
|
523 | 503 | <mean>0.0</mean> |
524 | 504 | <stddev>0.007</stddev> |
525 | 505 | </noise> |
526 | | - </camera> |
| 506 | + </camera> |
527 | 507 | </sensor> |
528 | 508 | </link> |
529 | 509 |
|
|
546 | 526 | </joint> |
547 | 527 |
|
548 | 528 | <!-- Gazebo Harmonic Plugins --> |
549 | | - |
| 529 | + |
550 | 530 | <!-- Ackermann Steering Plugin --> |
551 | 531 | <plugin filename="gz-sim-ackermann-steering-system" name="gz::sim::systems::AckermannSteering"> |
552 | 532 | <left_joint>fl_axle</left_joint> |
|
555 | 535 | <right_joint>br_axle</right_joint> |
556 | 536 | <left_steering_joint>front_steering</left_steering_joint> |
557 | 537 | <right_steering_joint>front_steering</right_steering_joint> |
558 | | - <kingpin_width>1.65</kingpin_width> |
559 | | - <steering_limit>0.3</steering_limit> |
560 | | - <wheel_base>3.351</wheel_base> |
561 | | - <wheel_separation>1.65</wheel_separation> |
562 | | - <wheel_radius>0.3425</wheel_radius> |
563 | | - <sub_topic>steer_angle</sub_topic> |
| 538 | + |
| 539 | + <kingpin_width>0.32</kingpin_width> |
| 540 | + <steering_limit>0.52</steering_limit> |
| 541 | + |
| 542 | + <wheel_base>0.6702</wheel_base> |
| 543 | + <wheel_separation>0.33</wheel_separation> |
| 544 | + <wheel_radius>0.0325</wheel_radius> |
| 545 | + |
564 | 546 | <min_velocity>-50</min_velocity> |
565 | 547 | <max_velocity>50</max_velocity> |
566 | 548 | <min_acceleration>-50</min_acceleration> |
|
593 | 575 | <odom_topic>F1ROS/odom</odom_topic> |
594 | 576 | <robot_base_frame>chassis_link</robot_base_frame> |
595 | 577 | <odom_frame>odom</odom_frame> |
596 | | - <odom_publish_frequency>50</odom_publish_frequency> |
| 578 | + <odom_publish_frequency>20</odom_publish_frequency> |
597 | 579 | <dimensions>3</dimensions> |
598 | 580 | </plugin> |
599 | 581 |
|
600 | | - <!-- Pose Publisher --> |
601 | | - <plugin filename="gz-sim-pose-publisher-system" name="gz::sim::systems::PosePublisher"> |
602 | | - <publish_link_pose>true</publish_link_pose> |
603 | | - <publish_collision_pose>false</publish_collision_pose> |
604 | | - <publish_visual_pose>false</publish_visual_pose> |
605 | | - <publish_nested_model_pose>true</publish_nested_model_pose> |
606 | | - <update_frequency>50</update_frequency> |
607 | | - </plugin> |
608 | | - |
609 | 582 | <!-- Joint Position Controller for steering wheel (optional) --> |
610 | 583 | <plugin filename="gz-sim-joint-position-controller-system" name="gz::sim::systems::JointPositionController"> |
611 | 584 | <joint_name>steering_joint</joint_name> |
612 | | - <sub_topic>steering_wheel_cmd</sub_topic> |
| 585 | + <topic>/F1ROS/cmd_vel</topic> |
613 | 586 | <p_gain>10</p_gain> |
614 | 587 | <i_gain>0.1</i_gain> |
615 | 588 | <d_gain>1</d_gain> |
|
0 commit comments