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

The quadruped robot exhibits unstable motion when traversing obstacles. #8

Open
nanbwrn opened this issue Feb 18, 2024 · 13 comments
Open

Comments

@nanbwrn
Copy link

nanbwrn commented Feb 18, 2024

hi,everyone

When the code runs normally, the robot can stably traverse smaller obstacles. However, when continuously crossing several higher obstacles, the robot becomes unstable and falls. I am not sure if it is due to the lower calculation frequency or if there is an issue with the foot placement selection. Has anyone encountered this issue? could you give some advice?

Thank you, everyone.

Below is a simulation process video.
动画002

@hrxsd
Copy link

hrxsd commented Feb 26, 2024

@nanbwrn I had the same problem as you, have you solved it yet?

@hrxsd
Copy link

hrxsd commented Feb 26, 2024

I'm guessing it should be due to the camera view changing too quickly due to the body shaking of the robot in motion, which causes the height information in the elevation map to be skewed and the robot's footing point to be incorrectly predicted. You can find the robot's feet "plunging" into the map in the rviz interface, which is the same as what I'm experiencing (below).
2024-02-26 15-29-00 的屏幕截图
https://github.com/qiayuanl/legged_perceptive/assets/126565504/680a5a65-bb0b-4120-b27f-7edeff6414d1

But I don't know how to solve this problem.

@tony-hj
Copy link

tony-hj commented Mar 1, 2024

Hi, everyone.
What sensor are you using D435,T265 or both ? I got similar results to you when I used D435 alone, but I saw a video by liaoqiayuan used two sensors. I think it is the effect of using D435 and T265 together, but when I want When adding the T265 sensor, there was an error that the controller could not be loaded. Could you give me some advice? Thank you very much.

[ERROR] [1709299206.611116230, 18.830000000]: Exception thrown while initializing controller 'controllers/perceptive_controller'.
Mesh package://realsense2_description/meshes/t265.stl could not be found.
[ERROR] [1709299206.616946789, 18.832000000]: Initializing controller 'controllers/perceptive_controller' failed

by the way: I have put the t265.stl file into the corresponding folder, but this errror stoll exists.

@nanbwrn
Copy link
Author

nanbwrn commented Mar 2, 2024

hi,@tony-hj
I've only used the D435 camera. Does anyone else have any suggestions? Thank you all.

@hrxsd
Copy link

hrxsd commented Mar 2, 2024

Hi, @tony-hj
I also encountered the same error as you, then I just used d435 and encountered the same problem as @nanbwrn , and I haven't found a solution yet.

@tony-hj
Copy link

tony-hj commented Mar 2, 2024

Hi @nanbwrn
This is a test video released by the author qiayuanl last year. I guess that the two sensors need to work synchronously for sensing and positioning. If only one D435 is used, the data obtained is insufficient, which may lead to unstable motion.
(https://www.youtube.com/watch?v=zcTuBe6d1qQ&ab_channel=QiayuanLiao)
This is why I'm trying to see if I can get T265 to work together, hoping to make progress

@tony-hj
Copy link

tony-hj commented Mar 2, 2024

Hi, @hrxsd
This is a test video released by the author qiayuanl last year.
https://www.youtube.com/watch?v=zcTuBe6d1qQ&ab_channel=QiayuanLiao
I guess that if the robot dog can process like in the video, two sensors (D435 and T265) need to work together. We are currently only using D435, and the sensory data obtained is insufficient, so there will be a problem of unsmooth movement. . We can try to join T265 and see the results. Please let me know if there is any progress.

@hrxsd
Copy link

hrxsd commented Mar 11, 2024

@tony-hj I think I solved the problem. First I found the t265.stl file on github and put it in the correct location, but it still reported that the file could not be found. Then I changed the contents of lines 41 and 49 in sensor_t265.xacro to change the file path to an absolute path and the problem was solved. This worked on my computer, looking forward to other solutions.

@nanbwrn
Copy link
Author

nanbwrn commented Mar 11, 2024

hi, @hrxsd
I followed your instructions and modified the file paths accordingly. The simulation performance has indeed improved, and the robot can move more stably. In Gazebo, the T265 appears on the back of the robot, but the t265 model is not displayed in RViz.

Do you know how to set this up?

1
2

@hrxsd
Copy link

hrxsd commented Mar 11, 2024

@nanbwrn I'm experiencing the same thing as yours and don't know why yet.

@hrxsd
Copy link

hrxsd commented Apr 2, 2024

@nanbwrn Try adding file:// in front of the file path, I could see t265 in rviz after I added it.
屏幕截图 2024-04-02 16:04:03

@nanbwrn
Copy link
Author

nanbwrn commented Apr 19, 2024

hi,@hrxsd
Thank you very much for your reply, and I apologize for responding so late.
Yes, making the changes as you suggested indeed allowed me to see the T265 in RViz.

@licongfei001
Copy link

Hi, @nanbwrn
Do you solved the problem? The convex region doesn't move with the robot. I think it's because of my wrong realsense gazebo plugin installation. Would I ask some help for you?

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

4 participants