Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions nav2_gps_waypoint_follower_demo/config/nav2_no_map_params.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GPS WPF CHANGES:
# GPS WPF CHANGES:
# - amcl params where removed. They are not needed because global localization is provided
# by an ekf node on robot_localization fusing gps data with local odometry sources
# - static layer is removed from both costmaps, in this tutorial we assume there is no map
Expand Down Expand Up @@ -74,9 +74,19 @@ bt_navigator:
- nav2_assisted_teleop_cancel_bt_node
- nav2_drive_on_heading_cancel_bt_node
- nav2_is_battery_charging_condition_bt_node
error_code_names:
- compute_path_error_code
- follow_path_error_code
error_code_name_prefixes:
- assisted_teleop
- backup
- compute_path
- dock_robot
- drive_on_heading
- follow_path
- nav_thru_poses
- nav_to_pose
- route
- spin
- undock_robot
- wait

controller_server:
ros__parameters:
Expand Down Expand Up @@ -200,7 +210,7 @@ global_costmap:
robot_radius: 0.22
resolution: 0.1
# When using GPS navigation you will potentially traverse huge environments which are not practical to
# fit on a big static costmap. Thus it is recommended to use a rolling global costmap large enough to
# fit on a big static costmap. Thus it is recommended to use a rolling global costmap large enough to
# contain each pair of successive waypoints. See: https://github.com/ros-planning/navigation2/issues/2174
rolling_window: True
width: 50
Expand Down
8 changes: 8 additions & 0 deletions nav2_sms_behavior/action/SendSms.action
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
string message
---
#result definition

# Error codes
# Note: The expected priority order of the errors should match the message order
uint16 NONE=0
uint16 UNKNOWN=51110
uint16 SMS_SEND_FAILED=51111

builtin_interfaces/Duration total_elapsed_time
uint16 error_code
string error_msg
---
#feedback definition
1 change: 1 addition & 0 deletions nav2_sms_behavior/include/nav2_sms_behavior/send_sms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace nav2_sms_behavior

using namespace nav2_behaviors; // NOLINT
using Action = nav2_sms_behavior::action::SendSms;
using ActionResult = Action::Result;

class SendSms : public TimedBehavior<Action>
{
Expand Down
4 changes: 2 additions & 2 deletions nav2_sms_behavior/src/send_sms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ ResultStatus SendSms::onRun(const std::shared_ptr<const Action::Goal> command)
"",
false);
if (!message_success) {
RCLCPP_INFO(node->get_logger(), "SMS send failed.");
return ResultStatus{Status::FAILED};
RCLCPP_INFO(node->get_logger(), "SMS send failed: %s.", response.c_str());
return ResultStatus{Status::FAILED, ActionResult::SMS_SEND_FAILED, response};
}

RCLCPP_INFO(node->get_logger(), "SMS sent successfully!");
Expand Down
16 changes: 13 additions & 3 deletions sam_bot_description/config/nav2_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,19 @@ bt_navigator:
# Built-in plugins are added automatically
# plugin_lib_names: []

error_code_names:
- compute_path_error_code
- follow_path_error_code
error_code_name_prefixes:
- assisted_teleop
- backup
- compute_path
- dock_robot
- drive_on_heading
- follow_path
- nav_thru_poses
- nav_to_pose
- route
- spin
- undock_robot
- wait

controller_server:
ros__parameters:
Expand Down