ros-naoqi / naoqi_driver

c++ bridge based on libqi
Apache License 2.0
52 stars 93 forks source link

Bus Error on Raspberry Pi 2 #33

Open zazics opened 9 years ago

zazics commented 9 years ago

Hello,

I've built "naoqi_driver" on a Raspberry Pi 2 using "catkin_make_isolated". Except this warning "extended initializer lists only available with std=c++0x or -std=gnu++0x", everything built correctly. But, when I run: "rosrun naoqi_driver naoqi_driver_node --qi-url=x.x.x.x wlan0" I get a "Bus error" message and process stops.

I have no problem using libqi in another C++ program to control Nao from my Raspberry Pi.

Karsten1987 commented 9 years ago

please verify that you start the bridge correctly and that you are on the latest version. You can find the instructions on how to start your node here: http://ros-naoqi.github.io/naoqi_driver/start.html#start-the-naoqi-driver-module

zazics commented 9 years ago

Yes, I downloaded the latest version a few days ago. I followed that documentation. If I undertand it well, I only have to start "roscore" and "rosrun naoqi_driver ....". Am I right ? Maybe my problem is due to ARM architecture of Raspberry ?

vrabaud commented 9 years ago

You get a memory corruption right ? (please write your error message again). We've never tested that bridge or libqi with raspberry pi so that could indeed be a problem. @Karsten1987 , maybe you can show him how to disable certain modules so that we narrow down the corruption.

zazics commented 9 years ago

my error message is just "Bus error". Nothing more, nothing less. This error occurs immediately after the bridge has started. "Libqi" seems to work well on a Raspberry Pi 2. I can send order (move, speech, joint) to Nao, read memory and react to events. I found this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=102400 It talks about some hard float point / memory alignment problem. I will try to investigate more as soon as possible.