-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use SHM in mico-ROS (Using docker) #206
Comments
Cyclone DDS is not compatible with micro-ROS. Please recheck with Fast DDS. |
Thanks for the answer. I now tried Fast DDS. With the Agent running, the communication works (but using the Agent). If I launch the nodes without the Agent, the nodes abort after a short time.
In line 66 of my code is this: and i use the default allocator:
All nodes are sourced and run on rmw_microxrcedds:
Any idea why is does not work ? |
i did not change the code of my nodes for the use of SHM. Do i have to do that ?
|
The micro-ROS client needs an agent to init the session, the SHM mechanism is a way of communicating entities inside an up-and-running XRCE session (that needs an agent to be valid). |
Issue template
Steps to reproduce the issue
Hey, i have created a publisher and subscriber chain with micro-ROS nodes in a docker container , to analyze latencies. It works fine when i use the Agent. Now i want to use SHM. Therefore, i added
"-DUCLIENT_PROFILE_SHARED_MEMORY=ON"
to my colcon.meta. Do i still have to build the agent and the other steps like:I am not using a microcontroller, does this still work.? I want to see how big the latency is with and without the Agent. I am using Cyclone DDS, is this maybe the problem?
All nodes are in the same container.
Are there any modifications I forgot to do ?
Expected behavior
Actual behavior
Additional information
The text was updated successfully, but these errors were encountered: