Open yashmewada9618 opened 4 months ago
@yashmewada9618 out of curiosity.
i.e (Publish in unicast mode and only to the localhost and not any other connected PC, increase the incoming buffer size).
for localhost, ROS 2 provides ROS_LOCALHOST_ONLY environment variable to isolate the communication in the localhost. this is much easier and agnostic from rmw implementation.
besides that, why did you disable data sharing and shared memory transport? i think those are meant to be used for localhost low latency high throughput communication.
CC: @MiguelCompany @EduPonz
@fujitatomoya I tried using the ROS_LOCALHOST_ONLY
but it didn't work in my case, a more detailed problem can be found here. Regarding data sharing and shared memory transport, I was looking into the config on how fastrtps performs with my sensor suite, and no specific reason for it.
I tried using the ROS_LOCALHOST_ONLY but it didn't work in my case, a more detailed problem can be found https://github.com/ouster-lidar/ouster-ros/issues/278.
if it does not work only in localhost, that is the problem...
https://github.com/ouster-lidar/ouster-ros/issues/278 does not say any details either, just said didn't work in our case
.
are you saying even with ROS_LOCALHOST_ONLY
is enabled, endpoints can communicate each other beyond the network?
Description
How to write Fast RTPS XML profile to publish in unicast mode with modified socket buffer sizes similar to the provided cycloneDDS profile.
Cyclone DDS
My not working Fast RTPS profile
Details
I have an Ouster OS1-32U 3D lidar and an Intel Realsense and they both combined make up to 35 publishers including the depth clouds from both the sensors and their respective IMU data. The incoming data is as I require viz IMU at 200Hz, OS cloud at 20, and Realsense Cloud at 30Hz. But when I start recording the bag file and play the recorded bag file my messages are not as per the frame rates I mentioned above and they are significantly less (almost 0 for a few seconds).
Previously I was using Cyclone DDS which I think is bottlenecking the data transport hence I want to shift to FastRTPS, but it seems I am unable to reproduce the same profile manner here i.e (Publish in unicast mode and only to the localhost and not any other connected PC, increase the incoming buffer size).
Steps to reproduce issue
Launch the Ouster lidar and realsense camera nodes, then launch the rosbag record node. Launch file
Expected behavior
Actual behavior
Thanks.