Gazebo | Ignition | Community
Ask Your Question

How Gazebo process VelocityJoint data?

asked 2019-11-09 06:20:52 -0500

vitsensei gravatar image

Hi, I'm currently trying to use ros_control and Gazebo to simulate a unicycle rover. I used Velocity Joint Interface to control the velocity of each of my joint. Here's the transmission tag in URDF file: <transmission name="tran2">

<joint name="holder2wheel_right">
<actuator name="motor_right">

</transmission> And in the launch file:

  <!-- load the controllers -->
  <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
    output="screen" ns="/rover" args="left_wheel right_wheel joint_state_controller"/>

  <!-- convert joint states to TF transforms for rviz, etc -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">
    <remap from="/joint_states" to="/rover/joint_states" />

So my question is, if I set the wheel joint to have a velocity of 1 rad/s, would the wheel guarantee to have 1 rad/s?:

left_wheel_pub = rospy.Publisher("/rover/left_wheel/command", Float64, queue_size=10)

And is there a way to check the actual speed of the joint? Like a topic that is published by Gazebo?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-11 04:56:06 -0500

kumpakri gravatar image

updated 2019-11-11 05:03:19 -0500

"is there a way to check the actual speed of the joint?"


The /imow/joint_states gazebo topic contains the velocity field for each joint loaded by the controller.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-11-09 06:20:52 -0500

Seen: 115 times

Last updated: Nov 11 '19