i3drobotics / i3dr_deimos-ros

ROS driver for the I3DR Deimos stereo camera
http://i3drobotics.com/deimos.html
2 stars 2 forks source link

GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig #5

Closed void-robotics closed 6 years ago

void-robotics commented 6 years ago

Hello,

I get the following error:

GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig
GetIMUValueBuffer failed
GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig
GetIMUValueBuffer failed
GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig
GetIMUValueBuffer failed
GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig
GetIMUValueBuffer failed
GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig
GetIMUValueBuffer failed
GetIMUValueBuffer: IMU Disabled, Enable using SetIMUConfig

How do I enable the IMU? I also could have a missing package but not sure which one.

Although I get:

$ rosdep install deimos
#All required rosdeps installed successfully
jveitchmichaelis commented 6 years ago

There are no external dependencies for the IMU. It's enabled by default during setup here. Control is done via the xunit library which should be built when you compile the node.

It's worth trying a different machine/port if possible (and the usual advice of turn it off and on again). It may be Linux being funny or a problem with your camera board. Occasionally we've seen boards refuse to respond to commands e.g. exposure control, but we've not been able to isolate the issue (both on Windows and Linux). They usually come back to life after a power cycle and possibly a machine reboot.

void-robotics commented 6 years ago

Power cycling, rebooting, or using a different port didn't work. It probably isn't a camera problem because it worked on Windows e-CAMView.

Any other ideas of how I can fix this?

jveitchmichaelis commented 6 years ago

Just a thought - have you installed the udev rule?

sudo cp 99-uvc.rules /etc/udev/rules.d/
sudo service udev restart
void-robotics commented 6 years ago

I agree; it's probably an issue with the hardware, as it throws a different error on Linux (see #6). I'll keep debugging the TX1

jveitchmichaelis commented 6 years ago

Apologies - I ninja edited there, do you have the udev rules installed?

void-robotics commented 6 years ago

I ran those 2 commands; but same error

void-robotics commented 6 years ago

actually after I did a clean build, it worked! not sure if it was the rules or the clean build but the camera is working now

jveitchmichaelis commented 6 years ago

Excellent, closing!

void-robotics commented 6 years ago

I suggest documenting this somewhere, likely the README Installation