- deepstream-app version 6.1.0
- DeepStreamSDK 6.1.0
- CUDA Driver Version: 11.4
- CUDA Runtime Version: 11.0
- TensorRT Version: 8.2
- cuDNN Version: 8.4
- libNVWarp360 Version: 2.0.1d3
- device:A6000
How to combine deepstream-test3 with ros?
1,I add the callback function after nvtracker and everything works fine.
2,Now I want to send the nvtracker message through ros, but I find that when I add the code for ros to post the message in the callback function, the whole video gets stuck.
3,This must be a time consuming operation caused by ros joining, how should I go about combining ros publishing metadata?
tiler_src_pad = gst_element_get_static_pad (nvtracker, "src");
if (!tiler_src_pad)
g_print ("Unable to get src pad\n");
else
gst_pad_add_probe (tiler_src_pad, GST_PAD_PROBE_TYPE_BUFFER,
tiler_src_pad_buffer_probe, NULL, NULL);
gst_object_unref (tiler_src_pad);
tiler_src_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info,
gpointer u_data)
{
......
char msg_front[15] = "Helloworld!"; //pub msg
frameMeta2Distance(msg_front);//This is the ros message distribution function
return GST_PAD_PROBE_OK;
}