Open henryliangt opened 2 years ago
source ~/ .pyenv/bin/pyenv git clone xxxx.git
cd ~/rx_ws sudo apt install catkin catkin_make
docker built
git checkout -b henry_joy_stuff rostopic list rostopic echo joy
ros
RUN echo "source /opt/ros/noetic/setup.bash" >> /root/.bashrc
RUN echo "[[ -f /rx_ws/devel/setup.bash ]] && source /rx_ws/devel/setup.bash" >> /root/.bashrc
ENV export GENICAM_GENTL64_PATH=$GENICAM_GENTL64_PATH:"/Vimba_6_0/VimbaGigETL/CTI/x86_64bit"
RUN apt-get update && apt install ros-noetic-joy
"mounts": ["type=bind,source=/dev/input/js0,target=/dev/input/js0"],
lsusb
ls /dev/input/
code.
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 5a06c3c..4b1de97 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -81,6 +81,8 @@ RUN echo "[[ -f /rx_ws/devel/setup.bash ]] && source /rx_ws/devel/setup.bash" >>
ENV export GENICAM_GENTL64_PATH=$GENICAM_GENTL64_PATH:"/Vimba_6_0/VimbaGigETL/CTI/x86_64bit"
+RUN apt-get update && apt install ros-noetic-joy +
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 46124f0..0b4e452 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,6 +14,8 @@ "workspaceMount": "source=${localWorkspaceFolder},target=/rx_ws/src/usyd_robotx_2022,type=bind", "workspaceFolder": "/rx_ws/src/usyd_robotx_2022",
// Configure tool-specific properties.
RUN apt-get update && apt install ros-noetic-joy
"mounts": ["type=bind,source=/dev/input/js0,target=/dev/input/js0"],
https://stackoverflow.com/questions/71366286/how-to-mount-dev-bus-usb-on-vscodes-devcontainer-for-docker
http://wiki.ros.org/joy
mount as file, js0, joystick