robo-friends/m-explore-ros2

Fixed Frame : No tf data.

Closed this issue · 5 comments

CCCCe commented

I can run the procedure successfully and see the result in .rviz film. But I can't observe the process of merging. In rviz2, robot1/map and robot2/map can be seen . When I open tf view, it only one word : no tf data

Are you using the provided map_merge/launch/map_merge.rviz ?

CCCCe commented

Are you using the provided map_merge/launch/map_merge.rviz ?

I mean, in ROS, we can use web to subscribe the topic /map to get information about result of map. and it is suitable for ROS2 with foxy-rosbridge?

I don't see why it shouldn't be suitable for rosbridge if you are able to see it in rviz2. I still don't get what is not working for you. Can you please add more details? What steps did you follow and what is not working?

CCCCe commented

I don't see why it shouldn't be suitable for rosbridge if you are able to see it in rviz2. I still don't get what is not working for you. Can you please add more details? What steps did you follow and what is not working?

Well,I will list the steps I did:
1.followed Readme, I can see the the procession of map_merging in order rviz -d workspace/src/m-explore-ros2/map_merge/launch/map_merge.rviz.
2.I tried to see the result in another window opening with rviz2, and then, I found it reported : no data received
3. this is my a thinking. I try to use web to receive map like ROS1 using rosbridge, but it didn't show the map like ROS1.

If the 1. step is working but 2. is not then it is likely to be a problem from your setup in that rviz.
Remember that the merged map is published in the world_frame frame which is a parameter of this package and by default it is "world". To be able to see that topic you need to set in rviz the global frame to world
Screenshot from 2022-07-04 19-18-59

Closing this since it is not a problem from this package