surfertas / ros2_ipcamera

ros2 package for use with ip camera
26 stars 12 forks source link

RVIZ2 Visualisation #21

Open schreiterjp opened 11 months ago

schreiterjp commented 11 months ago

Hi,

im trying to use the package to get the camera stream displayed in Rviz.

Neither working for camera or image added in rviz. Also tried the suggested fixes from other issue.

using ipcamera/image_raw: Camera Info No Cameralnfo received on /ipcamera/ camera_info. Topic may not exist.

using ipcamera/image_raw/compressed: Camera Info No Cameralnfo received on /ipcamera/image_raw/ camera_info. Topic may not exist.

Echo topic /ipcamera/camera_info shows: header : stamp: sec: [1690295346] nanosec: 322122365 frame id: camera height: 480 width: 640 distortion_model: plumb_bob d: [0.0, 0.0,0.0, 0.0, 0.0] k: [641.5, 0.0,320.0,0.0.641.5,240.0, 0.0, 0.0, 1.0] г: [11.0, 0.0, 0.0,0.0,1.0,0.0, 0.0, 0.0,1.0] P: [641.5,0.0,320.0,0.0,0.0,0.0,641.5,240.0,0.0,0.0, 0.0, 1.0,0.0] binning_x: 0 binning_y: 0 roi: x _offset: 0 y_offset: 0 height: 0 width: o do_rectify: false

Echo on ipcamera/image_raw shows the normal output with image.

Maybe someone has a clue how to solve this problem.

Thanks

ubuntu 18.04 Ros2 eloquent Jetson Nano 4GB Hikvision IP camera

surfertas commented 10 months ago

How did you resolve?

schreiterjp commented 10 months ago

Hi @surfertas ! After implementing the changes suggested it was a mapping frame error. A static transform publisher solved the problem for me.

Also changed setup to Ubuntu 20.04 Ros 2 Humble