mit-biomimetics / Cheetah-Software

MIT License
2.56k stars 916 forks source link

SharedMemoryObject::attach shm_open(development-simulator) failed: No such file or directory terminate called after throwing an instance of 'std::runtime_error' what(): Failed to create shared memory! Aborted (core dumped) #50

Open kleinli2020 opened 4 years ago

kleinli2020 commented 4 years ago

SharedMemoryObject::attach shm_open(development-simulator) failed: No such file or directory terminate called after throwing an instance of 'std::runtime_error' what(): Failed to create shared memory! Aborted (core dumped)

Solved: need to click start the mini cheetah in the sim screen then the error will disappear

yanghengyii commented 7 months ago

i meet the same problem. But i cannot understand the solution. what does "click start the mini cheetah" mean? Would you please describle in detail?

stevenjj commented 3 days ago

@yanghengyii : I know it's old, but this might help someone. Before running the controller the sim has to run first:

cd build 
./sim/sim

Then on the left-hand side, select the robot type (e.g. Mini Cheetah) then set to Simulator. Then press Start After that you can run the controller as indicated in the instructions. e.g.:

./user/JPos_Controller/jpos_ctrl 3 s