Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into spin_recovery
  • Loading branch information
gimait committed Mar 21, 2020
2 parents 4286923 + 19e5b41 commit 8d5fa2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,12 @@ class BtActionNode : public BT::CoroActionNode
switch (result_.code) {
case rclcpp_action::ResultCode::SUCCEEDED:
on_success();
setStatus(BT::NodeStatus::IDLE);
return BT::NodeStatus::SUCCESS;

case rclcpp_action::ResultCode::ABORTED:
setStatus(BT::NodeStatus::IDLE);
return BT::NodeStatus::FAILURE;

case rclcpp_action::ResultCode::CANCELED:
setStatus(BT::NodeStatus::IDLE);
return BT::NodeStatus::SUCCESS;

default:
Expand Down
8 changes: 4 additions & 4 deletions tools/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# set at the time we start the last step, the ros1_bridge build.

if [ "$ROS2_DISTRO" = "" ]; then
export ROS2_DISTRO=dashing
export ROS2_DISTRO=eloquent
fi
if [ "$ROS2_DISTRO" != "dashing" ]; then
echo "ROS2_DISTRO variable must be set to dashing"
exit 1
if [ "$ROS2_DISTRO" != "eloquent" ]; then
echo "ROS2_DISTRO variable must be set to eloquent"
exit 1
fi

set -e
Expand Down
8 changes: 4 additions & 4 deletions tools/initial_ros_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ ENABLE_BUILD=true
ENABLE_ROS2=true

if [ "$ROS2_DISTRO" = "" ]; then
export ROS2_DISTRO=dashing
export ROS2_DISTRO=eloquent
fi
if [ "$ROS2_DISTRO" != "dashing" ]; then
echo "ROS2_DISTRO variable must be set to dashing"
if [ "$ROS2_DISTRO" != "eloquent" ]; then
echo "ROS2_DISTRO variable must be set to eloquent"
exit 1
fi

Expand All @@ -24,7 +24,7 @@ for opt in "$@" ; do
*)
echo "Invalid option: $opt"
echo "Valid options:"
echo "--no-ros2 Uses the binary distribution of ROS2 dashing"
echo "--no-ros2 Uses the binary distribution of ROS2 eloquent"
echo "--download-only Skips the build step and only downloads the code"
exit 1
;;
Expand Down

0 comments on commit 8d5fa2e

Please sign in to comment.