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

Example launch file for dual_ekf_navsat_example contains wrong remapping rule #749

Open
splatter96 opened this issue May 1, 2022 · 13 comments
Assignees
Labels

Comments

@splatter96
Copy link

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • galactic versions in apt as of today

Steps to reproduce issue

Set the wait_for_datum paramter to false
Launch the provided dual_ekf_navsat_example.launch.py launch file with an appropriate simulation of sensor setup.

Expected behavior

All transformations, especially map-->odom and odom-->baseframe should be published with the correct covariance.

Actual behavior

All transformations get published, but the map-->odom covariance increases with the moved distance.
After issuing a call to the /datum service with an initial pose, the covariance behaves as expected.

Additional information

After looking though the code of the navsat_transform node it show, that it subsribes to the "imu" topic for measurements of the imu sensor and only start proper transformations after it receives information at least once from it.
The provided launch file includes a remapping from "imu/data" to "imu/data" this remapping should be from "imu" to "imu/data". After changing this I got the expected behaviour.

@ayrton04
Copy link
Collaborator

ayrton04 commented May 3, 2022

Thanks for catching that. Any chance you could submit a PR?

@ayrton04 ayrton04 assigned splatter96 and unassigned ayrton04 May 3, 2022
@SaiSugunSegu
Copy link

Hey ayrton04,

Can I try and replicate the issue, and make the recommended mapping "imu/data" to "imu" and test it
?

@ayrton04
Copy link
Collaborator

If you want to submit a PR, please do.

@SaiSugunSegu
Copy link

SaiSugunSegu commented Jun 26, 2023

As I see, there is no issue in the code.

Note: when using the Robot Localization Repository - any launch file - users need to remap the default topic name to their own topic name (based on sensor output)

@SaiSugunSegu
Copy link

I don't feel its a bug, we can close this issue.
@ayrton04 , please check and the close the issue, if you feel its a bug, please let me know, I want to work on it.

@joeldushouyu
Copy link
Contributor

joeldushouyu commented Jul 10, 2023

Could it caused by the error in here? @SaiSugunSegu
Error in dual_ekf_navsat_example

Because in the source file, the imuCallback() listen on /imu.

I found out about this issue when I was using ros2 doctor to analyze. Because I could not get any message published on /odometry/gps after launching nav_sat .

Or does this seem worthy to be a new issue to be discussed?

@SaiSugunSegu
Copy link

SaiSugunSegu commented Jul 11, 2023

Hey @joeldushouyu ,

I got it, I will change it to take it from the param file, rather hardcoded topic in Navsat Transform cpp.

I will look at other nodes as well to correct them. Thanks.

@joeldushouyu
Copy link
Contributor

Hey @joeldushouyu ,

I got it, I will change it to take it from the param file, rather hardcoded topic in Navsat Transform cpp.

I will look at other nodes as well to correct them. Thanks.

I think it will be better to just change how the topic got remapped in the example launch file. At least this is what I did.

@SaiSugunSegu
Copy link

yeah, I will do the same.

@joeldushouyu
Copy link
Contributor

@SaiSugunSegu
@splatter96
Do you guys still plan to submit a PR for this fix?
I can do it if none of you guys are available

@elgarbe
Copy link

elgarbe commented Dec 30, 2023

please, someone file a PR for it, I was having the same issue and after a couple of hour I found this issue.

@joeldushouyu
Copy link
Contributor

@elgarbe I have created a pending PR #857

@elgarbe
Copy link

elgarbe commented Dec 30, 2023

@elgarbe I have created a pending PR #857

Thank!!! Hope this will be merge soon

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

No branches or pull requests

5 participants