google-deepmind / google-deepmind/mujoco
equality constraints break or closed loop crash or not accurate when simulation
- Dominant language
- C++
- Stars
- 15.2k
- Forks
- 1.8k
- Avg merge
- 10d 16h
- Merged PRs (30d)
- 25
Description
### Intro
Hi!
I am a ([ researcher) in a research laboratory. I use MuJoCo for my research on arm robot.
[meshes.zip](https://github.com/user-attachments/files/20838940/meshes.zip)
### My setup
### What's happening? What did you expect?
Setting `rgba="1 0 0 1"` renders as **green**, I expected it to render as **red**.
Here is a screen-shot showing a green sphere:
### Steps for reproduction
1. Load the model below.
2. Run the code below.
3. See green sphere (should be red).
### Minimal model for reproduction
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
minimal XML
```XML
```
### Code required for reproduction
The equality constraints break or the closed loop crash when simulating.
for example:
if control as this:
actuation = np.array([-0.21954719, 0.3609375 , 0.09375 , 0.535 ])
data.ctrl[:] = actuation[:],this is most unstable, and the closed loops often crash.
In the actuator section of my XML file, I've set a very high proportional coefficient (kp) for position control based on multiple trials. If it's too small, we
[meshes.zip](https://github.com/user-attachments/files/20683296/meshes.zip)
can't control the robotic arm properly, but if it's too large, it also causes problems. Could you advise on how to properly configure this kp value? Hope to receive your reply soon. Thank you!
Especially during path planning, I need to perform state validity checks including self-collision and collision with environmental objects. The robotic arm often collapses easily (physically breaks apart), likely due to model parameter issues—but I'm unsure how to optimize these model parameters in the xml file. I hope you can provide some suggestions and assistance. Thank you.

### Confirmations
- [x] I searched the [latest documentation](https://mujoco.readthedocs.io/en/latest/overview.html) thoroughly before posting.
- [x] I searched previous [Issues](https://github.com/google-deepmind/mujoco/issues) and [Discussions](https://github.com/google-deepmind/mujoco/discussions), I am certain this has not been raised before.
Contributor guide
Assessment
This issue has not been assessed yet.