-
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.
Merge commit '33d78d891f05452bffc2d8a2509cd2dd70dae6c7'
- Loading branch information
Showing
12 changed files
with
239 additions
and
52 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,13 @@ | ||
source ~/ws_ros1/devel/setup.bash | ||
roslaunch pet_mk_iv_simulation pet_play_yard-01.launch | ||
roslaunch pet_mk_iv_simulation pet_play_yard-02.launch | ||
roslaunch pet_mk_iv_simulation pet_play_yard-02.launch | ||
roslaunch pet_mk_iv_simulation testrun_01_avoid-wall-line-stop.launch | ||
roslaunch pet_mk_iv_simulation spawn_pet_mk_iv.launch | ||
rosrun pet_mk_iv_mission_control testrun_00_line-stop.py | ||
rosrun pet_mk_iv_mission_control testrun_01_avoid-wall-line-stop.py | ||
rosrun pet_mk_iv_mission_control rosrun pet_mk_iv_mission_control | ||
roslaunch pet_mk_iv_description rviz.launch | ||
rqt_graph | ||
env|grep ROS | ||
env|grep GAZEBO |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,57 @@ | ||
# Launch [Builds, (re)creates, starts] with: | ||
# $ docker compose build | ||
# $ docker compose build --no-cache | ||
# $ docker compose up -d | ||
|
||
# Connect shell/bash by: | ||
# $ docker exec -it pet-mk-iv-simulation_container bash | ||
|
||
# Remove | ||
# $ docker compose down | ||
|
||
version: "3" | ||
# Launch [Builds, (re)creates, starts] using $ docker compose | ||
# | ||
# Prerequisite - On docker host: | ||
# I) That '$ xhost local:docker' is run before container is started - To enable GUI/X11 applications inside container | ||
#---------------------- | ||
# Commands: | ||
# 1) Enable X11 from inside the Docker Image/Container | ||
# $ xhost local:docker | ||
# | ||
# 2a) Create/Start Container from Image : | ||
# $ docker compose up --detach --build | ||
# 2b) List running/active/paused | ||
# $ docker compose ps -all | ||
# | ||
# 3) Connect bash to existing/new container: | ||
# $ docker exec -it jazzy-full-pico-container bash | ||
# OR | ||
# $ ./docker_exec.sh | ||
# | ||
# 4) Stop, or remove, your container once you've finished with them. | ||
# $ docker conpose pause / unpause | ||
# $ docker compose stop / start | ||
# $ docker compose down (stop & remove container) | ||
# $ docker container kill pet-mk-iv-simulation_container | ||
# $ docker container prune | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
# | ||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
#---------------------- | ||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
services: | ||
ros1: | ||
build: . | ||
image: kullken/ros1_amd64:pet-mk-iv-simulation | ||
container_name: pet-mk-iv-simulation_container | ||
labels: | ||
- "se.pet-series.description=ROS1 Noetic for Pet-Mk.IV(label)" | ||
deploy: | ||
labels: | ||
- "se.pet-series.description=ROS1 Noetic for Pet-Mk.IV(service)" | ||
build: . | ||
environment: | ||
- DISPLAY=${DISPLAY} | ||
privileged: true | ||
# devices: | ||
# - "/dev/ttyUSB0:/dev/ttyUSB0" # USB | ||
# - "/dev/gpiomem:/dev/gpiomem" # GPIO | ||
# - "/dev/i2c-1:/dev/i2c-1" # I2C-1 | ||
# - "/dev/i2c-2:/dev/i2c-2" # I2C-2 | ||
# - "/dev/spidev0.0:/dev/spidev0.0" # SPI.0 | ||
# - "/dev/spidev0.1:/dev/spidev0.1" # SPI.1 | ||
network_mode: "host" | ||
# networks: | ||
# - hostnet | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
# - /home/pi/ws_ros2:/home/pet/ws_ros2:rw | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
# restart: always | ||
# restart: unless-stopped | ||
# command: [ "roscore" ] | ||
|
||
#networks: | ||
# hostnet: | ||
# external: true | ||
# name: host | ||
# command: [ "roscore" ] |
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,49 @@ | ||
# Launch [Builds, (re)creates, starts] with: | ||
# $ docker compose --file docker-compose_testrun.yml up | ||
# | ||
# Connect shell/bash by: | ||
# $ xhost local:docker | ||
# $ docker exec -it pet-mk-iv-simulation_container bash | ||
# | ||
# Remove | ||
# $ docker compose down | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
services: | ||
spawn-world: | ||
user: pet | ||
build: . | ||
image: kullken/ros1_amd64:pet-mk-iv-simulation | ||
container_name: pet-mk-iv-simulation_world_container | ||
labels: | ||
- "se.pet-series.description=ROS1 Noetic for Pet-Mk.IV(label)" | ||
deploy: | ||
labels: | ||
- "se.pet-series.description=ROS1 Noetic for Pet-Mk.IV(service)" | ||
environment: | ||
- DISPLAY=${DISPLAY} | ||
privileged: true | ||
network_mode: "host" | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
#command: bash -c "ls -l && pwd && whoami" | ||
#command: bash | ||
#command: roslaunch pet_mk_iv_simulation spawn_pet_mk_iv.launch | ||
#command: source ~/.bashrc && roslaunch pet_mk_iv_description rviz.launch | ||
#command: rosrun pet_mk_iv_mission_control testrun_01_avoid-wall-line-stop.py | ||
#entrypoint: bash -c "~/.bashrc && roslaunch pet_mk_iv_simulation pet_play_yard-02.launch" | ||
#entrypoint: bash -c "source ~/ws_ros1/devel/setup.bash && roslaunch pet_mk_iv_simulation pet_play_yard-02.launch" | ||
#entrypoint: bash -c "source /home/pet/ws_ros1/devel/setup.bash && roslaunch pet_mk_iv_simulation pet_play_yard-03.launch" | ||
#entrypoint: bash -c "../.bashrc && roslaunch pet_mk_iv_description rviz.launch" | ||
entrypoint: bash |
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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/bin/bash | ||
# Build Dockerfile in the same directory | ||
# https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
docker build --tag kullken/ros1_amd64:pet-mk-iv-simulation . |
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,14 @@ | ||
#!/bin/bash | ||
# Start bash in existing container (Status Up/Paused). | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
docker exec -it pet-mk-iv-simulation_container bash |
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,17 @@ | ||
#!/bin/bash | ||
# Start bash in existing container (Status Up/Paused). | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
docker exec -it pet-mk-iv-simulation_container bash -c "source /home/pet/ws_ros1/devel/setup.bash && roslaunch pet_mk_iv_simulation pet_play_yard-02.launch" | ||
docker exec -it pet-mk-iv-simulation_container bash -c "source /home/pet/ws_ros1/devel/setup.bash && roslaunch pet_mk_iv_simulation spawn_pet_mk_iv.launch" | ||
docker exec -it pet-mk-iv-simulation_container bash -c "source /home/pet/ws_ros1/devel/setup.bash && roslaunch pet_mk_iv_description rviz.launch" | ||
docker exec -it pet-mk-iv-simulation_container bash -c "source /home/pet/ws_ros1/devel/setup.bash && rosrun pet_mk_iv_mission_control testrun_01_avoid-wall-line-stop.py" |
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,16 @@ | ||
#!/bin/bash | ||
# Stop and remove Docker-container | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# More info: https://github.com/Pet-Series/pet_docker | ||
# More info: https://hub.docker.com/repositories/kullken | ||
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
docker container stop pet-mk-iv-simulation_container | ||
docker container kill pet-mk-iv-simulation_container | ||
docker container rm pet-mk-iv-simulation_container |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#!/bin/bash | ||
# Push a Docker Image to DockerHub repository. | ||
# https://hub.docker.com/repositories/kullken | ||
# https://hub.docker.com/repository/docker/kullken/ros1_amd64 | ||
#---------------------- | ||
# Maintainer: stefan.kull@gmail.com | ||
# Licens: MIT | ||
# https://github.com/Pet-Series | ||
|
||
# "noetic" = ROS1 | ||
# "focal" = Ubuntu 20.04 | ||
|
||
# docker login -u "kullken" -p "@@@@@@@@" docker.io | ||
docker push kullken/ros1_amd64:pet-mk-iv-simulation |
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
Oops, something went wrong.