Ask Your Question
0

Made URDF File whats next? [closed]

asked 2015-04-23 01:28:07 -0600

felixwatzlawik gravatar image

Hello People,

I am trying to control a robot with ROS. ROS is running on Ubuntu and I want to send the Data through UDP to my Motors, I got a predefined interface there and have to send m/s and rad/s through udp.

Now I created my URDF file but how can I input odometry data and stuff? I have no idea what to do next`?

thanks in adavance

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by felixwatzlawik
close date 2015-05-04 05:26:40.921493

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-04-23 07:15:51 -0600

updated 2015-04-23 07:41:04 -0600

Assuming a two wheel robot (differential drive robot), i would:

  • Make a node which sends data to your motor control and receives encoder data.

  • use geometry_msgs::Twist topic for speed input. linear.x for forward, angular.z for turning (others unused)

  • Calculate speeds and position starting from start position-> odometry and publish to /odom (nav_msgs::Odometry)

  • publish TF from base_link to odometry.

Hint: checkout gazebo plugins for diff drive for odometry calculations...

Regards,

Christian

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-23 01:28:07 -0600

Seen: 84 times

Last updated: Apr 23 '15