This code comes from several repositories and has been re-structured to be used easily to start Mikhail KOPTEV's Obstacle Avoidance demo at LASA.
This demo uses 3 dockers :
- franka-lightweight-interface: to be run on the computer connected to the panda, used to communicate with the robot
- optitrack : used to publish optitrack info using zmq, should be run on SAMURAI
- koptev-demo : used to run all python code from Mikhail, should be run on SAMURAI (except franka_zmq_bridge which MAY need to be run on computer connected to panda)
Note : docker commands rely on aica-docker scripts which should be installed on compputers sued for the demo.
- document which adresses need changing (add to config.yaml : zmq: IP: o SAMURAI, panda_PC, link them in ds_mppi scripts )
- load config.yaml in bridge_torque_controller.py (or modif code directly)
- check if possible to run bridge_torque_controller on samurai and communicate with fwli
- remove config_real if not relevant
- make docker compose ?
Open the 3 docker containers :
- fwli on computer connected to panda
- optitrack and koptev-demo on SAMURAI
Make sure the IP adresses are correct and communication runs smoothly. These can be checked in the ds_mppi/config.yaml file
Then run the following commands.
On Panda_PC
cd ~/Workspace/koptev_demo/dependencies/franka-lightweight-interface
bash run-rt.sh
franka_lightweight_interface 17 panda_ --sensitivity low --joint-damping off
On SAMURAI
cd ~/Workspace/koptev_demo/dependencies/optitrack
bash docker-build.sh (IF never build before)
bash docker-run.sh
All the next commands must be run from inside the koptev-demo container, which can be build and start with these commands :
cd ~/Workspace/koptev_demo
bash docker/build-image.sh
bash docker/start-docker.sh
On SAMURAI
cd ~/Workspace/koptev_demo
bash docker/start-docker.sh -m connect
cd franka_zmq_bridge/
python3 bridge_torque_controller.py
On SAMURAI
cd ~/Workspace/koptev_demo
bash docker/start-docker.sh -m connect
cd ds_mppi/
python3 obstacleStreamerOptitrack.py
On Panda_PC (if doesn't slow things down)
cd ~/Workspace/koptev_demo
bash docker/start-docker.sh -m connect
cd ds_mppi/
python3 pbSim.py
On SAMURAI
cd ~/Workspace/koptev_demo
bash docker/start-docker.sh -m connect
cd ds_mppi/
python3 frankaIntegratorFeedback.py
On SAMURAI Planner (optim thingy) for concave obstacles -> do not launch unless you have good computer
cd ~/Workspace/koptev_demo
bash docker/start-docker.sh -m connect
cd ds_mppi/
python3 frankaPlanner.py
Code originally comes from these repos and has been restructured to be easily used :
https://github.com/epfl-lasa/OptimalModulationDS https://github.com/m-koptev/franka_zmq_bridge https://github.com/m-koptev/optitrack_lasa
Mikhail KOPTEV ([email protected]) Maxime GAUTIER ([email protected])