Ask Your Question

jrieffel's profile - activity

2014-01-28 17:22:16 -0600 marked best answer error compiling usb_cam on a mac?

After applying the patch to deal with boost on the mac got be past the pluginlib portion of the usb_cam compile. However now I'm getting these following errors when making usb_cam on a mac. Any advice?

[ rosmake ] Last 40 linesb_cam: 4.4 sec ] [ 1 Active 33/34 Complete ] {------------------------------------------------------------------------------- /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:603: error: aggregate 'v4l2_buffer buf' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:611: error: 'VIDIOC_QUERYBUF' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'void init_userp(unsigned int)': 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:624: error: aggregate 'v4l2_requestbuffers req' has incomplete type and cannot be defined 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:633: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:634: error: 'V4L2_MEMORY_USERPTR' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:636: error: 'VIDIOC_REQBUFS' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:655: error: 'memalign' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'void init_device(int, int)': 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:666: error: aggregate 'v4l2_capability cap' has incomplete type and cannot be defined 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:667: error: aggregate 'v4l2_cropcap cropcap' has incomplete type and cannot be defined 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:668: error: aggregate 'v4l2_crop crop' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:669: error: aggregate 'v4l2_format fmt' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:672: error: 'VIDIOC_QUERYCAP' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:681: error: 'V4L2_CAP_VIDEO_CAPTURE' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:688: error: 'V4L2_CAP_READWRITE' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:697: error: 'V4L2_CAP_STREAMING' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:709: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:711: error: 'VIDIOC_CROPCAP' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:715: error: 'VIDIOC_S_CROP' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:741: error: 'V4L2_FIELD_INTERLACED' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:744: error: 'VIDIOC_S_FMT' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'usb_cam_camera_image_t* usb_cam_camera_start(const char, usb_cam_io_method, usb_cam_pixel_format, int, int)': 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:814: error: 'V4L2_PIX_FMT_YUYV' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:816: error: 'V4L2_PIX_FMT_UYVY' was not declared in this scope 
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:818: error: 'V4L2_PIX_FMT_MJPEG' was not ...
(more)
2014-01-28 17:22:08 -0600 marked best answer Help troubleshooting foreign relay

I believe I'm sending topic data over a foreign relay, but nothing comes out on the foreign machine

On machine1:

rostopic pub -r 10 /foo /std_msgs/String hello

rosrun foreign_relay foreign_relay adv http://machine2:11311 /machine1/foo /foo

rostopic echo /foo shows a parade of hellos, as you'd expect

on machine 2:

rostopic list shows /machine1/foo

rostopic info /machine1/foo shows * /foo_foreign_relay_0_adv_1306438093482799609 ( http://machine1:54200/ )

but rostopic echo /machine1/foo is empty

roswtf on machine2 reports:

ERROR Could not contact the following nodes: * /foo_foreign_relay_0_adv_1306439078454201491

ERROR The following nodes should be connected but aren't: * /foo_foreign_relay_0_adv_1306439078454201491->/rostopic_16013_1306439118679 (/machine1/foo)

suggestions on debugging?

thanks.

2014-01-28 17:22:08 -0600 marked best answer ROS topic communication between robots?

If I understand how ROS topics work, then communication between two robots running ROS via topics should be relatively straightforward. Am I correct, and if so can you point me to a helpful resource on the matter?

2014-01-28 17:22:00 -0600 marked best answer error compiling pluginlib on a mac?

attempting to install either gscam or usb_cam results in errors involving boost:

Any advice?

bash-3.2$ rosmake gscam

(after some success...:)

[ rosmake ] All 24 linesluginlib: 3.0 sec ] [ roscpp: 0.7 sec ]
[ 2 Active 19/33 Complete ] {------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake ..
[rosbuild] Building package pluginlib [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake -- Configuring done -- Generating done CMake Warning: The variable, 'CMAKE_TOOLCHAIN_FILE', specified manually, was not used during the generation. -- Build files have been written to: /Users/rieffelj/ros/common/pluginlib/build cd build && make -l8 [ 0%] Built target rospack_genmsg_libexe [ 0%] Built target rosbuild_precompile [ 3%] Building CXX object CMakeFiles/boost_fs_wrapper.dir/src/boost_fs_wrapper.o /Users/rieffelj/ros/common/pluginlib/src/boost_fs_wrapper.cpp: In function 'std::string pluginlib::getPackageFromLibraryPath(const std::string&)':
/Users/rieffelj/ros/common/pluginlib/src/boost_fs_wrapper.cpp:58: error: conversion from 'boost::filesystem3::path' to non-scalar type 'std::basic_string<char, std::char_traits<char="">, std::allocator<char> >' requested
/opt/local/include/boost/system/error_code.hpp: At global scope:
/opt/local/include/boost/system/error_code.hpp:214: warning: 'boost::system::posix_category' defined but not used
/opt/local/include/boost/system/error_code.hpp:215: warning: 'boost::system::errno_ecat' defined but not used
/opt/local/include/boost/system/error_code.hpp:216: warning: 'boost::system::native_ecat' defined but not used make[3]: * [CMakeFiles/boost_fs_wrapper.dir/src/boost_fs_wrapper.o] Error 1 make[2]: [CMakeFiles/boost_fs_wrapper.dir/all] Error 2 make[1]: ** [all] Error 2 -------------------------------------------------------------------------------} [ rosmake ] Output from build of package pluginlib written to: [ rosmake ]
/Users/rieffelj/.ros/rosmake/rosmake_output-20110415-221135/pluginlib/build_output.log [rosmake-7] Finished <<< pluginlib [FAIL] [ 2.98 seconds ]
[ rosmake ] Halting due to failure in package pluginlib. [ rosmake ] Waiting for other threads to complete. [rosmake-2] Finished <<< roscpp [PASS] [ 4.73 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 21 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /Users/rieffelj/.ros/rosmake/rosmake_output-20110415-221135

2014-01-28 17:22:00 -0600 marked best answer importing PIL into a rosnode

when I have the line

"from PIL import Image"

in a node, I get the following error when running my node via rosrun

"ImportError: No module named PIL"

of course, PIL is installed in

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PIL

but is not an ROS library. How can I change my manifest.xml to find PIL? If I understand correctly, rosrun clobbers my existing PYTHONPATH (when running python I can import PIL just fine).

2013-02-04 00:55:22 -0600 marked best answer how do i change topic name for ar_pose?

By default, ar_pose package looks for Image data published by usb_cam, but I would like it to look for Image data published by a different node (ar_drone). Is there a way to change the topic source without hacking the source code for ar_pose?

I notice that ar_kinect must do something similar.

2013-01-31 04:33:42 -0600 received badge  Popular Question (source)
2013-01-31 04:33:42 -0600 received badge  Notable Question (source)
2013-01-31 04:33:42 -0600 received badge  Famous Question (source)
2012-11-05 20:44:54 -0600 received badge  Notable Question (source)
2012-11-05 20:44:54 -0600 received badge  Famous Question (source)
2012-11-04 14:53:48 -0600 received badge  Famous Question (source)
2012-11-04 14:53:48 -0600 received badge  Notable Question (source)
2012-08-31 13:46:53 -0600 received badge  Famous Question (source)
2012-08-20 04:22:56 -0600 received badge  Famous Question (source)
2012-08-20 04:22:56 -0600 received badge  Notable Question (source)
2012-08-17 10:21:00 -0600 received badge  Famous Question (source)
2012-08-16 06:26:33 -0600 received badge  Famous Question (source)
2012-08-16 06:26:33 -0600 received badge  Notable Question (source)
2012-08-06 08:57:54 -0600 received badge  Popular Question (source)
2012-07-20 23:24:30 -0600 received badge  Notable Question (source)
2012-07-04 08:50:07 -0600 received badge  Popular Question (source)
2012-06-24 05:45:54 -0600 received badge  Popular Question (source)
2012-05-26 04:34:11 -0600 received badge  Popular Question (source)
2012-05-13 08:01:47 -0600 received badge  Notable Question (source)
2012-04-03 02:21:11 -0600 marked best answer usb_cam on imac isight: "No space left on device"

Fresh install of diamondback and Lucid in VirtualBox on my mac, I installed usb_cam (bosch-drivers), but get the following error when running:

VIDIOC_STREAMON error 28, No space left on device

I get a similar error when I try to run guvcview.

Any advice on resolving this issue? Is it a virtual machine problem?

2012-03-07 20:08:11 -0600 received badge  Popular Question (source)
2012-02-23 17:29:00 -0600 received badge  Taxonomist