Velocity or Position wrong in ROS Moveit ?

asked 2020-04-22 21:44:10 -0500

bao041115 gravatar image

updated 2020-04-23 04:36:51 -0500

Hello every one. I have worked with ROS for a few days. I am trying to use ROS to control trajectory tracking in my 6 DOF robot. I used velocity and position which ROS return to run our 6 drivers. However, i think these values have some problems, i saw in the below picture (i get value from ROS topic execute/goal and draw it by python). The time when velocity <0 to >0, i noticed that maybe something wrong happened with position value. Becase before velocity = 0 , i think position need to increase value and when velocity > 0, position will go follow the opposite direction.
Have anyone work with these 2 values ? Could you please show me what wrong in my situation ? Thank you very much !!![image description

image description

edit retag flag offensive close merge delete

Comments

1

Sorry i don't have enough 5 points to upload picture

you do now, and seeing as it's virtually impossible to understand what you are referring to, please edit your question to add the plots.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-23 03:59:10 -0500 )edit

Thank you! i will add the picture

bao041115 gravatar image bao041115  ( 2020-04-23 04:33:46 -0500 )edit

It's not terribly important, but I'm used to plots where time is on the horizontal axis. Did you plot it like this for a reason?

gvdhoorn gravatar image gvdhoorn  ( 2020-04-23 05:13:04 -0500 )edit

Oh sorry, I just plots it to see what happened in the trajectory sent by ROS. I have no a reason for put time on the vertical axis :)).

bao041115 gravatar image bao041115  ( 2020-04-23 05:20:01 -0500 )edit

Then I would suggest to post plots where time is on the horizontal.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-23 05:36:46 -0500 )edit

I have tried it lately but values of time is too long so they overlap each other (i want to keep it nsecond). So that, i think it will be better if my plots is kept like that. Many Thanks for your comment ^ ^

bao041115 gravatar image bao041115  ( 2020-04-23 05:52:11 -0500 )edit