ROBOTIS-GIT / ros2arduino

This library helps the Arduino board communicate with the ROS2 using XRCE-DDS.
Apache License 2.0
219 stars 43 forks source link

Segmentation fault #14

Closed nnn112358 closed 5 years ago

nnn112358 commented 5 years ago

I think ros2arduino is a wonderful project. I thought trying it, but I will not move so I want you to follow me.

〇enviroment Ubuntu :16.04 x64 ROS2 :Crystal Clemmys Micro-XRCE-DDS Agent :git checkout a495c65faa964ddc068ac6e1249f17f5c9f92787 Hardware:M5Stack(ESP32)

〇Symptom Ubuntu:$ MicroXRCEAgent serial /dev/ttyUSB0 115200 and Arduino:Serial publisher start [File] - [Examples] - [ros2arduino] - Serial - [publisher]

An error occurs  $ MicroXRCEAgent serial /dev/ttyUSB0 115200 Serial agent initialization... OK Enter 'q' for exit RTPS Participant matched 1.f.a.6e.e.61.0.0.0.0.0.0|0.0.1.c1 Segmentation fault

OpusK commented 5 years ago

Hi, @nnn112358,

Did you install ROS2 by binary package? Or did you install with source build?

nnn112358 commented 5 years ago

I use a Building ROS 2 on Linux. https://index.ros.org/doc/ros2/Installation/Linux-Development-Setup/

By the way, when I used the latest version of Micro-XRCE-DDS-Agent, I solved it.

$ git clone --recursive https://github.com/eProsima/Micro-XRCE-DDS-Agent/ 
$ mkdir build && cd build
$ cmake -DTHIRDPARTY=ON -DCONFIG_UDP_TRANSPORT_MTU=4096 -DCONFIG_SERIAL_TRANSPORT_MTU=4096 ..
$ sudo make install
$ sudo ldconfig /usr/local/lib/
OpusK commented 5 years ago

I'll check this again and update the document.

Thank you for your feedback :)