Open BrennanDrake opened 1 year ago
@BrennanDrake
Sorry about the delayed response on your inquiries.
I'm not quite sure what causes the segmentation fault when connecting the Arduino board to your Raspberry Pi.
Have you correctly configured serial ports in the turtlebot3
package such as turtlebot3_core.launch
, turtlebot3_lidar.launch
?
The default turtlebot3 package setting assigns ttyACM0 to the OpenCR and ttyUSB0 to the LDS-02.
@ROBOTIS-Will
Thanks for the reply! Yes I made sure that the correct serial ports are set in the launch files (In this case OpenCr being on ACM1, lds on USB0, and my arduino being on ACM0) For example when the arduino is plugged in, it forces the opencr to be ACM1 instead of ACM0. If I unplug the arduino but don't reboot the entire system (so the opencr stays on ACM1 which is also what the port is set as in those launch files) the lds drivers load and execute with no issues at all.
I have also purchased a new arduino to see if it's a hardware issue. Looking at udev attributes using :
udevadm info --attribute-walk --name=device_name (where device_name is equal to the correct port)
I noticed that my arduino does not have a product attribute ( "ATTRS{product}" ) while the opencr board and the lds do. I have also seen that others arduinos I have seen online do. I will update with my findings.
-Brennan
ISSUE TEMPLATE ver. 0.4.0
Which TurtleBot3 platform do you use?
Which ROS is working with TurtleBot3?
Which SBC(Single Board Computer) is working on TurtleBot3?
Which OS you installed on SBC?
Which OS you installed on Remote PC? -Linux Mint 20
Specify the software and firmware version(Can be found from Bringup messages)
Specify the commands or instructions to reproduce the issue.
-Plug arduino into pi usb port while powered externally -roslaunch ld08_driver ld08.launch
-I initially saw this issue when running roslaunch turtlebot3_bringup turtlebot3_robot.launch regardless of if I included my rfid publishing script so to simplify I am justing launching the ld08 driver which is causing the issue.
` SUMMARY PARAMETERS /rosdistro: noetic /rosversion: 1.15.15 /turtlebot3_lds/frame_id: laser /turtlebot3_lds/port: /dev/ttyLIDAR
-The data being sent is either 00:0:0000000000 or the id of the specific rfid tag and this is sent to the pi via a simple Serial.println function on the arduino. This functionality is fine and I can visualize and use this data but cannot run the LDS-2 drivers at the same time.Any insight would be appreciated! -As of now the lidar is is dev/ttyUSB0, the opencr is in dev/ttyACM1 and my arduino is in dev/ttyACM0
-I have included the launch as well as the backtrace
**In debugging I think it has something to do with udev enumerating the list of serial devices but do not have enough experience here to figure out how to fix it.
**I have posted in the ld08 drivers github issues area, posted in the ros answers forum, and have emailed ROBOTIS but have had no luck. Thank You!