Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the examples fails #6

Open
JonasFovea opened this issue Nov 3, 2022 · 5 comments
Open

Running the examples fails #6

JonasFovea opened this issue Nov 3, 2022 · 5 comments

Comments

@JonasFovea
Copy link

Hi!

I've installed this SDK as described on my computer, which is connected to the Go1 robot.
I am able to ping the Nvidia boards inside.

But none of the example files work out of the box:

$ ls
example_getCalibParamsFile  example_getDepthFrame  example_getimagetrans  example_getPointCloud  example_getRawFrame  example_getRectFrame  example_putImagetrans

$ ./example_getPointCloud 
Invalid deviceNode!
Segmentation fault (core dumped)

$ ./example_getDepthFrame 
Invalid deviceNode!
Segmentation fault (core dumped)

$ ./example_getimagetrans 
udpSendIntegratedPipe:udpsrc address=192.168.123.15 port=9201 ! application/x-rtp,media=video,encoding-name=H264 ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! appsink
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (713) open OpenCV | GStreamer warning: Error opening bin: no element "h264parse"
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

$ ./example_getPointCloud 
Invalid deviceNode!
Segmentation fault (core dumped)

$ ./example_getRawFrame 
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Cannot detect any unitree camera!
[UnitreeCameraSDK][ERROR] read to tmp file failed, maybe mkstemp file error!
[UnitreeCameraSDK][ERROR] This camera cannot get internal parameters!
[UnitreeCameraSDK][ERROR] You should flash the calibration parameters or load it from disk.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1758) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (515) startPipeline OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1057) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1057) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1057) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1057) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1057) setProperty OpenCV | GStreamer warning: no pipeline
Device Position Number:0
[StereoCamera][INFO] Initialize parameters OK!
[StereoCamera][INFO] Start capture ...
^C

$ ./example_getRectFrame 
Invalid deviceNode!
Segmentation fault (core dumped)

I expected at least a window to open to show be the output of one camera.

Does anybody know how to solve these issues?

@srisadhan
Copy link

I have the same exact issue. I tried running the code from an external PC connected to the robot and directly from Unitree's Nvidia board, but it did not work.

@Raviteja-T
Copy link

@JonasFovea i also faced same issue. Just kill default camera functions.

  1. sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

  2. sudo apt-get install gstreamer1.0-plugins-bad

  3. nano /etc/apt/sources.list

  4. deb http://ports.ubuntu.com/ubuntu-ports trusty-updates universe

  5. sudo apt-get update

  6. sudo apt-get install libudev1

  7. sudo apt-get install libudev1 libudev-dev

  8. sudo apt-get install freeglut3-dev

ALL THE BEST

@muye1202
Copy link

muye1202 commented Oct 6, 2023

@Raviteja-T Do you mind explaining what are you trying to do with those 8 steps listed, do you mean we should install these extra libs and then run the unitree example?

@aatb-ch
Copy link

aatb-ch commented Oct 14, 2023

the sdk is meant to be run exclusively on the internal jetsons directly connected to the cameras over usb, you wont be able to run it on your external laptop since it will try to open the local video devices which will obviously be missing.

@53LostNFound
Copy link

I encountered the same problem. When I ran the routine to acquire the image on my Ubuntu system, it gave me three warnings and then exited the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants