ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

record time from rviz

asked 2019-01-23 10:41:57 -0500

Yosra Griri gravatar image

hi, I am trying to record time from rviz in order to plot the velocity of an UR10 robot (using linux). I am totally new to ROS

edit retag flag offensive close merge delete

Comments

Can you edit your question clarify what you mean by "record time"?

tfoote gravatar image tfoote  ( 2019-01-23 15:59:43 -0500 )edit

RViz gives us ROS time right ? Well I am trying to track the robot and save a video of its movements which includes the time of course and if possible with the distance

Yosra Griri gravatar image Yosra Griri  ( 2019-01-24 02:31:10 -0500 )edit

What velocity are you trying to record? Joint angular velocities, end effector linear velocity or end effector 6DOF velocity? All of this can be done without RVIZ using the relevant topics.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-01-24 09:24:19 -0500 )edit

I am trying to get the cartesian ("linear") Velocity at a certain time.. I am so confused . I am a beginner to programming

Yosra Griri gravatar image Yosra Griri  ( 2019-01-24 09:45:47 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-01-24 10:30:04 -0500

If you want to record the linear velocity of the end effector of your UR10 then you're going to have to program a simple node to do this yourself.

The python transform listener tutorial should be a good place to start. You'll want to look up the transform between the base frame and EE frame, then by comparing two different samples you can work out the change in position and change in time and therefore working out the velocity.

Hope this makes sense.

edit flag offensive delete link more
0

answered 2019-01-24 09:21:28 -0500

VictorLamoine gravatar image

You probably want to use rosbag.

It will allow you to save data from ROS topics and play the data again. If you are receiving joint states from the robot through a driver then you just have to record this and you will be able to get the speed of the robot etc.

edit flag offensive delete link more

Comments

I will try it thanks.

Yosra Griri gravatar image Yosra Griri  ( 2019-01-24 09:46:11 -0500 )edit

Question Tools

Stats

Asked: 2019-01-23 10:41:57 -0500

Seen: 354 times

Last updated: Jan 24 '19