.. _horizon_docker: Horizon docker ===================== Try Horizon on `Docker `_! .. hint:: If you don't have Docker installed in your system, follow the steps in the official Docker `installation page `_. You will find hands-on demonstrative code detailing the steps to generate an optimization problem (including the commented code of the case-study described in this article), and interactive examples to better appreciate the capabilities of Horizon, (visualizing the robot motions, plotting the optimized trajectories..): #. clone the Horizon `repo `_ in your workspace. #. download the docker: ``docker pull francescoruscelli/horizon`` #. run the docker from your machine: ``./horizon/docker/run.sh`` #. **you are now inside the Horizon docker**. From here, you can play around with the examples available. A list of possible commands: - ``python3 -m horizon.examples.spot --r --action walk`` - ``python3 -m horizon.examples.spot --r --action leap`` - ``python3 -m horizon.examples.cart_pole --r`` - ``python3 -m horizon.examples.roped_robot --r --action rappel`` #. visualize the robot on your browser on this static `webpage `_ .. warning:: The static webpage is generated by the example you are running, which uses an implementation of rviz online to visualize the robot. Without the example running, the webpage cannot be reached. .. container:: toggle .. container:: header Spoiler: .. image:: spot_leap_gif.* | |