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

HITE's profile - activity

2015-10-23 15:52:03 -0500 received badge  Famous Question (source)
2015-06-19 10:52:21 -0500 received badge  Notable Question (source)
2015-06-10 13:48:37 -0500 received badge  Teacher (source)
2015-06-10 13:48:37 -0500 received badge  Necromancer (source)
2015-06-10 13:48:37 -0500 received badge  Self-Learner (source)
2015-06-10 12:50:28 -0500 answered a question ImportError: cannot import name CvBridge

Solved quite a while back, but hadn't seen the comment above, so:

It actually ended up being that I had named the python script I was writing cv_bridge.py as well, which was messing with the import statement (basically it was trying to import from itself). I changed the name and everything worked fine!

2015-06-10 12:45:33 -0500 received badge  Popular Question (source)
2015-04-07 14:48:02 -0500 received badge  Organizer (source)
2015-04-07 14:02:38 -0500 asked a question ImportError: cannot import name CvBridge

Hello,

I am trying to use the cv_bridge package to convert an Image topic to opencv format on Indigo. I am using the code from the cv_bridge tutorial, and I added cv_bridge to my package manifest as a build_depend, buildtool_depend, and a run_depend. When I attempt to run the bridge, I am getting the following error:

Traceback (most recent call last):
      File "cv_bridge.py", line 9, in <module>
    from cv_bridge import CvBridge, CvBridgeError
      File    "/home/kghite/catkin_ws/src/comprobo2014/src/neato_robot/neato_2dnav/scripts/cv_bridge.py", line 9, in        <module>
    from cv_bridge import CvBridge, CvBridgeError
ImportError: cannot import name CvBridge

I would really appreciate any help you can give. Thanks!

2014-11-20 03:21:10 -0500 received badge  Favorite Question (source)
2014-10-01 13:53:33 -0500 received badge  Famous Question (source)
2014-01-28 17:26:49 -0500 marked best answer Openni_node.launch in Fuerte

I have been having the same problem as this post (http://answers.ros.org/question/39814/openni_nodelaunch-not-found/), but when I changed the kinect+rgbdslam.launch file to depend on openni_camera_deprecated, I got this error:

error loading <rosparam> tag: file does not exist [/opt/ros/fuerte/stacks/openni_camera/info/openni_params.yaml] XML is <rosparam command="load" file="$(find openni_camera)/info/openni_params.yaml"/>

What is going wrong? I would greatly appreciate an explanation on how to fix this problem, which occurs when running any Fuerte program that depends on openni_node.launch.

2014-01-28 17:26:47 -0500 marked best answer RGBDSLAM Fuerte rosmake problem

Hi, I have been fighting to rosmake the RGBDSLAM tutorial, and I have fixed many problems already. However, I am stuck at this point. I have checked the many other errors that are being asked about, and this doesn't seem to have come up. Does anyone know how to fix the following errors from the build (it looks like I am missing a stack or something)?

/home/virus/ros_workspace/rgbdslam/src/glviewer.cpp: In member function ‘virtual void GLViewer::paintGL()’: /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:176:45: error: ‘gluPerspective’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp: In member function ‘virtual void GLViewer::resizeGL(int, int)’: /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:234:41: error: ‘gluPerspective’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp: In member function ‘void GLViewer::pointCloud2GLStrip(pointcloud_type)’: /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:340:36: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:342:36: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:345:35: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:366:38: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:398:33: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:423:33: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp: In member function ‘void GLViewer::pointCloud2GLList(const pointcloud_type)’: /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:494:33: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:498:33: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:502:31: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:509:31: error: ‘hasValidXYZ’ was not declared in this scope /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp: In member function ‘bool GLViewer::setClickedPosition(int, int)’: /home/virus/ros_workspace/rgbdslam/src/glviewer.cpp:585:91: error: ‘gluUnProject’ was not declared in this scope make[3]: * [CMakeFiles/rgbdslam.dir/src/glviewer.o] Error 1 make[3]: Leaving directory /home/virus/ros_workspace/rgbdslam/build' make[2]: *** [CMakeFiles/rgbdslam.dir/all] Error 2 make[2]: Leaving directory/home/virus/ros_workspace/rgbdslam/build' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/virus/ros_workspace/rgbdslam/build'

Thank you.

2014-01-28 17:26:34 -0500 marked best answer perception_pcl missing libraries

Hi, When trying to run launch files using the perception_pcl libraries for Fuerte, ROS returns errors saying that the Segmentation and Feature libraries do not exist in pcl_ros. They were commented out of the CMakeLists.txt file in pcl_ros, but uncommenting and then rebuilding does not work. The library files are still missing. Does anyone know where to get the libraries? Thank You.

2014-01-28 17:26:31 -0500 marked best answer RGBDSLAM tutorial with fuerte

When going through the rgb-d slam tutorial, rosmake --rosdep-install rgbdslam does not work on Fuerte. What would the new command be, and does anything else need to be changed for the newer ROS versions? Or is there a new tutorial? Thank you.

2014-01-14 22:14:07 -0500 received badge  Notable Question (source)
2014-01-14 22:14:07 -0500 received badge  Popular Question (source)
2013-10-11 07:44:03 -0500 received badge  Notable Question (source)
2013-09-26 04:14:56 -0500 answered a question How to get watchdog_timer package
2013-09-16 07:27:42 -0500 asked a question How to get watchdog_timer package

Hi,

I am using ROS Fuerte and am trying to find a ROS watchdog service to use in a teleoperation program. I found the package watchdog timer on the ROS Wiki, but it does not show up in my current stacks. I would like to download it, but can not locate it or a stack which contains it in apt-get, etc. I would appreciate it if someone could let me know if watchdog_timer is available to download for Fuerte and how to get it or if there is another way to implement a watchdog. Thank you.

2013-08-06 07:28:35 -0500 received badge  Popular Question (source)
2013-07-30 11:49:46 -0500 asked a question Does rosjava_core harm the normal ros install?

Hi,

Based on the documentation and questions on rosjava, I am not certain whether installing rosjava replaces the normal ROS install or is just another library. Could someone clear this up for me please? I want to talk to an android device using ROS, but still need all of the normal ROS stacks. How does this work?

Thank you.

2013-05-15 16:18:42 -0500 marked best answer Install SiftGPU for RGBDSLAM

After working to fix all of the fuerte bugs in RGBDSLAM, I finally got it to the point that it will launch RGBDSLAM and it shows Kinect input at the bottom. However, when I hit the space bar to run, the terminal outputs the following:

//[FATAL] [1344446005.784101274]: Can't run SiftGPU //[FATAL] [1344446006.241891559]: SiftGPU cannot be used. Detection of keypoints failed

I have seen that SiftGPU can be disabled in the CMakeLists.txt, but I am not positive on all the steps needed to completely disable it and use something else. When I comment it out of the file, it produces an image of the first frame and its features, but after that it gives an error saying that it cannot match the features in the next frame. Is there a way to make it run? How do I either use SiftGPU or disable it?

Thank you.

2012-09-06 06:21:02 -0500 received badge  Famous Question (source)
2012-08-16 04:34:21 -0500 received badge  Notable Question (source)