ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I wasn't using a workspace properly. I was able to run the ORB_SLAM package by following these instructions by jwcrawley on github: https://github.com/raulmur/ORB_SLAM/issues/39
jwcrawley commented 13 days ago Greetings @riaverma96 ,
That was an annoying error I kept getting, but I think I've solved it now. I'll start from the beginning, which seems to have worked on 2 separate machines:
(Be aware, I only recommend the 1st step for completely clean install) 1. Use Synaptic and completely remove ALL ros packages 2. Follow steps on http://www.ros.org/install/ for Desktop-Full Install. I've used Jade. 3. Go into your ~/.bashrc and remove all instances of ROS (should be a source and an export line) 4. At the bottom of the ~/.bashrc, you want to put the following: source /opt/ros/jade/setup.bash export ROS_PACKAGE_PATH=~/catkin_ws:$ROS_PACKAGE_PATH 5. Get ORB_SLAM into your ~/catkin_ws directory va git. After this is done, you'll have ~/catkin_ws/ORB_SLAM/{stuff} 6. Edit ORB_SLAM/manifest.xml and remove the whole line that mentions opencv2 7. Follow the compile directions appropriately for 3rd party and then main. 8. Add a node to the ExampleGroovyHydro.launch at the top (beneath the )
<node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
<param name="video_device" value="/dev/video0" />
<param name="image_width" value="640" />
<param name="image_height" value="480" />
<param name="pixel_format" value="mjpeg" />
<param name="camera_frame_id" value="usb_cam" />
<param name="io_method" value="mmap"/>
</node>
9: Run roscore in a terminal. 10: Now use roslaunch to launch that file. It should spin up rviz and a webcam viewer. Should be up and running.
2 | No.2 Revision |
I wasn't using a workspace properly. I was able to run the ORB_SLAM package by following these instructions by jwcrawley on github: https://github.com/raulmur/ORB_SLAM/issues/39
jwcrawley commented 13 days ago Greetings @riaverma96 ,
That was an annoying error I kept getting, but I think I've solved it now. I'll start from the beginning, which seems to have worked on 2 separate machines:
(Be aware, I only recommend the 1st step for completely clean install)
1. Use Synaptic and completely remove ALL ros packages
2. packages
Add a node to the ExampleGroovyHydro.launch at the top (beneath the )
<node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
<param name="video_device" value="/dev/video0" />
<param name="image_width" value="640" />
<param name="image_height" value="480" />
<param name="pixel_format" value="mjpeg" />
<param name="camera_frame_id" value="usb_cam" />
<param name="io_method" value="mmap"/>
</node>
9: Run roscore in a terminal.
terminal.
10: Now use roslaunch to launch that file. It should spin up rviz and a webcam viewer. Should be up and running.