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

Calculate position of robot

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

aled96 gravatar image

Hi,

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

Comments

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 -0500 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
2

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

eirikaso gravatar image

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

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 https://blog.robotiq.com/how-to-calcu... . 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

Question Tools

2 followers

Stats

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

Seen: 1,011 times

Last updated: May 29 '18