Skip to content

Instantly share code, notes, and snippets.

@FirefoxMetzger
Created Jan 19, 2020
Embed
What would you like to do?
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