Ask Your Question

Calculate position of robot

asked 2018-05-28 13:13:57 -0600

aled96 gravatar image


I would like to know if there is a method to calculate the position of a robot based on angular velocity and accelerations.

I would like, from a start position, to move my robot and, based on angular velocity and accelerations (3 axis) understand where he is.

Is there a way to do it in python ?

Thank you really very much !

edit retag flag offensive close merge delete


well if u'r robot is in gazebo simulation than u can use ros controller plugin which u have to put in your robot's urdf file. after that u have to load the joint_state_controller which published the joint_state topics from which u can get the position and orianatation of every link.

dinesh gravatar image dinesh  ( 2018-05-29 02:11:12 -0600 )edit

Or you can use a tf listener between the frames odom and map .

Delb gravatar image Delb  ( 2018-05-29 04:40:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-29 02:53:52 -0600

eirikaso gravatar image

updated 2018-05-29 02:54:55 -0600

That is absolutely possible, but it is based on some intricate calculations that you need to do. The particular you are looking for is the "forward kinematics" of the robot you are using. This allows you to calculate the end-effector position of the robot based on its joint positions (rotational or translational joints). This is done by the use of Denavit Hartenberg parameters which are unique for every robot, and unless your is a mass produced one, you probably have to figure them out yourself. Check out this link . I should warn you that you need some mathematical skills since these are generally subjects studied at universities.

There is also something called "inverse kinematics" that calculate what position the joints need to be in in order for the end-effector to be at a specific point in space

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



Asked: 2018-05-28 13:13:57 -0600

Seen: 504 times

Last updated: May 29 '18