Skip to content

Instantly share code, notes, and snippets.

@FirefoxMetzger
Created January 19, 2020 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirefoxMetzger/01e9da90ccdb8abfc8737c6ec0da1232 to your computer and use it in GitHub Desktop.
Save FirefoxMetzger/01e9da90ccdb8abfc8737c6ec0da1232 to your computer and use it in GitHub Desktop.
Build script for the panda gazebo simulator
#!/bin/bash
# generate the .urdf
docker run --rm -v ${PWD}/assets/panda_xacro:/xacro osrf/ros:kinetic-desktop-full rosrun xacro xacro --inorder /xacro/panda_arm_hand.urdf.xacro > ${PWD}/assets/catkin_ws/src/panda_description/urdf/panda.urdf
# build the ROS packages
docker run --rm -it -v ${PWD}/assets/catkin_ws:/catkin_ws osrf/ros:kinetic-desktop-full-xenial bash -c "apt update && apt install -y python-catkin-tools && cd /catkin_ws && catkin build"
# Build the image
docker build -t panda_gazebo_sim:latest ${PWD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment