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

Node doesn't start due to invalid time? #26

Open
jncfa opened this issue Mar 10, 2021 · 1 comment
Open

Node doesn't start due to invalid time? #26

jncfa opened this issue Mar 10, 2021 · 1 comment

Comments

@jncfa
Copy link

jncfa commented Mar 10, 2021

Hi,

I'm trying to use your package for a SLAM project, but I'm running into a weird issue when launching the localization node.
The drl_localization_node starts up but remains stuck in a loop, posting the message "Waiting for valid time...", which corresponds to this loop:

Screenshot from 2021-03-10 23-24-45

Have you ever run into this problem before? If so, could you be so kind as to provide some information in order to solve it?

Thanks!

@carlosmccosta
Copy link
Owner

Hello,

That happens when drl is waiting for valid time or waiting for a valid map / reference point cloud.
The reason for that part of the code was to allow the loading of the map / occupancy grid (in the message handler) while a rosbag is paused (and that way, allowing drl to be ready to process the sensor data when you start playing the rosbag).

If you did not set the parameter use_sim_time to true and do not have a rosbag paused, then drl is waiting for a valid map in the configured topics.
http://wiki.ros.org/Clock

You can provide the map in a .ply file:

Or from an OccupancyGrid / PointCloud2 ros message:

For publishing a OccupancyGrid you can use map_server:
http://wiki.ros.org/map_server

For publishing PointCloud2 you can use point_cloud_io:
https://github.com/carlosmccosta/point_cloud_io#read

For avoiding confusion, I made the message clearer with the last commit:
72b1ba3

Have a nice day,

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

2 participants