forked from yfzhang/vehicle-motion-forecasting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
6,929 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ls | ||
python test_traj.py | ||
source /opt/ros/kinetic/setup.bash | ||
python test_traj.py | ||
ls | ||
pwd | ||
ls | ||
cd data/test_irl/demo_0/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
.ipynb_checkpoints/ | ||
__pycache__/ | ||
data/ | ||
exp/ | ||
exp/ | ||
.ros/ | ||
.python_history | ||
.visdom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM pytorch/pytorch:0.4.1-cuda9-cudnn7-devel | ||
ENV TZ=US/Michigan | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
x11-apps \ | ||
mesa-utils \ | ||
libgl1-mesa-glx \ | ||
apt-utils \ | ||
python \ | ||
wget \ | ||
lsb-release \ | ||
git | ||
|
||
RUN apt-get update && apt-get -y install rsync | ||
|
||
RUN pip install cython numpy==1.15.4 | ||
RUN pip install numba==0.50.1 matplotlib==2.1.2 | ||
RUN pip install scipy==1.0.0 seaborn==0.9.0 | ||
RUN pip install tqdm==4.19.4 visdom==0.1.8.3 | ||
RUN pip install matplotlib | ||
RUN export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CUDA_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64" | ||
|
||
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - | ||
|
||
|
||
RUN apt-get update && apt-get install -y \ | ||
python-tk \ | ||
ros-kinetic-desktop-full \ | ||
ros-kinetic-move-base \ | ||
ros-kinetic-tf2-sensor-msgs \ | ||
python-rosdep \ | ||
python-rosinstall \ | ||
python-rosinstall-generator \ | ||
build-essential | ||
|
||
RUN rosdep init && rosdep update | ||
WORKDIR /root/catkin_ws | ||
RUN pip install rospkg | ||
# RUN catkin_make | ||
RUN echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc | ||
ENV ROS_MASTER_URI=http://172.17.0.1:11311 | ||
ENV ROS_IP=172.17.0.1 | ||
ENV DISPLAY=unix$DISPLAY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
container_name=$1 | ||
xhost +local: | ||
XAUTH=/home/tribhi/.docker.xauth | ||
touch $XAUTH | ||
if [ ! -f $XAUTH ] | ||
then | ||
xauth_list=$(xauth nlist :0 | sed -e 's/^..../ffff/') | ||
if [ ! -z "$xauth_list" ] | ||
then | ||
echo $xauth_list | xauth -f $XAUTH nmerge - | ||
else | ||
touch $XAUTH | ||
fi | ||
chmod a+r $XAUTH | ||
fi | ||
|
||
docker run -it --net=host\ | ||
--user=$(id -u) \ | ||
--env="DISPLAY=$DISPLAY" \ | ||
--env="QT_X11_NO_MITSHM=1" \ | ||
--env="USER=$USER" \ | ||
--workdir=/home/$USER/ \ | ||
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ | ||
--volume="${PWD}:/home/$USER" \ | ||
--env="XAUTHORITY=$XAUTH" \ | ||
--volume="$XAUTH:$XAUTH" \ | ||
-v "/etc/passwd:/etc/passwd:rw" \ | ||
--gpus all \ | ||
--runtime nvidia \ | ||
--security-opt seccomp=unconfined \ | ||
--name=${container_name} \ | ||
vehmedirl:ros |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters