Skip to content

Commit 05300d7

Browse files
authored
Merge pull request #3 from JBVAkshaya/iron-mp-tmp
2 parents d440679 + b056f1d commit 05300d7

24 files changed

+125
-654
lines changed

.devcontainer/nvidia/Dockerfile

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM ghcr.io/jbvakshaya/blue:iron-nvidia-ompl
1+
# FROM ghcr.io/jbvakshaya/blue:iron-nvidia-ompl
2+
FROM ghcr.io/jbvakshaya/blue:iron-nvidia-multi-robots-recent
3+
# With above image we probably don't need to install any other dependencies
4+
25
# FROM ghcr.io/robotic-decision-making-lab/blue:iron-desktop-nvidia
36

47
# Install ROS dependencies
@@ -9,19 +12,19 @@ ENV USER_WORKSPACE=/home/$USERNAME/ws_blue
912
WORKDIR $USER_WORKSPACE
1013

1114
COPY --chown=$USER_UID:$USER_GID . src/blue
12-
RUN sudo apt-get -q update \
13-
&& sudo apt-get -q -y upgrade \
14-
&& rosdep update \
15-
&& rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys="gz-transport12 gz-sim7 gz-math7 gz-msgs9 gz-plugin2" \
16-
&& sudo apt-get autoremove -y \
17-
&& sudo apt-get clean -y \
18-
&& sudo rm -rf /var/lib/apt/lists/*
19-
20-
# Install OMPL with ROS2
21-
RUN curl http://repo.ros2.org/repos.key | sudo apt-key add -\
22-
&& sudo apt-get update \
23-
&& sudo apt-get install -y nano \
24-
&& sudo apt-get install -y ros-iron-ompl
15+
# RUN sudo apt-get -q update \
16+
# && sudo apt-get -q -y upgrade \
17+
# && rosdep update \
18+
# && rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys="gz-transport12 gz-sim7 gz-math7 gz-msgs9 gz-plugin2" \
19+
# && sudo apt-get autoremove -y \
20+
# && sudo apt-get clean -y \
21+
# && sudo rm -rf /var/lib/apt/lists/*
22+
23+
# # Install OMPL with ROS2
24+
# RUN curl http://repo.ros2.org/repos.key | sudo apt-key add -\
25+
# && sudo apt-get update \
26+
# && sudo apt-get install -y nano \
27+
# && sudo apt-get install -y ros-iron-ompl
2528

2629
# RUN cd ${USER_WORKSPACE}/src/learn_ros2 \
2730
# && echo "Check me" \

blue_bringup/launch/bluerov2_heavy/ns_bluerov2_heavy.launch.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ launch:
7979
default: "1"
8080

8181
- arg:
82-
name: rob_x
82+
name: init_rob_x
8383
default: "0.0"
8484

8585
- arg:
86-
name: rob_y
86+
name: init_rob_y
8787
default: "0.0"
8888

8989
- arg:
90-
name: rob_z
90+
name: init_rob_z
9191
default: "0.0"
9292

9393
# Nodes
@@ -134,12 +134,12 @@ launch:
134134
value: $(var ardusub_instance)
135135
- name: sysid_thismav
136136
value: $(var sysid_thismav)
137-
- name: rob_x
138-
value: $(var rob_x)
139-
- name: rob_y
140-
value: $(var rob_y)
141-
- name: rob_z
142-
value: $(var rob_z)
137+
- name: init_rob_x
138+
value: $(var init_rob_x)
139+
- name: init_rob_y
140+
value: $(var init_rob_y)
141+
- name: init_rob_z
142+
value: $(var init_rob_z)
143143

144144
- include:
145145
file: $(find-pkg-share blue_localization)/localization.launch.py

blue_demos/control_integration/config/bluerov2_heavy_joint_traj_controller.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ jt_controller:
6565
- position
6666
- velocity
6767

68-
action_monitor_rate: 20.0
69-
70-
allow_partial_joints_goal: true
7168
open_loop_control: true
7269
constraints:
7370
stopped_velocity_tolerance: 0.01

blue_demos/control_integration/description/ros2_control/bluerov2_heavy.ros2_control.xacro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@
6868
</joint>
6969

7070
</ros2_control>
71-
<xacro:if value="${use_mavros_odom}">
72-
<ros2_control name="MavrosOdomSensor" type="sensor">
73-
<hardware>
74-
<plugin>mavros_odom_sensor/MavrosOdomSensor</plugin>
75-
<param name="max_set_param_attempts">${max_set_param_attempts}</param>
76-
<param name="mavros_odom_topic">${mavros_odom_topic}</param>
77-
<param name="namespace">${prefix}</param>
78-
</hardware>
79-
</ros2_control>
80-
</xacro:if>
8171

8272
</xacro:macro>
8373

blue_demos/multi_robot/control_integration/launch/rob_1_bluerov2_heavy_controllers.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024, Evan Palmer
1+
# Copyright 2024, Akshaya Agrawal
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

blue_demos/multi_robot/control_integration/launch/rob_1_bluerov2_heavy_demo.launch.yaml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ launch:
4141
value: "1"
4242

4343
- let:
44-
name: rob_x
45-
value: "0.0"
44+
name: init_rob_x
45+
value: "-3.0"
4646

4747
- let:
48-
name: rob_y
49-
value: "4.0"
48+
name: init_rob_y
49+
value: "-3.0"
5050

5151
- let:
52-
name: rob_z
52+
name: init_rob_z
5353
value: "0.0"
5454

5555
- let:
@@ -64,14 +64,6 @@ launch:
6464
name: fdm_port_out
6565
value: "9003"
6666

67-
- let:
68-
name: use_mavros_odom
69-
value: "true"
70-
71-
- let:
72-
name: mavros_odom_topic
73-
value: /rob_1/local_position/odom
74-
7567
- group:
7668
- push-ros-namespace:
7769
namespace: "$(var namespace)"
@@ -82,7 +74,7 @@ launch:
8274

8375
- let:
8476
name: robot_description
85-
value: $(command 'xacro $(var description_file) prefix:=$(var prefix) use_sim:=$(var use_sim) fdm_port_in:=$(var fdm_port_in) fdm_port_out:=$(var fdm_port_out) use_mavros_odom:=$(var use_mavros_odom) mavros_odom_topic:=$(var mavros_odom_topic)')
77+
value: $(command 'xacro $(var description_file) prefix:=$(var prefix) use_sim:=$(var use_sim) fdm_port_in:=$(var fdm_port_in) fdm_port_out:=$(var fdm_port_out)')
8678

8779
- include:
8880
file: $(find-pkg-share blue_bringup)/launch/bluerov2_heavy/ns_bluerov2_heavy.launch.yaml
@@ -103,16 +95,16 @@ launch:
10395
value: $(var sysid_thismav)
10496
- name: localization_file
10597
value: $(var localization_file)
106-
- name: rob_x
107-
value: $(var rob_x)
108-
- name: rob_y
109-
value: $(var rob_y)
110-
- name: rob_z
111-
value: $(var rob_z)
112-
113-
#Spawn obstacles
98+
- name: init_rob_x
99+
value: $(var init_rob_x)
100+
- name: init_rob_y
101+
value: $(var init_rob_y)
102+
- name: init_rob_z
103+
value: $(var init_rob_z)
104+
105+
#Spawn obstacles and bridge them to ROS
114106
- include:
115-
file: $(find-pkg-share blue_demos)/control_integration/launch/obstacles.launch.yaml
107+
file: $(find-pkg-share blue_demos)/multi_robot/control_integration/launch/obstacles.launch.yaml
116108
arg:
117109
- name: gazebo_world_file
118110
value: $(var gazebo_world_file)

blue_demos/multi_robot/control_integration/launch/rob_3_bluerov2_heavy_controllers.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024, Evan Palmer
1+
# Copyright 2024, Akshaya Agrawal
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

blue_demos/multi_robot/control_integration/launch/rob_3_bluerov2_heavy_demo.launch.yaml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ launch:
2222

2323
- arg:
2424
name: mavros_file
25-
default: $(find-pkg-share blue_description)/config/ardusub/rob_3_mavros.yaml
25+
default: $(find-pkg-share blue_demos)/multi_robot/description/config/ardusub/rob_3_mavros.yaml
2626

2727
- let:
2828
name: manager_file
29-
value: $(find-pkg-share blue_description)/config/ardusub/ROB_3_ardusub_manager.yaml
29+
value: $(find-pkg-share blue_demos)/multi_robot/description/config/ardusub/rob_3_ardusub_manager.yaml
3030

3131
- let:
3232
name: localization_file
33-
value: $(find-pkg-share blue_description)/config/bluerov2_heavy/ROB_3_localization.yaml
33+
value: $(find-pkg-share blue_demos)/multi_robot/description/config/bluerov2_heavy/rob_3_localization.yaml
3434

3535
- let:
3636
name: ardusub_instance
@@ -41,15 +41,15 @@ launch:
4141
value: "2"
4242

4343
- let:
44-
name: rob_x
44+
name: init_rob_x
4545
value: "0.0"
4646

4747
- let:
48-
name: rob_y
48+
name: init_rob_y
4949
value: "0.0"
5050

5151
- let:
52-
name: rob_z
52+
name: init_rob_z
5353
value: "0.0"
5454

5555
- let:
@@ -95,16 +95,9 @@ launch:
9595
value: $(var sysid_thismav)
9696
- name: localization_file
9797
value: $(var localization_file)
98-
- name: rob_x
99-
value: $(var rob_x)
100-
- name: rob_y
101-
value: $(var rob_y)
102-
- name: rob_z
103-
value: $(var rob_z)
104-
105-
#Spawn obstacles
106-
# - include:
107-
# file: $(find-pkg-share blue_demos)/control_integration/launch/obstacles.launch.yaml
108-
# arg:
109-
# - name: gazebo_world_file
110-
# value: $(var gazebo_world_file)
98+
- name: init_rob_x
99+
value: $(var init_rob_x)
100+
- name: init_rob_y
101+
value: $(var init_rob_y)
102+
- name: init_rob_z
103+
value: $(var init_rob_z)

blue_demos/multi_robot/description/config/ardusub/rob_1_ardusub_manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ rob_1:
55
ids: [31, 32]
66
rates: [50.0, 50.0]
77
set_ekf_origin: true
8-
publish_tf: false
8+
publish_tf: true
99
prefix: "rob_1/"

0 commit comments

Comments
 (0)