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

Model will fly around and sometimes get stuck #21

Open
SkelonChan opened this issue Nov 25, 2024 · 1 comment
Open

Model will fly around and sometimes get stuck #21

SkelonChan opened this issue Nov 25, 2024 · 1 comment

Comments

@SkelonChan
Copy link

Import the
robot model XML file and add

<ros2_control name="MujocoSystem" type="system"> 
<hardware>
<plugin>mujoco_ros2_control/MujocoSystem</plugin>
</hardware>
</ros2_control> 

After the tag to the URDF file, even if no specific controller is loaded, the model will fly around and sometimes get stuck
ADD mujoco_ros2_control/MujocoSystem in URDF
https://github.com/user-attachments/assets/48de2e25-0a63-43fd-99e1-8f8b02ccfe08
If I remove the plugin, the model will be fine.
Image
The model is the Unitree go2, this model is below, and i test my own robot model, the same scene occured
unitree_go_robot_model.zip

@SkelonChan SkelonChan changed the title Model will fly around and sometimes get stuck Model will fly around and sometimes get stuck #BUG Nov 25, 2024
@SkelonChan SkelonChan changed the title Model will fly around and sometimes get stuck #BUG Model will fly around and sometimes get stuck Nov 25, 2024
@sangteak601
Copy link
Member

Hi, @SkelonChan thanks for reporting the issue.
There is an issue with position command interface.
Do you mind trying with position_pid and velocity_pid instead? You can find an example here.

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