ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

camera1394 compile error on ubuntu 11.04 on ARM

asked 2011-08-19 07:11:04 -0500

Joris gravatar image

updated 2014-01-28 17:10:15 -0500

ngrennan gravatar image

Hello all,

I've spent a week unsuccessfully trying to get a Point Grey (PTGrey) Chameleon USB Camera (IEEE 1394 compatible, camera1394 node compatible) up and running on my Pandaboard (OMAP4430) single board computer as a ROS node. The camera tests out fine on that system using Coriander.

I have successfully installed ROS Diamondback from SVN using

rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=desktop-full&overlay=no"

The beginner tutorials work fine. The whole is running on Ubuntu 11.04. The LANG variable is set to

en_US.UTF-8

I then checked out

https://code.ros.org/svn/ros-pkg/stac...

into a path in ROS_PACKAGE_PATH and changed to the resulting directory before executing

rosmake --rosdep-install

This resulted in the error:

* ERROR: Unsupported architecture armv7l *

whilst building this package in the camera_drivers stack:

prosilica_gige_sdk

Since I didn't need this package, but the camera1394 package, I decided to force-ignore the error with:

rosmake --rosdep-install -r

However, the camera1394 package fails too:

make[3]: Entering directory /home/joris/ros/stacks/camera_drivers/camera1394/build' [ 15%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/camera1394_node.o In file included from /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/driver1394.h:42:0, from /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/camera1394_node.cpp:38: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h: In static member function ‘static const std::string& driver_base::Driver::getStateName(driver_base::Driver::state_t)’: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h:238:14: warning: comparison is always true due to limited range of data type [ 23%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/driver1394.o In file included from /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/driver1394.h:42:0, from /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/driver1394.cpp:42: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h: In static member function ‘static const std::string& driver_base::Driver::getStateName(driver_base::Driver::state_t)’: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h:238:14: warning: comparison is always true due to limited range of data type [ 30%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/dev_camera1394.o /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/dev_camera1394.cpp: In funct from /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/driver 1394.cpp:42: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h: In static membe r function ‘static const std::string& driver_base::Driver::getStateName(driver_base::Driv er::state_t)’: /home/joris/ros/driver_common/driver_base/include/driver_base/driver.h:238:14: warning: comparison is always true due to limited range of data type [ 30%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/dev_camera1394.o /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/dev_camera1394.cpp: In funct ion ‘std::string bayer_string(dc1394color_filter_t, unsigned int)’: /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/dev_camera1394.cpp:398:18: error: ‘BAYER_RGGB16’ is not a member of ‘sensor_msgs::image_encodings’ /home/joris/ros/stacks/camera_drivers/camera1394/src/nodes/dev_camera1394.cpp:400:18: error: ‘BAYER_GBRG16’ is not a member of ‘sensor_msgs ...

(more)
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2011-08-19 16:50:47 -0500

Eric Perko gravatar image

You seem to have a mismatch in your version of camera_drivers vs. ROS. You installed Diamondback, but you checked out trunk of camera_drivers. The trunk of most stacks is developed against the latest ROS distro (or the upcoming one) which is currently Electric Emys.

Try checking out camera_drivers from the Diamondback tag: https://code.ros.org/svn/ros-pkg/stacks/camera_drivers/tags/diamondback/ and building.

Also note that, if you just want camera1394, you can do rosmake --rosdep-install camera1394 instead of rosmaking all of camera_drivers while force ignoring errors. That should build camera1394 and all of the packages it depends on either directly or indirectly.

edit flag offensive delete link more
0

answered 2011-08-19 22:26:49 -0500

Joris gravatar image

That solved it. I chose the following:

https://code.ros.org/svn/ros-pkg/stacks/camera_drivers/tags/diamondback/

And it compiled with only a few warnings.

What throws me is that the wiki page for the camera_drivers stack has a tab for choosing the ROS distribution. The SVN path I chose was given under the diamondback tab. Anyway, thanks a million Eric!

Joris

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-08-19 07:11:04 -0500

Seen: 597 times

Last updated: Aug 19 '11