Publish in joint state topic in Rviz but nothing moves.
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
stamp:
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.
left_wheel_front.name.push_back("joint_left_wheel_f");
left_wheel_front.position.push_back(3);
rviz_publisher.publish(left_wheel_front);
In terminal I got this warning in both cases:
[ WARN] [1615575891.916446737]: Received JointState is 1615575891.916348 seconds old.
Looks like it's using a different ros version.
do you have more than one ros version on your laptop?
I remove ROS and I install it again but continues not working. Why?
ros version? do you have more than one ros version on your laptop? Remember, I had zero idea what's on your laptop