Publish in joint state topic in Rviz but nothing moves.

asked 2021-03-12 13:25:36 -0600

alexspi13 gravatar image

updated 2021-03-12 13:26:27 -0600

Hello. I have a real robot car and I want to visualise movement of wheels. I publish in joint states topic but nothing happened. I use this command:

rostopic echo /joint_states

To see the specific joint's name:

  seq: 9727
    secs: 1615576738
    nsecs: 558135986
  frame_id: ''
name: [joint_left_wheel_f]

And then I publish via command:

rostopic pub /joint_states sensor_msgs/JointState "header:
  seq: 0
  stamp: {secs: 0, nsecs: 0}
  frame_id: ''
name: [joint_left_wheel_f]
position: [2]
velocity: [20]
effort: [10]"

Also I have Qt Gui and I tried from there too. I got same results, also there I noticed that didn't publish message every time I push the button, but has some delay of 5 seconds."joint_left_wheel_f");

In terminal I got this warning in both cases:

[ WARN] [1615575891.916446737]: Received JointState is 1615575891.916348 seconds old.
edit retag flag offensive close merge delete


Looks like it's using a different ros version.

do you have more than one ros version on your laptop?

kak13 gravatar image kak13  ( 2021-03-12 23:51:23 -0600 )edit

I remove ROS and I install it again but continues not working. Why?

alexspi13 gravatar image alexspi13  ( 2021-03-13 09:46:53 -0600 )edit

ros version? do you have more than one ros version on your laptop? Remember, I had zero idea what's on your laptop

kak13 gravatar image kak13  ( 2021-03-15 07:31:45 -0600 )edit