dusty-nv / ros_deep_learning

Deep learning inference nodes for ROS / ROS2 with support for NVIDIA Jetson and TensorRT
879 stars 257 forks source link

Subscribing node to USB_Cam output #31

Open nickkraus opened 4 years ago

nickkraus commented 4 years ago

I am trying to use this node subscribing to another message usb_cam/image_raw. I see some remapping is going on in the imagenet nodelet but I am not sure what "imin" is or how its going from "imin" to "/usb_cam/image_raw" (I feel like it should be the other way around. Here is the section of the launch file I am using for the usb_cam node and the ros_deep_learning node:

Unfortunately when I launch this, I get the following error.

[ INFO] [1582405073.768284396]: failed to convert 640x480 rgb8 image [ INFO] [1582405073.799523285]: converting 640x480 rgb8 image [ERROR] [1582405073.799635580]: 640x480 image is in rgb8 format, expected bgr8

If I removed the "remap..." part of the launch script the error is no longer there, but when i do a $ rostopic echo /imagenet_node/class_str -- nothing happens just a blank screen.

Has anyone used this ros_deep_learning node to subscribe to the published usb_cam/raw_image topic? If so, any idea what I am doing wrong?