peter-moran / jetson_csi_cam

A ROS package making it simple to use CSI cameras on the Nvidia Jetson TK1, TX1, or TX2 with ROS.
MIT License
106 stars 52 forks source link

no data in the topic,no image #15

Open hxj0316 opened 2 years ago

hxj0316 commented 2 years ago

After successfully launching the launch file, you can see the corresponding topic, but there is no data in the topic, and there is no image when using rqt to view the image.

jung-youjin commented 2 years ago

@hxj0316 Hi did you solve this issue?

MaxwellHogan commented 7 months ago

I have the same issue

MaxwellHogan commented 7 months ago

now i've fixed by replacing the definition of GSCAM_CONFIG in jetson_csi_cam.launch with the following lines

<env name="GSCAM_CONFIG" value="nvarguscamerasrc sensor-id=$(arg sensor_id) ! video/x-raw(memory:NVMM), width=(int)$(arg width), height=(int)$(arg height), format=(string)NV12, framerate=(fraction)$(arg fps)/1 ! nvvidconv flip-method=2 ! video/x-raw ! videoconvert" />

the key thing was format=(string)NV12, I'm not a pro on gstreamer so I'm not sure why that is important