Slam Map Builder and rosbags
1 次查看(过去 30 天)
显示 更早的评论
Hello to all, I have been trying to simulate Lidar SLAM using the Automated Driving Toolbox with Unreal implementation. So, I am creating ros2bags which I then convert to ros1bags .bag files to use in Matlab's SLAM.(for reference, Simulink provides pointcloud2 which I convert with a node to laserscan msgs)
My problem is with the Odom Topic. I have tried having in my .bag file, an /odom topic with nav_msgs/Odometry and then geometry_msgs/PoseStamped and in both cases SLAM finds my Lidar topic but I get N/A in my Odomo Topic.
Since the documentation for implementing Matlab with ROS in general is lacking a bit, can somebody provide the message types needed or topic names needed for Odom in this case?
0 个评论
采纳的回答
Akshai Manchana
2024-3-11
Hi Angelos,
We only support the following two message types to represent the odometry data 'tf/tfMessage', 'tf2_msgs/TFMessage'. To learn more about these message types look at the example. These messages store 'geometry_msgs/PoseStamped' within it.
0 个评论
更多回答(1 个)
Pratyush Swain
2023-9-8
Hey Angelos,
I understand that you are facing issues subscribing to values through the '/odom' topic. To troubleshoot this problem, you can follow these steps:
1. Please verify the topic source and type by using the following commands in command window.
rostopic echo /odom % returns the data going through the topic
rostopic info /odom % returns information regarding message type,publisher,subscriber
2. Please check the structure of 'nav_msgs/Odometry' or 'geometry_msgs/PoseStamped' messages being published on the '/odom' topic. For example - the 'geometry_msgs/PoseStamped' message type includes the position and orientation values separately.
Hope this helps.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!