Ask Your Question
1

Odometry Information Source

asked Jan 24

Cav gravatar image Cav
140 3 11

updated Feb 22

Hi,

I'm trying to generate odometry information following this tutorial. I am using a robot like this one - build with phidgets and with a Kinect mounted.

My problem is that I don't have a speed-source for the robot. It does not have a stepper motor or encoder and the actual speed depends on many factors (laptop weight, floor type, battery state, ...). Seems like this is my best shot for now (Obtaining nav_msgs/Odometry from a laser_scan (eg. with laser_scan_matcher)). Is vslam worth trying with kinect? Is there any other possibility? Am I missing something?

Edit: it's quite pointless. I can say that the robot moves with fixed speed x and it kind of works but the next issue is the yaw angle - I don't have a gyro and laser_scan_matcher estimations are not very accurate.

For me it means: gmapping won't work without a good odometry source.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered Jan 24

DimitriProsser gravatar image DimitriProsser flag of United States
6817 23 59 126

I believe that this is what you're looking for. You can then use laser_scan_matcher to compute odometry information.

link delete flag offensive edit

Comments

This is what was in the answer I mentioned (Obtaining nav_msgs/Odometry from a laser_scan), too, but in order to make it work I would have to modify laser_scan_matcher pkg, if I understood it correctly. Is there no other option? FYI I am quite new to ROS :) Cav (Jan 24)edit
Why would you have to modify laser_scan_matcher? DimitriProsser (Jan 24)edit
Why do you need the velocity information specifically? Usually the velocity information is integrated to help inform the position. The laser scan matching goes directly to positional which is usually what you care about. tfoote (Jan 24)edit
@DimitriProsser: laser_scan_matcher is publishing the information as geometry_msgs/Pose2D so I would have to modify it to obtain the needed nav_msgs/Odometry and publish it to the odom topic, right? Cav (Jan 26)edit
@tfoote: I was following the Odom-tutorial and using the code from it - I need the vx, vy, vth to compute the odometry. laser_scan_matcher is giving me the position already but to be able to publish nav_msgs/Odometry I still need the speed. Cav (Jan 26)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Jan 24

Seen: 119 times

Last updated: Feb 22