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

How do you implement GPS using robot_localization

asked 2015-07-01 12:36:13 -0500

negotiator14 gravatar image

updated 2015-07-08 11:22:08 -0500

I'm a bit new to ROS and I'm unsure how to implement GPS into the project I'm working on. So far I know that I can use robot_localization to get GPS but how would that be implemented ?

Edit 1:

Thanks for the reply,

Yes I have, I've been working on it for a couple of days and it's starting to make sense now. I'm still struggling on some stuff such as how to use the nmea drivers. In the robot_localization tutorials you make a launch file but the nmea wiki it is possible to just use rosrun to get things up and running. Do you first use rosrun to make the connection with the hardware and then launch the launch file to start getting all of the data? Another thing is that I will not be using any odometry data for my localization project. What files do I need to edit so that the code won't be calling for any odometry data?

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2015-07-06 19:32:35 -0500

Tom Moore gravatar image

updated 2015-07-09 15:34:49 -0500

Have you seen this page? If you have and something isn't clear, please let me know and I'll update it.

EDIT: You might benefit by reading up a little more on roslaunch. One of the points of roslaunch is to save you from having to use rosrun and entering a ton of parameters by hand, e.g.,

rosrun amazing_package amazing_node param_a:=100 param_b:=true param_c:=-999 param_d:=false

Instead, you just create a launch file that kicks off the node and passes in all those parameters. Then you can just launch your launch file instead, e.g.,

roslaunch amazing_package amazing_launch_file.launch

The state estimation nodes in robot_localization do not require an odometry source. navsat_transform_node converts GPS data to an odometry message so that ekf_localization_node or ukf_localization_node can consume it. However, if you want to fuse GPS data, you will need an IMU with an earth-referenced absolute heading.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-07-01 12:36:13 -0500

Seen: 498 times

Last updated: Jul 09 '15