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 "example_putImagetrans.cc" fails #16

Open
jameszhou12138 opened this issue Dec 4, 2023 · 3 comments
Open

Running "example_putImagetrans.cc" fails #16

jameszhou12138 opened this issue Dec 4, 2023 · 3 comments

Comments

@jameszhou12138
Copy link

Dear Unitree,

When I run "example_putImagetrans.cc" according to the tutorial in bilibili, it doesn't come up with the prompt [UnitreeCameraSDK][info] Load camera flash parameters OK!

unitree@unitree-desktop:~/UnitreecameraSDK$ ./bins/example_putImagetrans
[WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp(1757) handleMessage Opencv | Gstreamer warning: Embedded video playback halted; module v4l2srce reported: Internal data stream error.
[WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp(886) open Opencv | Gstreamer warning: unable to start pipeline
[WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp(480) isPipelinePlaying OpencV | Gstreamer warning: Gstreamer: pipeline have not been created

And I don't get the image from the camera...

Does anybody know how to fix the issue?

@iwayato
Copy link

iwayato commented Dec 6, 2023

did you stop the camera related processes?
ps -aux | grep point_cloud_node | awk '{print $2}' | xargs kill -9
ps -aux | grep mqttControlNode | awk '{print $2}' | xargs kill -9
ps -aux | grep live_human_pose | awk '{print $2}' | xargs kill -9
ps -aux | grep rosnode | awk '{print $2}' | xargs kill -9

@jameszhou12138
Copy link
Author

did you stop the camera related processes? ps -aux | grep point_cloud_node | awk '{print $2}' | xargs kill -9 ps -aux | grep mqttControlNode | awk '{print $2}' | xargs kill -9 ps -aux | grep live_human_pose | awk '{print $2}' | xargs kill -9 ps -aux | grep rosnode | awk '{print $2}' | xargs kill -9

Yes, I did.
and I typed in the command ps -aux, the %CPU and %MEM of every process do not exceed 1.0

@iwayato
Copy link

iwayato commented Dec 7, 2023

the another reason i believe the example can fail is because of the configuration in the "trans_rect_config.yaml" file, there are 3 specific configurations that can make the example not run properly:

  1. ip of the reciever board (IpLastSegment), i use 15 to transfer to one of the nanos
  2. DeviceNode (for example i use DeviceNode as 1 for the front camera in the head)
  3. set Transmode to 2 worked for me
    So with this configuration i transfer the images from the front camera to the nano with ip finished with 15
    I hope this can help

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

2 participants