Closed parkhy0106 closed 1 month ago
The simulation state can be modified using Task::TransitionLocked
(example).
The mjData
object passed to this function is for the simulation environment, not the planner.
The simulation state can be modified using
Task::TransitionLocked
(example).The
mjData
object passed to this function is for the simulation environment, not the planner.
I already tried it and yes. I can change the simulation environment, and as you mentioned, I couldn't change the parameter for the planner smoothly.
So if it's okay, Can I ask you where the planner gets the mjData? Is there any kind of entry point can I access? I know this is abnormal. Usually doing this thing for implementing planner to robot is not right, but I have to make the GUI as fast as I can and I think this is the only way I can do so far.
System Information
code sniffet
stand.h
stand.cc
task.xml
Is there any proper way to update the robot state while simulating? What I'm trying to do is to update the real-world robot state to the simulation. Whenever I try to update the state by changing the data(or usually named as d) variable, the joint doesn't change and the simulator's state gets unstable.