Skip to content

Commit 7632e41

Browse files
Merge remote-tracking branch 'origin/main' into FixNamespaceCheck
Signed-off-by: Nils-Christian Iseke <nilsmailiseke@gmail.com>
2 parents 19afc9e + 6e58fbe commit 7632e41

File tree

6 files changed

+0
-56
lines changed

6 files changed

+0
-56
lines changed

nav2_bringup/launch/bringup_launch.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def generate_launch_description() -> LaunchDescription:
3535
namespace = LaunchConfiguration('namespace')
3636
slam = LaunchConfiguration('slam')
3737
map_yaml_file = LaunchConfiguration('map')
38-
keepout_mask_yaml_file = LaunchConfiguration('keepout_mask')
39-
speed_mask_yaml_file = LaunchConfiguration('speed_mask')
4038
graph_filepath = LaunchConfiguration('graph')
4139
use_sim_time = LaunchConfiguration('use_sim_time')
4240
params_file = LaunchConfiguration('params_file')
@@ -77,16 +75,6 @@ def generate_launch_description() -> LaunchDescription:
7775
'map', default_value='', description='Full path to map yaml file to load'
7876
)
7977

80-
declare_keepout_mask_yaml_cmd = DeclareLaunchArgument(
81-
'keepout_mask', default_value='',
82-
description='Full path to keepout mask yaml file to load'
83-
)
84-
85-
declare_speed_mask_yaml_cmd = DeclareLaunchArgument(
86-
'speed_mask', default_value='',
87-
description='Full path to speed mask yaml file to load'
88-
)
89-
9078
declare_graph_file_cmd = DeclareLaunchArgument(
9179
'graph',
9280
default_value='', description='Path to the graph file to load'
@@ -245,8 +233,6 @@ def generate_launch_description() -> LaunchDescription:
245233
ld.add_action(declare_namespace_cmd)
246234
ld.add_action(declare_slam_cmd)
247235
ld.add_action(declare_map_yaml_cmd)
248-
ld.add_action(declare_keepout_mask_yaml_cmd)
249-
ld.add_action(declare_speed_mask_yaml_cmd)
250236
ld.add_action(declare_graph_file_cmd)
251237
ld.add_action(declare_use_sim_time_cmd)
252238
ld.add_action(declare_params_file_cmd)

nav2_bringup/launch/tb4_simulation_launch.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ def generate_launch_description() -> LaunchDescription:
5454
slam = LaunchConfiguration('slam')
5555
namespace = LaunchConfiguration('namespace')
5656
map_yaml_file = LaunchConfiguration('map')
57-
keepout_mask_yaml_file = LaunchConfiguration('keepout_mask')
58-
speed_mask_yaml_file = LaunchConfiguration('speed_mask')
5957
graph_filepath = LaunchConfiguration('graph')
6058
use_sim_time = LaunchConfiguration('use_sim_time')
6159
params_file = LaunchConfiguration('params_file')
@@ -100,18 +98,6 @@ def generate_launch_description() -> LaunchDescription:
10098
description='Full path to map file to load',
10199
)
102100

103-
declare_keepout_mask_yaml_cmd = DeclareLaunchArgument(
104-
'keepout_mask',
105-
default_value=os.path.join(bringup_dir, 'maps', f'{MAP_TYPE}_keepout.yaml'),
106-
description='Full path to keepout mask file to load',
107-
)
108-
109-
declare_speed_mask_yaml_cmd = DeclareLaunchArgument(
110-
'speed_mask',
111-
default_value=os.path.join(bringup_dir, 'maps', f'{MAP_TYPE}_speed.yaml'),
112-
description='Full path to speed mask file to load',
113-
)
114-
115101
declare_graph_file_cmd = DeclareLaunchArgument(
116102
'graph',
117103
default_value=os.path.join(bringup_dir, 'graphs', 'turtlebot4_graph.geojson'),
@@ -228,8 +214,6 @@ def generate_launch_description() -> LaunchDescription:
228214
'namespace': namespace,
229215
'slam': slam,
230216
'map': map_yaml_file,
231-
'keepout_mask': keepout_mask_yaml_file,
232-
'speed_mask': speed_mask_yaml_file,
233217
'graph': graph_filepath,
234218
'use_sim_time': use_sim_time,
235219
'params_file': params_file,
@@ -296,8 +280,6 @@ def generate_launch_description() -> LaunchDescription:
296280
ld.add_action(declare_namespace_cmd)
297281
ld.add_action(declare_slam_cmd)
298282
ld.add_action(declare_map_yaml_cmd)
299-
ld.add_action(declare_keepout_mask_yaml_cmd)
300-
ld.add_action(declare_speed_mask_yaml_cmd)
301283
ld.add_action(declare_graph_file_cmd)
302284
ld.add_action(declare_use_sim_time_cmd)
303285
ld.add_action(declare_params_file_cmd)

nav2_docking/opennav_docking/src/docking_server.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ DockingServer::on_configure(const rclcpp_lifecycle::State & state)
6666

6767
RCLCPP_INFO(get_logger(), "Controller frequency set to %.4fHz", controller_frequency_);
6868

69-
// Check the dock_backwards deprecated parameter
7069
bool dock_backwards = false;
7170
try {
7271
if (get_parameter("dock_backwards", dock_backwards)) {

nav2_docking/opennav_docking/test/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,3 @@ ament_add_pytest_test(test_docking_server_backward test_docking_server.py
128128
NON_CHARGING_DOCK=False
129129
BACKWARD=True
130130
)
131-
132-
ament_add_pytest_test(test_docking_server_backward_blind test_docking_server.py
133-
ENV
134-
NON_CHARGING_DOCK=False
135-
BACKWARD_BLIND=True
136-
)

nav2_docking/opennav_docking/test/docking_params.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ docking_server:
99
plugin: opennav_docking::SimpleChargingDock
1010
use_battery_status: True
1111
dock_direction: forward
12-
rotate_to_dock: False
1312
staging_yaw_offset: 0.0
1413
docks: [test_dock]
1514
test_dock:

nav2_docking/opennav_docking/test/test_docking_server.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ def generate_test_description() -> LaunchDescription:
6767
param_substitutions.update({'dock_direction': 'backward'})
6868
param_substitutions.update({'staging_yaw_offset': '3.14'})
6969

70-
if os.getenv('BACKWARD_BLIND') == 'True':
71-
param_substitutions.update({'dock_direction': 'backward'})
72-
param_substitutions.update({'rotate_to_dock': 'True'})
73-
7470
configured_params = RewrittenYaml(
7571
source_file=params_file,
7672
root_key='',
@@ -156,7 +152,6 @@ def publish(self) -> None:
156152
t.transform.rotation.z = sin(self.theta / 2.0)
157153
t.transform.rotation.w = cos(self.theta / 2.0)
158154
self.tf_broadcaster.sendTransform(t)
159-
self.publish_odometry(t)
160155
# Publish the battery state if we are using a charging dock
161156
if os.getenv('NON_CHARGING_DOCK') == 'False':
162157
b = BatteryState()
@@ -166,17 +161,6 @@ def publish(self) -> None:
166161
b.current = -1.0
167162
self.battery_state_pub.publish(b)
168163

169-
def publish_odometry(self, odom_to_base_link: TransformStamped) -> None:
170-
odom = Odometry()
171-
odom.header.stamp = self.node.get_clock().now().to_msg()
172-
odom.header.frame_id = 'odom'
173-
odom.child_frame_id = 'base_link'
174-
odom.pose.pose.position.x = odom_to_base_link.transform.translation.x
175-
odom.pose.pose.position.y = odom_to_base_link.transform.translation.y
176-
odom.pose.pose.orientation = odom_to_base_link.transform.rotation
177-
odom.twist.twist = self.command
178-
self.odom_pub.publish(odom)
179-
180164
def action_feedback_callback(self, msg: DockRobot.Feedback) -> None:
181165
# Force the docking action to run a full recovery loop and then
182166
# make contact with the dock (based on pose of robot) before

0 commit comments

Comments
 (0)