Giter Site home page Giter Site logo

bumblebee_xb3's Introduction

README for using the bumblebee_xb3 ros package

0. If you don't have camera calibration files, you can use the ones in
./calibration_files/ These need to be copied to the default directory
where ros stores camera calibration files, usually ~/.ros/camera_info/

1. Start ros:

----------------------------------------------------------------------
$ roscore
----------------------------------------------------------------------

2. In another terminal tab, launch the camera1394 driver node
(Ctrl+Shift+Tab to launch a new terminal tab and Alt+tab_number to move to a tab quickly)

-------------------------------------------------------------------------------------------------------------------
$ roslaunch ~/catkin_ws/src/bumblebee_xb3/launch/camera1394_24bit.launch
-------------------------------------------------------------------------------------------------------------------

For reference, the contents of the above launch file. It starts a camera1394 node with some parameters.
<!-- -*- mode: XML -*- -->
<launch>
<node pkg="camera1394" type="camera1394_node" name="camera1394_node" output="screen">
    <param name="video_mode" value="format7_mode3" />
    <param name="format7_color_coding" value="rgb8" />
    <param name="bayer_pattern" value="gbrg" />
    <param name="bayer_method" value="" />
    <param name="frame_id" value="camera_frame" />
    <param name="frame_rate" value="15.0" />
    <param name="iso_speed" value="800" /> 
</node> 
</launch>

once this node is launched, it will publish a interlaced (combined) bayered image which you can view by:
-----------------------------------------------------------------------------------------------------
$ rosrun rqt_image_view rqt_image_view image:=/camera/image_raw
-----------------------------------------------------------------------------------------------------

3. Next run the deinterlacer (& debayering) node (this package's node):
Note that this node only does deinterlacing. debayering is handled by
stereo_image_proc. 

----------------------------------------------------------------------
$ rosrun bumblebee_xb3 bumblebee_xb3_node
----------------------------------------------------------------------

Now running
----------------------------------------------------------------------
$ rostopic list
----------------------------------------------------------------------
should show you a lot more image streams, which you can again view with rqt_image_view

4. Now start the stereo_image_proc node in any of the THREE stereo_camera namespaces, say:

-------------------------------------------------------------------------------------
$ ROS_NAMESPACE=/camera/stereo_camera_LC/ rosrun stereo_image_proc stereo_image_proc
-------------------------------------------------------------------------------------

You should see that the point cloud topic is now published
/camera/stereo_camera_LC/points2

5. To view the point cloud, start rviz:

----------------------------------------------------------------------
$ rosrun rviz rviz
----------------------------------------------------------------------

COMMENTS:
stereo_image_proc uses a lot of cpu resources. consider using stereo_image_proc_gpu 
when it becomes available. 

Steps 1-4 can be combined into a single launch file for convenience. 

bumblebee_xb3's People

Contributors

ravich2-7183 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.