@antonilo @ashish-kmr
Hi,
Thank you for sharing the code. However, I encountered a problem when deploying and would like to ask for your advice. The error message is “lock memory failed”, I have added the permissions as you said, and also tried “sudo su”, but it still doesn’t work. I traced it back to line 311 in “src/agile_locomotion/controller/src/agile_locomotion.cpp” where “InitEnvironment();” is called.
However, I can only trace back to “quadruped.h” and can’t find the definition of “InitEnvironment()”. Do you have it?
I suspect it may be a version issue with “Unitree_legged_sdk”. May I ask which version you’re using?
@antonilo @ashish-kmr Hi, Thank you for sharing the code. However, I encountered a problem when deploying and would like to ask for your advice. The error message is “lock memory failed”, I have added the permissions as you said, and also tried “sudo su”, but it still doesn’t work. I traced it back to line 311 in “src/agile_locomotion/controller/src/agile_locomotion.cpp” where “InitEnvironment();” is called.