Ask Your Question
0

Orientation to grasp object from y axis

asked 2019-02-25 08:08:21 -0500

mvish7 gravatar image

Hello,

I’m trying to achieve pick and place in gazebo by sending trajectory from moveit. I noticed in moveit pick and place tutorial that orientation is given as follows:

orientation.setRPY(-M_PI / 2, -M_PI / 4, -M_PI / 2)

This orientation tries to pick the object from x-axis direction ( considering x axis is forward, y axis is pointing to the left and z axis is upwards.) Below image demonstartes how my robot arm positions itself when given above orienatation

image description image description

I want to grasp the object from y axis side i.e parallel to the yellow axis shown in the image. What can be the orientation of the robot??

I have came till this orientation:

orientation.setRPY(-M_PI / 4, -M_PI/2 , -M_PI /4)

below is the image representing robot arm with this orientation. image description image description

if you see then gripper is still inclined and not exactly horizontal. can anyone tell me what can be orientation to grasp the object from y axis direction??

edit retag flag offensive close merge delete

Comments

Could you please not close questions if you've actually answered them?

Please click the checkmark to the left of the / your answer instead.

gvdhoorn gravatar imagegvdhoorn ( 2019-03-04 05:06:52 -0500 )edit

sure. My bad as i didn’t know this process. I’ll follow as you suggested.

mvish7 gravatar imagemvish7 ( 2019-03-04 05:09:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-03-04 04:50:59 -0500

mvish7 gravatar image

I would report what worked for me:

Due to initial rotation of robot around z axis i was not able to approach the object exactly as i wanted. Below is the orientation which can help you to approach the object in y axis direction if you dont have any initial rotation.

orientation.setRPY(-M_PI / 4, -M_PI/2 , -M_PI /4);
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-02-25 08:08:21 -0500

Seen: 101 times

Last updated: Mar 04