-
Notifications
You must be signed in to change notification settings - Fork 3
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
Could not get pose information from robot for time #1
Comments
robot_pose_with_covariance_topic: directly take a [nav_msgs/Odometry] msg topic not a [geometry_msgs/PoseWithCovarianceStamped.msg] like in ROS1. |
Yes,
Yes you are right, i also experienced this issue but i forgot to add this in Readme, thanks for sharing this i will also update the Readme to point this issue. |
Do you know why the map is continuously reset after some time ? There is no aggregation during time; Is there a parameter I am not setting well ? |
Do you mean the elevation values becomes 0 ? I did not experience this, however ensure that you are consistently getting the sensor data. Make sure that continuous cleanup is set to False. i am not sure at the moment the exact issue you are facing maybe if you provide more details, i can help. |
The values becomes nan, the map is erased even when continuous and visibility cleanup are set to false. In fact I realized that the aggregated map is published after post-processing. |
Hello guys, since I am experiencing the same original problem about not gettin the pose properly from the robot I will explain my problem here, maybe I discovered another issue. Also, thank you @Muhammad540 for the porting, it is really helpful. Anyway, I am trying to integrate the elevation_map package inside a Nav2 stack for a custom robot.
Everything works well, I am even starting the elevation_mapping node (attached the gdb traceback): However, the problem is that I can't see the elevation map in rviz, mostly because if I do an echo on the /elevation_map topic, it has always all nan values. What i did up to now:
and my complete list of topics is the following:
while the rqt_graph and the tf tree of my robot are the following: I tried several combinations of configuration parameters in terms of frames and whatever. Also, I am not using in my current configuration the robot_pose_with_covariance_topic but I tried launch the node with /odom, /robot_diff_drive/odom (which are both nav_msgs/msg/Odometry type) and /amcl_pose (which is geometry_msgs/PoseWithCovarianceStamped type). My guess:
My final guesses are the following:
I tried to be the more detailed possible. Your help or even some suggestions are highly appreciated. |
I apologize for a late response, i was also experiencing this "nan" issue and for me it was due to very high sensor noise variance, for some reason. The pose topic in "nav_msgs/Odometry" is necessary for the computation of the elevation map because if you go through the paper published by anybotics they use this to compute the uncertainty in the elevation map, i would suggest ensuring that you provide the correct pose info. Also inside the "add" method in elevation_map.cpp file , observe your variance values while running the elevation map, any irregularities in those can infact lead to "nan" values in downstream calculations. |
@Muhammad540 dont worry, actually thank you for the answer. I am double checking the code and the node configuration again. From my findings it seems that athough the pointcloudcallback is correctly registered, it is never triggered. According to what you were saying:
do you think that variance can be also a cause for not triggering the callback? i don't think so, but it is just to double-check if I am wrong or not. |
As I said, in my case I can visualize the map on the "/elevation_map_raw_post" topic not in "/elevation_map". In this second one, the map of course is erased and values become NaN. |
Yeah after these modifications I think I am aligned also with you @Charifou. I can see the raw costmap and I get your same error Steps performed:
|
Hi Muhammad and thanks for porting the package to ROS2. it will be very useful.
I have tried to use it with a husky robot simulated in gazebo but I get this well known error:
[elevation_mapping]: Could not get pose information from robot for time 4.898000. Buffer empty?
I use as config files : "robots/husky.yaml", "elevation_maps/long_range.yaml", "sensor_processors/perfect.yaml", "postprocessing/postprocessor_pipeline.yaml"
husky.yaml is in the same format as ground_truth.yaml with "use_sim_time: true" in addition.
I have the same issue with a bag file. Do have any idea about where that might come from ? Thanks !
The text was updated successfully, but these errors were encountered: