File tree Expand file tree Collapse file tree 5 files changed +39
-10
lines changed
nav2_gps_waypoint_follower_demo/config
include/nav2_sms_behavior
sam_bot_description/config Expand file tree Collapse file tree 5 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 1
- # GPS WPF CHANGES:
1
+ # GPS WPF CHANGES:
2
2
# - amcl params where removed. They are not needed because global localization is provided
3
3
# by an ekf node on robot_localization fusing gps data with local odometry sources
4
4
# - static layer is removed from both costmaps, in this tutorial we assume there is no map
@@ -74,9 +74,19 @@ bt_navigator:
74
74
- nav2_assisted_teleop_cancel_bt_node
75
75
- nav2_drive_on_heading_cancel_bt_node
76
76
- nav2_is_battery_charging_condition_bt_node
77
- error_code_names :
78
- - compute_path_error_code
79
- - follow_path_error_code
77
+ error_code_name_prefixes :
78
+ - assisted_teleop
79
+ - backup
80
+ - compute_path
81
+ - dock_robot
82
+ - drive_on_heading
83
+ - follow_path
84
+ - nav_thru_poses
85
+ - nav_to_pose
86
+ - route
87
+ - spin
88
+ - undock_robot
89
+ - wait
80
90
81
91
controller_server :
82
92
ros__parameters :
@@ -200,7 +210,7 @@ global_costmap:
200
210
robot_radius : 0.22
201
211
resolution : 0.1
202
212
# When using GPS navigation you will potentially traverse huge environments which are not practical to
203
- # fit on a big static costmap. Thus it is recommended to use a rolling global costmap large enough to
213
+ # fit on a big static costmap. Thus it is recommended to use a rolling global costmap large enough to
204
214
# contain each pair of successive waypoints. See: https://github.com/ros-planning/navigation2/issues/2174
205
215
rolling_window : True
206
216
width : 50
Original file line number Diff line number Diff line change 2
2
string message
3
3
---
4
4
#result definition
5
+
6
+ # Error codes
7
+ # Note: The expected priority order of the errors should match the message order
8
+ uint16 NONE =0
9
+ uint16 UNKNOWN =51110
10
+ uint16 SMS_SEND_FAILED =51111
11
+
5
12
builtin_interfaces/Duration total_elapsed_time
6
13
uint16 error_code
14
+ string error_msg
7
15
---
8
16
#feedback definition
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ namespace nav2_sms_behavior
17
17
18
18
using namespace nav2_behaviors ; // NOLINT
19
19
using Action = nav2_sms_behavior::action::SendSms;
20
+ using ActionResult = Action::Result;
20
21
21
22
class SendSms : public TimedBehavior <Action>
22
23
{
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ ResultStatus SendSms::onRun(const std::shared_ptr<const Action::Goal> command)
45
45
" " ,
46
46
false );
47
47
if (!message_success) {
48
- RCLCPP_INFO (node->get_logger (), " SMS send failed. " );
49
- return ResultStatus{Status::FAILED};
48
+ RCLCPP_INFO (node->get_logger (), " SMS send failed: %s. " , response. c_str () );
49
+ return ResultStatus{Status::FAILED, ActionResult::SMS_SEND_FAILED, response };
50
50
}
51
51
52
52
RCLCPP_INFO (node->get_logger (), " SMS sent successfully!" );
Original file line number Diff line number Diff line change @@ -61,9 +61,19 @@ bt_navigator:
61
61
# Built-in plugins are added automatically
62
62
# plugin_lib_names: []
63
63
64
- error_code_names :
65
- - compute_path_error_code
66
- - follow_path_error_code
64
+ error_code_name_prefixes :
65
+ - assisted_teleop
66
+ - backup
67
+ - compute_path
68
+ - dock_robot
69
+ - drive_on_heading
70
+ - follow_path
71
+ - nav_thru_poses
72
+ - nav_to_pose
73
+ - route
74
+ - spin
75
+ - undock_robot
76
+ - wait
67
77
68
78
controller_server :
69
79
ros__parameters :
You can’t perform that action at this time.
0 commit comments