A camera package for ROS, the target is jetson tx2(it should work on jetson tx1)
- ROS Kinetic
- CMake(mine is 3.11)
- OpenCV(mine is 3.4.1, I don't know why the built-in opencv from Jetpack 3.2 doesn't work for me.) Follow this link to install OpenCV on jetson tx2: https://jkjung-avt.github.io/opencv3-on-tx2/
# Sync the repo.
$ git clone https://github.com/Dengjianping/JetsonOnboardCamera.git
$ cd JetsonOnboardCamera
$ catkin_make # just seconds
# add current project to env
$ source ./devel/setup.bash
Tips: the topic is /camera/onboard/image
.
Make sure the node is launched smoothly.
# use default configuration, width = 1280, height = 720, fps = 30
$ roslaunch onboard_camera onboard_camera.launch
# or specified configuration, example
$ roslaunch onboard_camera onboard_camera.launch width:=1920 height:=1080 fps:=15
- Open rviz.
$ rosrun rviz rviz
$ rosrun image_view image_view image:=/camera/onboard/image
- Camera Calibration (looks easy)
- Add camera instead of image in rviz. (it need calibrate the camera to generate a camera info file, maybe someone would take a try)