BrettRD / ros-gst-bridge

a bidirectional ros to gstreamer bridge and utilities for dynamic pipelines
Other
130 stars 31 forks source link

Not able to launch pipeline_node #56

Open sarithabapuram opened 1 year ago

sarithabapuram commented 1 year ago

Hi,

Not able to launch the gst pipeline node with launch file, could you please share some example for the same.

~/workspaces/gstreamer_ws$ ros2 launch gst_bridge example.launch.py [INFO] [launch]: All log files can be found below /home/avlabs/.ros/log/2023-03-24-05-21-48-934184-nuvo-one-234474 [INFO] [launch]: Default logging verbosity is set to INFO [INFO] [pipeline_node-1]: process started with pid [234475] [pipeline_node-1] [DEBUG] [1679615509.086904536] [rcl]: Initializing node 'pipeline_node' in namespace '' [pipeline_node-1] [DEBUG] [1679615509.086944619] [rcl]: Using domain ID of '0' [ERROR] [pipeline_node-1]: process has died [pid 234475, exit code -11, cmd '/home/avlabs/workspaces/gstreamer_ws/install/gst_pipeline/lib/gst_pipeline/pipeline_node --ros-args --log-level debug --ros-args -r __node:=gst_pipeline_node --params-file /home/avlabs/workspaces/gstreamer_ws/install/gst_bridge/share/gst_bridge/config/example.config.yaml'].

Thanks in Advance

BrettRD commented 1 year ago

Your logs look normal right up until the error. -11 looks like a segfault, which CPU are you using?

sarithabapuram commented 1 year ago

Intel(R) Xeon(R) E-2278GE CPU

And I kept only audio_test as part of simple_bins, and removed rest others including webrtc_example_bin section

BrettRD commented 1 year ago

That does narrow it down a lot. The only code that example uses is the python pipeline host, it sounds like your gstreamer is having a bad time

Does the audio_test pipeline work on its own through gst-launch?

$ gst-launch-1.0 audiotestsrc volume=0.3 is-live=true wave=red-noise ! queue ! audioconvert ! alsasink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
sarithabapuram commented 1 year ago

I tested with one of the working pipeline gst-launch-1.0 --gst-plugin-path=install/gst_bridge/lib/gst_bridge/ v4l2src device=/dev/bench_cam_1 ! 'video/x-raw, width=1920, height=1020' ! videoconvert ! rosimagesink ros-topic="image_raw" ros-node-name="bench_cam_1"