Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first push #496

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "liosam-humble-jammy",
// "dockerComposeFile": [
// "docker-compose.yml"
// ],
"dockerFile": "../Dockerfile",
"build": {
"args": {
"USE_RVIZ": "1"
}
},
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"ROS_DOMAIN_ID": "45"
},
"service": "liosam-humble-jammy-container",
"workspaceFolder": "/root/ros2_ws",
"extensions": [
"ms-azuretools.vscode-docker",
"ms-iot.vscode-ros",
"ms-python.python"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"remoteUser": "root"
}
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM osrf/ros:humble-desktop-full-jammy
# FROM osrf/ros:humble-desktop-full-jammy

ARG ROS_DISTRO=humble
FROM ros:${ROS_DISTRO}-ros-base

RUN apt-get update \
&& apt-get install -y curl \
Expand All @@ -21,6 +24,8 @@ RUN apt-get update \
&& apt install -y libgtsam-dev libgtsam-unstable-dev \
&& rm -rf /var/lib/apt/lists/*

RUN if [ "$USE_RVIZ" = "1" ] ; then echo "RVIZ ENABLED" && sudo apt install -y ros-${ROS_DISTRO}-rviz2 ros-${ROS_DISTRO}-rviz-imu-plugin ; else echo "RVIZ NOT ENABLED"; fi

SHELL ["/bin/bash", "-c"]

RUN mkdir -p ~/ros2_ws/src \
Expand Down