Skip to content

ARK-Electronics/ros2_jetpack6_ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ROS2 workspace for PX4

Pre-requisites

git submodule update --init --recursive
rosdep install -r --from-paths src -i -y --rosdistro humble
colcon build
sudo apt-get install -y \
	ros-humble-usb-cam \
	ros-humble-image-view \
	ros-humble-camera-calibration \
	ros-humble-camera-calibration-parsers

Usage

USB camera node

ros2 run usb_cam usb_cam_node_exe --ros-args -p video_device:=/dev/video2 -p camera_info_url:=/home/jake/Downloads/fisheye_calibration.ini

View the image

ros2 run image_view image_view --ros-args -r image:=/image_proc

Bridge camera from gz to ros2

Install the proper version for humble + garden

sudo apt install ros-humble-ros-gzgarden-bridge

Run

ros2 run ros_gz_bridge parameter_bridge /camera@sensor_msgs/msg/[email protected]

Camera calibration

ros2 run usb_cam usb_cam_node_exe --ros-args -p video_device:=/dev/video2
ros2 run camera_calibration cameracalibrator --size 7x9 --square 0.015 --ros-args -r image:=/image_raw

bridge camera from gz to ros2

ros2 run ros_gz_bridge parameter_bridge /camera@sensor_msgs/msg/[email protected]

Run this before build ros_gz from source

export GZ_VERSION=garden

About

ROS2 Humble workspace for Jetpack 6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published