Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion of lat & lon to ECEF coordinates #34

Open
pallyra1 opened this issue Jan 18, 2018 · 2 comments
Open

Conversion of lat & lon to ECEF coordinates #34

pallyra1 opened this issue Jan 18, 2018 · 2 comments

Comments

@pallyra1
Copy link

I want to convert latitude and longitude provided by the gps to ECEF coordinates and further convert them to NED coordinates.
What are the steps to do that?
I am new to ROS.

Upon using command
rosrun geodetic_utils set_gps_reference_node
I am getting,

[ INFO] [1516291269.537867694]: Usage: set_gps_reference [n_fixes] [average|wait], defaults: n_fixes=50, average
[ INFO] [1516291269.537931520]: Taking 2 measurements and averaging to get the reference

Then using the command,
rosrun geodetic_utils gps_to_pose_conversion_node
I am getting,

[ INFO] [1516295811.468117753]: Waiting for GPS reference parameters...
[ INFO] [1516295811.468581024]: GPS reference not ready yet, use set_gps_reference_node to set it

@yash508oza
Copy link

yash508oza commented Aug 28, 2018

I am also facing the same issue.

[ INFO] [1516295811.468117753]: Waiting for GPS reference parameters...
[ INFO] [1516295811.468581024]: GPS reference not ready yet, use set_gps_reference_node to set it

The GPS is not able to initialize properly, maybe ? Any help from the mods would be greatly appreciated! Thanks

@marija-p
Copy link

Hi @pallyra1 and @YashOza ,

It seems you are having trouble with the set_gps_reference node. This node subscribes to a GPS message topic, waits and averages the measurements it receives, and then publishes the result to the parameter server (gps_ref_latitude, gps_ref_longitude, gps_ref_altitude, gps_ref_is_init).

If your node is not receiving messages on the gps topic, it will not be able to set the references, and subsequent nodes that rely on them will not be able to function. Therefore, you need to check that you are reciving a gps fix from your device and make sure it is remapped correctly to the gps topic. You can type:

rostopic echo gps

to see if valid measurements are received.

Hope this helps & please let me know how it goes. Thanks for using our repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants