-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating docker for l4t 36.4.0, added gui option to robot launch file * added calculation of ROS_DOMAIN_ID and ROBOT_NAME to bashrc for real robot, added sim argument to robot launch file for setting use_sime_time and launching guis, added behavior tree visualization topic to domain bridge * created sim and real ground-control-station extending from same base. they just have differences in their networks. configured some topics for domain bridge * added mavros to robot launch for real drone. tested communication is working between desktop and drone. commands set from the gui are getting to mavros * fixed slow moving trajetory controller bug, cleaned up robot launch and tested that it works in sim and on the real drone
- Loading branch information
Showing
11 changed files
with
130 additions
and
69 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 |
---|---|---|
@@ -1,52 +1,24 @@ | ||
services: | ||
ground-control-station: | ||
image: &gcs_image ${PROJECT_DOCKER_REGISTRY}/${PROJECT_NAME}:v${PROJECT_VERSION}_gcs | ||
build: | ||
context: ../ | ||
dockerfile: docker/Dockerfile.gcs | ||
tags: | ||
- *gcs_image | ||
container_name: ground-control-station | ||
entrypoint: "" | ||
command: > | ||
bash -c "ssh service restart; | ||
tmux new -d -s gcs_bringup | ||
&& tmux send-keys -t gcs_bringup | ||
'if [ ! -f "/root/ros_ws/install/setup.bash" ]; then bws && sws; fi; | ||
ros2 launch gcs_bringup gcs.launch.xml' ENTER | ||
&& sleep infinity" | ||
# Interactive shell | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
# Needed to display graphical applications | ||
# ipc: host | ||
privileged: true | ||
profiles: | ||
- "" | ||
- sitl | ||
extends: | ||
file: ./ground-control-station-base-docker-compose.yaml | ||
service: ground-control-station-base | ||
networks: | ||
- airstack_network | ||
environment: | ||
- DISPLAY | ||
- QT_X11_NO_MITSHM=1 | ||
deploy: | ||
# let it use the GPU | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia # https://stackoverflow.com/a/70761193 | ||
count: 1 | ||
capabilities: [gpu] | ||
ports: | ||
- 2222:22 # for ssh | ||
volumes: | ||
# display stuff | ||
- $HOME/.Xauthority:/root/.Xauthority | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
# developer stuff | ||
- .bashrc:/root/.bashrc:rw # bash config | ||
- /var/run/docker.sock:/var/run/docker.sock # access docker API for container name | ||
# autonomy stack stuff | ||
- ../../common/ros_packages:/root/ros_ws/src/common:rw # common ROS packages | ||
- ../ros_ws:/root/ros_ws:rw # gcs-specific ROS packages | ||
- ../../common/ros_packages/fastdds.xml:/root/ros_ws/fastdds.xml:rw # fastdds.xml | ||
|
||
ground-control-station-real: | ||
profiles: | ||
- hitl | ||
- deploy | ||
extends: | ||
file: ./ground-control-station-base-docker-compose.yaml | ||
service: ground-control-station-base | ||
network_mode: host | ||
|
||
# include: | ||
# - ./tak-docker-compose.yaml |
46 changes: 46 additions & 0 deletions
46
ground_control_station/docker/ground-control-station-base-docker-compose.yaml
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,46 @@ | ||
# docker compose file | ||
services: | ||
ground-control-station-base: | ||
image: &gcs_image ${PROJECT_DOCKER_REGISTRY}/${PROJECT_NAME}:v${PROJECT_VERSION}_gcs | ||
build: | ||
context: ../ | ||
dockerfile: docker/Dockerfile.gcs | ||
tags: | ||
- *gcs_image | ||
container_name: ground-control-station | ||
entrypoint: "" | ||
command: > | ||
bash -c "ssh service restart; | ||
tmux new -d -s gcs_bringup | ||
&& tmux send-keys -t gcs_bringup | ||
'if [ ! -f "/root/ros_ws/install/setup.bash" ]; then bws && sws; fi; | ||
ros2 launch gcs_bringup gcs.launch.xml' ENTER | ||
&& sleep infinity" | ||
# Interactive shell | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
# Needed to display graphical applications | ||
# ipc: host | ||
privileged: true | ||
environment: | ||
- DISPLAY | ||
- QT_X11_NO_MITSHM=1 | ||
deploy: | ||
# let it use the GPU | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia # https://stackoverflow.com/a/70761193 | ||
count: 1 | ||
capabilities: [gpu] | ||
volumes: | ||
# display stuff | ||
- $HOME/.Xauthority:/root/.Xauthority | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
# developer stuff | ||
- .bashrc:/root/.bashrc:rw # bash config | ||
- /var/run/docker.sock:/var/run/docker.sock # access docker API for container name | ||
# autonomy stack stuff | ||
- ../../common/ros_packages:/root/ros_ws/src/common:rw # common ROS packages | ||
- ../ros_ws:/root/ros_ws:rw # gcs-specific ROS packages | ||
- ../../common/ros_packages/fastdds.xml:/root/ros_ws/fastdds.xml:rw # fastdds.xml |
25 changes: 20 additions & 5 deletions
25
ground_control_station/ros_ws/src/gcs_bringup/config/domain_bridge.yaml
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,11 +1,26 @@ | ||
name: my_bridge | ||
from_domain: 0 | ||
to_domain: 1 | ||
topics: | ||
/robot_1/behavior/behavior_tree_commands: | ||
type: behavior_tree_msgs/msg/BehaviorTreeCommands | ||
from_domain: 0 | ||
to_domain: 1 | ||
/robot_2/behavior/behavior_tree_commands: | ||
type: behavior_tree_msgs/msg/BehaviorTreeCommands | ||
from_domain: 0 | ||
to_domain: 2 | ||
/robot_3/behavior/behavior_tree_commands: | ||
type: behavior_tree_msgs/msg/BehaviorTreeCommands | ||
from_domain: 0 | ||
to_domain: 3 | ||
/robot_1/fixed_trajectory_generator/fixed_trajectory_command: | ||
type: airstack_msgs/msg/FixedTrajectory | ||
/robot_1/behavior/behavior_tree_graphviz: | ||
type: std_msgs/msg/String | ||
reversed: True | ||
from_domain: 0 | ||
to_domain: 1 | ||
/robot_2/fixed_trajectory_generator/fixed_trajectory_command: | ||
type: airstack_msgs/msg/FixedTrajectory | ||
from_domain: 0 | ||
to_domain: 2 | ||
/robot_3/fixed_trajectory_generator/fixed_trajectory_command: | ||
type: airstack_msgs/msg/FixedTrajectory | ||
from_domain: 0 | ||
to_domain: 3 |
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
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
6 changes: 0 additions & 6 deletions
6
robot/ros_ws/src/autonomy/5_behavior/behavior_bringup/launch/behavior.launch.xml
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