NVIDIA-AI-IOT / ros2_trt_pose

ROS 2 package for "trt_pose": real-time human pose estimation on NVIDIA Jetson Platform
MIT License
63 stars 16 forks source link

[cam2image-2] VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV #5

Open zeta0707 opened 3 years ago

zeta0707 commented 3 years ago

My environment: Jetpack4.3 in Jetbot0.4.0 ROS2 Eloquent is installed through Debian package, so install folder is /opt/ros/eloquent. ros2_trt_pose is installed ~/ros2_ws/src/ros2_trt_pose Camera: CSI

jetbot@jetson-4-3:~$ ls /dev/video*
/dev/video0

Before run ros2_trt_pose

source /opt/ros/eloquent/local_setup.bash
source ~/ros2_ws/src/ros2_trt_pose/install/local_setup.sh

"image_tools cam2image" doesn't show any error message. jetbot@jetson-4-3:~$ ros2 run image_tools cam2image [INFO] [cam2image]: Publishing image #1 [INFO] [cam2image]: Publishing image #2 [INFO] [cam2image]: Publishing image #3 [INFO] [cam2image]: Publishing image #4 [INFO] [cam2image]: Publishing image #5 [INFO] [cam2image]: Publishing image #6 [INFO] [cam2image]: Publishing image #7 [INFO] [cam2image]: Publishing image #8 [INFO] [cam2image]: Publishing image #9 [INFO] [cam2image]: Publishing image #10 [INFO] [cam2image]: Publishing image #11 [INFO] [cam2image]: Publishing image #12 :

Though I got below error.

jetbot@jetson-4-3:~/ros2_ws$ ros2 launch ros2_trt_pose pose-estimation.launch.py[INFO] [launch]: All log files can be found below /home/jetbot/.ros/log/2021-01-04-03-36-13-181888-jetson-4-3-3929
[INFO] [launch]: Default logging verbosity is set to INFO
/home/jetbot/ros2_ws/src/ros2_trt_pose/install/ros2_trt_pose/share/ros2_trt_pose
[INFO] [pose-estimation-1]: process started with pid [4000]
[INFO] [cam2image-2]: process started with pid [4004]
[INFO] [rviz2-3]: process started with pid [4007]
[cam2image-2] VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
[cam2image-2] Unable to stop the stream: Device or resource busy
[cam2image-2] [ERROR] [cam]: Could not open video stream
[cam2image-2] terminate called after throwing an instance of 'std::runtime_error'
[cam2image-2]   what():  Could not open video stream
[pose-estimation-1] Matplotlib created a temporary config/cache directory at /tmp/matplotlib-0pj0a0do because the default path (/home/jetbot/.cache/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
[pose-estimation-1] Matplotlib is building the font cache; this may take a moment.
[ERROR] [cam2image-2]: process has died [pid 4004, exit code -6, cmd '/opt/ros/eloquent/lib/image_tools/cam2image --ros-args -r __node:=cam'].

Any suggestion to solve this problem?

Thanks!

ak-nv commented 3 years ago

Can you check if cam2image is publishing any image by using ros2 run image_tools cam2image?