Skip to content
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

Crash on Raspberry Pi #67

Closed
Piroro-hs opened this issue Aug 17, 2018 · 2 comments
Closed

Crash on Raspberry Pi #67

Piroro-hs opened this issue Aug 17, 2018 · 2 comments

Comments

@Piroro-hs
Copy link

Piroro-hs commented Aug 17, 2018

Hello.

I cloned this repo, and catkin_maked on both my PC and Raspberry Pi 3. The rplidarNode is running well on my PC (Ubuntu 16.04 x64, ROS Kinetic), but always crash on Raspberry Pi 3(Ubuntu MATE 16.04, ROS Kinetic). Below is a error message.

process[rplidarNode-1]: started with pid [1566]
[ INFO] [1534499013.847457964]: RPLIDAR running on ROS package rplidar_ros. SDK Version:1.7.0
RPLIDAR S/N: 97DD9AF2C1EA9FC0A2EB92F1040E3C02
[ INFO] [1534499014.366249529]: Firmware Ver: 1.24
[ INFO] [1534499014.366457706]: Hardware Rev: 6
[ INFO] [1534499014.368799211]: RPLidar health status : 0
[ INFO] [1534499015.067182568]: current scan mode: Sensitivity, max_distance: 25.0 m, Point number: 15.9K , angle_compensate: 4
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
[rplidarNode-1] process has died [pid 1566, exit code -6, cmd /home/pi/catkin_ws/devel/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/home/pi/.ros/log/6f73eaa0-a1c9-11e8-8585-7085c2230810/rplidarNode-1.log].
log file: /home/pi/.ros/log/6f73eaa0-a1c9-11e8-8585-7085c2230810/rplidarNode-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Also it sometimes throws std::length_error, instead of std::bad_alloc.

Thank you.

@Piroro-hs
Copy link
Author

Related? Slamtec/rplidar_ros#1

@kintzhao
Copy link
Collaborator

https://github.com/robopeak/rplidar_ros/blob/master/src/node.cpp#L270 you can try to change the code by an const angle_compensate_multiple ;
//angle_compensate_multiple = (int)(1000*1000/current_scan_mode.us_per_sample/10.0/360.0);
angle_compensate_multiple = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants