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..):

  1. clone the Horizon repo in your workspace.
  2. download the docker: docker pull francescoruscelli/horizon
  3. run the docker from your machine: ./horizon/docker/run.sh
  4. 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
  5. 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.

Spoiler:
_images/spot_leap_gif.gif