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

retargetting problem with laptop's built-in camera #31

Open
dbdxnuliba opened this issue Aug 3, 2024 · 8 comments
Open

retargetting problem with laptop's built-in camera #31

dbdxnuliba opened this issue Aug 3, 2024 · 8 comments

Comments

@dbdxnuliba
Copy link

Very nice work!
And when I used the show_realtime_retargeting.py example with the laptop's built-in camera, the retargeting performed normally when my hand was facing the camera. However, as I gradually rotated my right hand, the retargeting showed a significant deviation. How can we solve this problem? Would using an RGBD camera, like Realsense, resolve it? If so, could you please provide an example code? Thank you very much.

Here is the testingmethod:
python3 show_realtime_retargeting.py --robot-name allegro --retargeting-type dexpilot --hand-type right

abc

@dbdxnuliba dbdxnuliba changed the title retargetting problem laptop's built-in camera retargetting problem with laptop's built-in camera Aug 3, 2024
@yzqin
Copy link
Member

yzqin commented Aug 6, 2024

Hi @dbdxnuliba

That is an unexpected issue. To further debug this problem, could you help to provide the original RGB video (without mediapipe markers) or image sequences so that I can take a deeper look at the problem you mentioned above?

@dbdxnuliba
Copy link
Author

dbdxnuliba commented Aug 7, 2024

https://github.com/user-attachments/assets/3e77cb76-add3-4ca7-8d7f-11a597e9c29b
thanks a lot for your response, and this is the original RGB video record from laptop's built-in camera
@yzqin

@dbdxnuliba
Copy link
Author

dbdxnuliba commented Aug 7, 2024

test_result.zip

and this is the test result by run dex-retargeting-0.4.0
python3 show_realtime_retargeting.py --robot-name ability --retargeting-type dexpilot --hand-type right
@yzqin ,Please inform me if there are any new developments

@yzqin
Copy link
Member

yzqin commented Aug 13, 2024

Hi @dbdxnuliba

Sorry I find that I can not open/download your original RGB video record. Can you send me again.

@dbdxnuliba
Copy link
Author

dbdxnuliba commented Aug 15, 2024

Hi, @yzqin
test.zip

this is the original RGB video record

Hi @dbdxnuliba

Sorry I find that I can not open/download your original RGB video record. Can you send me again.

@yzqin
Copy link
Member

yzqin commented Aug 16, 2024

Dear @dbdxnuliba,

Thank you for sharing this example. I've successfully reproduced the issue on my system. The core problem stems from the poor quality of 3D fingertip position detection in the hand pose estimation.

In the video, even when the thumb and index fingertips are visibly touching, the detected distance between them remains quite large, approximately 0.08 units.

I've made updates to the dex-urdf repository to enhance the fingertip definition for the Allegro hand. While this offers some improvement, the issue persists.

You might want to experiment with the retargeting configuration I've provided below. It includes an increased margin for the finger touching prior. This adjustment helps to some extent, but the results are still unsatisfactory due to the significant detection errors from MediaPipe.

retargeting:
  type: DexPilot
  urdf_path: allegro_hand/allegro_hand_right.urdf

  # Target refers to the retargeting target, which is the robot hand
  wrist_link_name: "wrist"
  finger_tip_link_names: [ "link_15.0_tip", "link_3.0_tip", "link_7.0_tip", "link_11.0_tip" ]
  scaling_factor: 1.6

  # DexPilot parameters
  project_dist: 0.05
  escape_dist: 0.07

  # A smaller alpha means stronger filtering, i.e. more smooth but also larger latency
  low_pass_alpha: 0.2

I will continue investigate this issue. Maybe replace the mediapipe with a better hand pose detector in the example.

@dbdxnuliba
Copy link
Author

Thank you for your reply. Looking forward to the progress.

@LEONliaowin
Copy link

Hello!Glad to see this great work, i also want to run the real time simulation on my laptop, however, my PC has an AMD cpu and doesn't have a NVIDIA GPU

My Question is : is my computer able to run the real time sim using the build-in camera?

THX

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

3 participants