Waffle demo not working correctly
Hello, im currently working on using the elevation_mapping package with T265 and D435 for my quadruped robot on a Jetson Nano running 18.04 and ROS Melodic. Because it is a Jetson nano im forced on using ROS Melodic, I Know that exists a 20.04 version but its not official supported and i prefer use melodic since its more stable anyways because im using melodic and the elevation_mapping uses Newer versions of PCL which 18.04 doesnt work, after a lot of tries of build and error i solved some problems like:
- https://github.com/ANYbotics/elevation_mapping/issues/151 (because of using version 1.8.1 of PCL i did change PCL_MAKE_ALIGNED_OPERATOR_NEW for EIGEN_MAKE_ALIGNED_OPERATOR_NEW on the file.
- https://github.com/PointCloudLibrary/pcl/pull/4266
- Also Jetson did have a error with internal compiler (program cc1plus) which resulted on low memory: using catkin_make -j2 -DCMAKE_BUILD_TYPE=Release did it solve
- Also i did https://github.com/ANYbotics/grid_map/issues/292
Ok, so after all this, the build was fine, running the grid map examples work perfectly, when running the rostest elevation_mapping elevation_mapping.test -t i get some errors:
So i tried to run the Turtlebot Waffle demo and thats the output that i get:
Then Rviz launches:
And that's the output:
You can see that the map isn't creating
I also have this problem,can anyone help?
Hi, @fus3 ,I have encountered the same problem.Have you solved the above problem?
Hey @fus3 you don't see the elevation map because the pose publisher is crashing for you. This might be related to the turtlebot demo, which we cannot maintain here. Maybe you can ask the maintainers of the package.
I have encountered the same problem. Have you solved the problem?
Is the waffle demo outputting a pose in your environment?
yes,it is the waffle demo. I have not do any changes.
There is no elevation map in the rviz when I run the waffle demo. The terminal show that "Could not get pose information from robot for time 421.037000. Buffer empty?"

Hey, I couldn't reproduce it on noetic:

Are you using melodic?
Can you try the melodic-devel branch? We just merged a fix.
I fixed the problem, the topic type of odometry published by waffle robot is differerent from the type in the code. I changed the code so that it can match the topic of odometry published by waffle robot. My ubuntu is 18.04.
Hey @huangyoupingben, could you make a fixing MR for the melodic-devel branch? I think the community would appreciate it quite a bit.
@huangyoupingben Can you tell me how to modify it, thank you so much!!!
@wxk514 ,focus on the type of " robotPoseCache_" in ElevationMapping.hpp. You can use some tools ,for example rqt, to show the topic of odometry of waffle robot, and check the type of Odometry. In my case, they were different. I changed the type of "robotPoseCache_" so that it can match the topic of odometry published by waffle robot, moreover, I changed some code related to "robotPoseCache_" in the function of ElevationMapping::pointCloudCallback which is in the ElevationMapping.cpp. you can have a try, good luck.
Dear @maximilianwulf ,I have a question about your paper The probabilistic Terrain Mapping for Mobile Robots with uncertain localiztion. My question is that the map frame in your paper is different from the one in the source code of elevaton_mapping. In your paper, the definition of the M frame is aligned with the z axis of the I frame, yaw(I,M)=yaw(I,B). So, the map frame moves as the moving of robots relative to the fixed world frame. However, in the source code , it is found that the elevation map is based on a fixed world coordinate frame (fixed odometer coordinate frame) , and the map frame will not change with the moving of the robot. When running elevation_map code, It is observed that the length and width of the output elevation map is always parallel to the fixed world coordinate frame. In summary, the map frame in your paper is different from the one in the source code of elevaton_mapping. look forward to your reply.
@huangyoupingben Can you tell me how to modify it, thank you so much!!!
If your are using Ubuntu 18.04, you can try to modify the code in
tf_to_pose_publisher.py line 1
in the first line, the python3 should be python2.7, because the default rospy in Ubuntu18.04 is python2.7, in Ubuntu20.04 is python3. Maybe it will help.
In case you found a neat fix, could you update the melodic-devel branch?
In summary, the map frame in your paper is different from the one in the source code of elevaton_mapping. look forward to your reply.
You are free to choose the frame of reference depending on your needs. Do you have an issue?
Same problem. Have anyone fixed this bug?