Closed mhl787156 closed 2 years ago
Ok using the following test setup:
ros2 topic pub /test_topic geometry_msgs/msg/Point {}
I have identified that if the third terminal is not running, the data is successfullly plotted in foxglove
If docker-compose.simple.yml (running gazebo, sitl and mavros) is run, the data from the manual publishing immediately stops plotting.
Furthermore if I isolate the containers being started, the data stays plotting if either sitl or mavros or started.
However if the gazebo container is started the plotting immediately stops (but everything else continues). So something in uobflightlabstarling/starling-sim-iris:latest
is causing the plotting to stop.
Okay, further investigation appears to show that gazebo uses its own times format compared to the rest of ROS. When gazebo is started, it starts its own /clock
using rosgraph_msgs/msg/Clock
. This appears to reset all time in the simulation and break how foxglove shows plotting data for everything else.
Unfortunately not entirely sure how to fix, but have updated the issue with the Foxglove guys so we shall see what they say https://github.com/foxglove/studio/issues/2697
Okay further further investigation seems that this should be solvable through remapping /clock
into something else, and then remapping it back for mavros on the ros1 side so it doesnt pollute the ros2 list of topics. This may be more annoying when we move to ROS2 but we will cross that line then.
There may also be an issue in using mavros on a live drone and whether the mavros remap will effect things.
Hopefully by then foxglove will have something in place for setting default clocks so we can get rid of the gazebo remap.
I feel like these are potentially related: https://github.com/foxglove/studio/pull/1293 https://github.com/foxglove/studio/pull/2322
Previous none version of rosbridge suite is v0.1.0. There is problem with the latest version referred to in #146 .
This issue looks at v0.1.0 and tries to identify why foxglove is not plotting any data, but succeeeds at showin data.
An issue has been raised https://github.com/foxglove/studio/issues/2697 but it looks like it might be something from ourside.