getting various error (exit code -11, -6, bad_alloc) trying to use RPLIDAR code

asked 2019-03-24 18:07:43 -0500

bobyhey123 gravatar image

so i'm working on a group project that involves a LIDAR. we've been using ROS/RPLIDAR with a laptop until recently, we are currently trying to switch everything over to an ODROID XU4.

We updated the ODROID to Mate 16.04 but keep getting error messages when running "roslaunch rplidar_ros rplidar_a3.launch" and can't seem to figure out the issue. We didn't get any of these messages with the laptop.

The error codes we've been getting switch between one or a combination of exit code -6, exit code -11, and std::bad_alloc.

We are undergrads and not super experienced so we are having some troubles with this issue. Any help would be appreciated. Thank you.

some info about our ros setup: dis: kinetic version: 1.12.14 baudrate: 256000 serial_port: dev/ttyUSB0

edit retag flag offensive close merge delete

Comments

Your laptop is most likely an x86/amd64 based system. An Odroid is an ARM based one. Those are different architectures, and they have different requirements and constraints wrt accessing memory and other system-related tasks.

It could be a red herring (as I'd expect rplidar_ros being used on ARM system quite often), but perhaps the node is doing something fishy that ARM isn't liking. Exit code -11 is SEGFAULT, which typically points to memory access violations (reading arrays out-of-bounds, etc).

std::bad_alloc

if you're getting these, then that would point to memory allocation problems. Are you running out of memory?

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 04:12:42 -0500 )edit