Question with gazebo plugin libgazebo_ros_planar_move.so

asked 2023-04-04 15:16:44 -0500

dandog gravatar image

Hi all.

So I'm trying to use libgazebo_ros_planar_move.so plugin in my xacro file.

I want to know what tag that use to publish odom transform and wheel transform and other wheel setting.Or some document to see.

Like libgazebo_ros_diff_drive.so there is like <wheel_separation> tag to define wheel seperation length, <publish_odom_tf> and <publish_wheel_tf> to publish odom and wheel transform,but I can't find any document about planar move plugin

This is my plugin xacro with planar_move plugin with this ref

<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<gazebo>
    <plugin name="psuedo_mecanum" filename="libgazebo_ros_planar_move.so">


    <left_rear_joint>wheel_3_joint</left_rear_joint>
    <right_rear_joint>wheel_2_joint</right_rear_joint>
    <left_front_joint>wheel_4_joint</left_front_joint>
    <right_front_joint>wheel_1_joint</right_front_joint>

    <wheel_separation>0.72</wheel_separation>
    <wheel_radius>0.1</wheel_radius>
    <wheel_accel>1</wheel_accel>
    <wheel_torque>0.2</wheel_torque>

    <commandTopic>cmd_vel</commandTopic>
    <odometryTopic>odom</odometryTopic>
    <odometryFrame>odom</odometryFrame>
    <odometryRate>20.0</odometryRate>
    <robotBaseFrame>base_link</robotBaseFrame>

    </plugin>
</gazebo>

</robot>

image description

I want to see something like this

image description

I'm using Ubuntu 20.04 with ros2 Foxy,gazebo 11.11.0

Thanks all

edit retag flag offensive close merge delete