|
373 | 373 | </ode>
|
374 | 374 | </physics>
|
375 | 375 | </joint>
|
| 376 | + <!-- Include LW20 model for visuals only --> |
| 377 | + <include merge='true'> |
| 378 | + <uri>model://LW20</uri> |
| 379 | + <pose relative_to="base_link">0.05 0 -0.1 0 1.57 0</pose> |
| 380 | + </include> |
| 381 | + |
| 382 | + <!-- Joint to connect LW20 visual model to plane --> |
| 383 | + <joint name="lidar_model_joint" type="fixed"> |
| 384 | + <parent>base_link</parent> |
| 385 | + <child>lw20_link</child> |
| 386 | + <pose relative_to="base_link">0 0 0 0 0 0</pose> |
| 387 | + </joint> |
| 388 | + |
| 389 | + <!-- Joint to connect actual lidar sensor link to plane --> |
| 390 | + <joint name="lidar_sensor_joint" type="fixed"> |
| 391 | + <parent>base_link</parent> |
| 392 | + <child>lidar_sensor_link</child> |
| 393 | + </joint> |
| 394 | + |
| 395 | + <!-- Define actual lidar sensor link with properly oriented sensor --> |
| 396 | + <link name="lidar_sensor_link"> |
| 397 | + <pose relative_to="base_link">0.05 0 0 0 1.57 0</pose> |
| 398 | + <inertial> |
| 399 | + <mass>0.001</mass> |
| 400 | + <inertia> |
| 401 | + <ixx>0.00001</ixx> |
| 402 | + <iyy>0.00001</iyy> |
| 403 | + <izz>0.00001</izz> |
| 404 | + <ixy>0.0</ixy> |
| 405 | + <ixz>0.0</ixz> |
| 406 | + <iyz>0.0</iyz> |
| 407 | + </inertia> |
| 408 | + </inertial> |
| 409 | + <sensor name='lidar' type='gpu_lidar'> |
| 410 | + <pose>0 0 0 0 0 0</pose> |
| 411 | + <update_rate>50</update_rate> |
| 412 | + <ray> |
| 413 | + <scan> |
| 414 | + <horizontal> |
| 415 | + <samples>1</samples> |
| 416 | + <resolution>1</resolution> |
| 417 | + <min_angle>0</min_angle> |
| 418 | + <max_angle>0</max_angle> |
| 419 | + </horizontal> |
| 420 | + <vertical> |
| 421 | + <samples>1</samples> |
| 422 | + <resolution>1</resolution> |
| 423 | + <min_angle>0</min_angle> |
| 424 | + <max_angle>0</max_angle> |
| 425 | + </vertical> |
| 426 | + </scan> |
| 427 | + <range> |
| 428 | + <min>0.1</min> |
| 429 | + <max>100.0</max> |
| 430 | + <resolution>0.01</resolution> |
| 431 | + </range> |
| 432 | + </ray> |
| 433 | + <always_on>1</always_on> |
| 434 | + <visualize>true</visualize> |
| 435 | + </sensor> |
| 436 | + </link> |
376 | 437 | <plugin
|
377 | 438 | filename="gz-sim-joint-position-controller-system" name="gz::sim::systems::JointPositionController">
|
378 | 439 | <joint_name>servo_0</joint_name>
|
|
0 commit comments