GithubHelp home page GithubHelp logo

daedalus-robotics / avr_vmc_2023_csi_driver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 60 KB

A simple ROS2 node that publishes frames from a CSI camera on a Jetson Nano

License: GNU General Public License v3.0

CMake 14.28% C++ 51.13% Python 34.59%
ros2 ros2-foxy ros2-node ros2-driver csi-camera jetson-nano jetson ros2-humble gstreamer opencv rclcpp

avr_vmc_2023_csi_driver's Introduction

Deadalus Robotics Bell AVR 2023 CSI Driver

A simple ROS2 node that publishes frames from a CSI camera on a Jetson Nano

Build

Go to your workspace src drirectiory

git clone https://github.com/Daedalus-Robotics/avr-vmc-2023-csi-driver.git csi_driver
git clone https://github.com/ros-perception/image_common.git --branch 3.0.0 --single-branch
cd ..
colcon build --symlink-install

Run

Replace <YOUR INFO FILE> with the absolute path to your info file.

. install/local_setup.bash
ros2 launch csi_driver csi_driver.launch.py framerate:=15 info_file:=<YOUR INFO FILE>

Calibrate

Calibrate undistortion and rectification. Download and print this calibration pattern. To start the camera driver, go to your workspace src drirectiory. Replace <CAMERA_WIDTH> and <CAMERA_HEIGHT> with the width and height of your camera.

. install/local_setup.bash
ros2 launch csi_driver csi_driver_raw.launch.py framerate:=15 width:=<CAMERA_WIDTH> height:=<CAMERA_HEIGHT>

In a new terminal go to your workspace src drirectiory. Replace <SQUARE_SIZE> with the size of a square in meters on the camibration image.

. install/local_setup.bash
ros2 run camera_calibration cameracalibrator --size 6x8 --square <SQUARE_SIZE> image:=/csi_camera/image_raw camera:=/csi_camera

Hold your calibration image in front of the camera and move it and rotate it in all directions until the calibrate button lights up. Then press the calibrate button and then the save button. Then run:

tar -xzf /tmp/calibrationdata.tar.gz ost.yaml

Then to run the driver with that calibration file, run:

ros2 launch csi_driver csi_driver.launch.py framerate:=15 info_file:=`pwd`/ost.yaml

avr_vmc_2023_csi_driver's People

Contributors

literally-anything avatar

Watchers

 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.