I found that I can avoid the error by the following combinations.
MicroXRCEAgent build env
MicroXRCEAgent run env
With sourcing setup.bash
With sourcing setup.bash
Without sourcing setup.bash
Without sourcing setup.bash
Without sourcing setup.bash
With sourcing setup.bash and run with adding LD_PRELOAD="/usr/local/lib/libfastrtps.so.1 as prefix of command. Ex: LD_PRELOAD="/usr/local/lib/libfastrtps.so.1" MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200
I think it's better that the dependencies of ros2 and MicroXRCEAgent are same.
So how about to add a command to source setup.bash of ros2 before making MicroXRCEAgent.
Thank you for sharing a useful project.
I failed to run Micro-XRCE-DDS Agent with ros2arduino because causing the following error.
I found difference that dependency of library changes by running setup.bash of ROS2(by referencing https://qiita.com/nomumu/items/db01bc9e39bf1fb116d5 ).
Before run setup.bash.
After run setup.bash.
I found that I can avoid the error by the following combinations.
LD_PRELOAD="/usr/local/lib/libfastrtps.so.1
as prefix of command. Ex:LD_PRELOAD="/usr/local/lib/libfastrtps.so.1" MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200
I think it's better that the dependencies of ros2 and MicroXRCEAgent are same. So how about to add a command to source setup.bash of ros2 before making MicroXRCEAgent.
Thank you.