Ask Your Question
1

How to plot position(x y z) and velocity of fixed frames(end-effector) in rqt ?? [closed]

asked 2017-01-21 10:37:02 -0600

zakizadeh gravatar image

updated 2017-04-13 01:39:37 -0600

hi . i need answer to complete my Master's thesis. i want plot position and velocity of end effector that have fixed joint using rqt. How to plot position(x y z) and velocity of fixed frames(end-effector) in rqt ?? can you write a very very very simple examlpe for that ?? like two link and one joint arm . and plot position(x y z) of second link in rqt ??

UR5 straight line motion

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by NEngelhard
close date 2017-02-18 04:43:13.128143

Comments

Please stop editing your question just to put it back on the first page.

NEngelhard gravatar imageNEngelhard ( 2017-04-13 01:43:45 -0600 )edit

can you write a very very very simple examlpe for that ?? for god doing that , please !

zakizadeh gravatar imagezakizadeh ( 2017-04-13 04:33:48 -0600 )edit
2

You don't show that you tried to do it yourself, you don't even care about writing correctly. Why should someone else do your work?

NEngelhard gravatar imageNEngelhard ( 2017-04-13 05:52:20 -0600 )edit

i tried . but i just need examlpe for that . i cant find any sample , like two link and one joint arm . and plot position(x y z) of second link in rqt

zakizadeh gravatar imagezakizadeh ( 2017-04-13 14:03:55 -0600 )edit
1

You were told how to do it several times: get a tf client, use it to get your translation, publish your values on separate float-topics.

NEngelhard gravatar imageNEngelhard ( 2017-04-13 14:49:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-01-21 10:48:45 -0600

gvdhoorn gravatar image

updated 2017-01-21 12:34:32 -0600

A fixed joint has no element in the /joint_states/position array, as it cannot change from 0.0 (it's fixed, after all).

You could probably use the pose of your EEF as tracked by TF. Something like rosrun tf tf_echo CHAIN_START CHAIN_END (where CHAIN_START could be base_link and CHAIN_END the frame that represents your EEF) should give you the transform.


Edit:

how can i plot velocity of fixed joint ??

There is no entry in any of the arrays in a JointState message for fixed joints. Again: they are fixed. No velocity, acceleration or effort for these joints.

Note: I'm describing the typical situation (such as with joint_state_publisher with gui:=true). Whether all drivers do the same thing I cannot say, but it wouldn't make sense to me to publish joint values for something like a fixed joint.

edit flag offensive delete link more

Comments

how can i plot pose for my fixed joint(joint_U26_1) like rqt_plot /turtle1/pose/x:y ??

what is a turtle1 ??

zakizadeh gravatar imagezakizadeh ( 2017-01-21 20:47:52 -0600 )edit

Joints don't have poses, only links have poses (every link becomes a TF frame). Plotting TF frames is slightly involved. See #q58793 for some hints.

gvdhoorn gravatar imagegvdhoorn ( 2017-01-22 04:02:55 -0600 )edit
gvdhoorn gravatar imagegvdhoorn ( 2017-01-22 04:05:58 -0600 )edit

how use this command ?? rxplot /tf/transforms[0]/transform/translation/x thats not working .

zakizadeh gravatar imagezakizadeh ( 2017-01-22 10:45:03 -0600 )edit

rxplot is now rqt_plot.

gvdhoorn gravatar imagegvdhoorn ( 2017-01-22 15:20:01 -0600 )edit

rqt_plot /tf/transforms[0]/transform/translation/x not working .

can i use this page?? what can i do ?

zakizadeh gravatar imagezakizadeh ( 2017-01-22 20:57:43 -0600 )edit

what about this one??

zakizadeh gravatar imagezakizadeh ( 2017-01-23 10:34:41 -0600 )edit

That page still works with JointState messages, which do not typically include fixed joints. You'll have to plot TF frames, not JointState msgs. The pkgs I linked in my earlier comment could help you with that.

gvdhoorn gravatar imagegvdhoorn ( 2017-01-23 10:53:54 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2017-01-21 10:37:02 -0600

Seen: 1,056 times

Last updated: Apr 13 '17