I’m not a ROS2 expert at all, but I know rosbag2 had serious problems losing lots of data. There should be a solution released soon, but it will require that you uninstall rosbag2 package and install rosbag2-future instead. Read more here: Fast Forward Merging rosbag2 master API to Foxy .
Apart from that, the classical approach would be: get rid of Docker for the debugging purposes. Does the issue happen without docker? Also, be sure to use Foxy or Rolling ROS2 distros.
I think you need to look at proper QOS configuration for publishers/subscribers. At least make sure that Reliability = reliable and Durability=transient local.
Please refer to the following links for more info:
@dmeglan my team offers deep expertise in ROS2 over Docker networks. We’ve just wrapped up a large EU project where we scale tested ROS2/DDS over docker networks across multiple datacenters across the Atlantic. Happy to understand your requirements. Drop me a message if you’re still looking for someone to help you out.
Some options already posted. Let’s pitch in because we would be happy to help:
Nobleo Technology is an engineering company specialized in development of Autonomous Intelligent Systems.
We have done multiple projects related to ROS2 (for example developed the ROS2 static executor presented at ROSCon 2019). One of our departments is specialized in low level software and software performance optimization for real-time behavior.
Feel free to send me a PB if you have more questions. We are curious what your challenges are and how we can help.