-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added a red circle for target pose location. changed the way marker id numbers are generated. resized markers * edited a comment line * cherry-picking mjeronimo:fix_bt_crash_after_reset (#1515) * syncing eloquent with 1940266 * bump to 0.3.4 Co-authored-by: Melih Erdogan <[email protected]> Co-authored-by: John Connolly <[email protected]>
- Loading branch information
1 parent
d44596c
commit b4b49fa
Showing
42 changed files
with
230 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_behavior_tree</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>TODO</description> | ||
<maintainer email="[email protected]">Michael Jeronimo</maintainer> | ||
<maintainer email="[email protected]">Carlos Orduno</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_bringup</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Bringup scripts and configurations for the navigation2 stack</description> | ||
<maintainer email="[email protected]">Michael Jeronimo</maintainer> | ||
<maintainer email="[email protected]">Steve Macenski</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_gazebo_spawner</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Package for spawning a robot model into Gazebo for navigation2</description> | ||
<maintainer email="[email protected]">lkumarbe</maintainer> | ||
<maintainer email="[email protected]">lkumarbe</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
nav2_bt_navigator/include/nav2_bt_navigator/ros_topic_logger.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (c) 2019 Intel Corporation | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef NAV2_BT_NAVIGATOR__ROS_TOPIC_LOGGER_HPP_ | ||
#define NAV2_BT_NAVIGATOR__ROS_TOPIC_LOGGER_HPP_ | ||
|
||
#include <vector> | ||
#include "behaviortree_cpp_v3/loggers/abstract_logger.h" | ||
#include "rclcpp/rclcpp.hpp" | ||
#include "nav2_msgs/msg/behavior_tree_log.hpp" | ||
#include "nav2_msgs/msg/behavior_tree_status_change.h" | ||
|
||
namespace nav2_bt_navigator | ||
{ | ||
|
||
class RosTopicLogger : public BT::StatusChangeLogger | ||
{ | ||
public: | ||
RosTopicLogger(const rclcpp::Node::SharedPtr & ros_node, const BT::Tree & tree); | ||
|
||
void callback( | ||
BT::Duration timestamp, | ||
const BT::TreeNode & node, | ||
BT::NodeStatus prev_status, | ||
BT::NodeStatus status) override; | ||
|
||
void flush() override; | ||
|
||
protected: | ||
rclcpp::Node::SharedPtr ros_node_; | ||
rclcpp::Publisher<nav2_msgs::msg::BehaviorTreeLog>::SharedPtr log_pub_; | ||
std::vector<nav2_msgs::msg::BehaviorTreeStatusChange> event_log_; | ||
}; | ||
|
||
} // namespace nav2_bt_navigator | ||
|
||
#endif // NAV2_BT_NAVIGATOR__ROS_TOPIC_LOGGER_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_bt_navigator</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>TODO</description> | ||
<maintainer email="[email protected]">Michael Jeronimo</maintainer> | ||
<license>Apache-2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright (c) 2019 Intel Corporation | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include <utility> | ||
#include "nav2_bt_navigator/ros_topic_logger.hpp" | ||
#include "tf2_ros/buffer_interface.h" | ||
|
||
namespace nav2_bt_navigator | ||
{ | ||
|
||
RosTopicLogger::RosTopicLogger( | ||
const rclcpp::Node::SharedPtr & ros_node, const BT::Tree & tree) | ||
: StatusChangeLogger(tree.root_node), ros_node_(ros_node) | ||
{ | ||
log_pub_ = ros_node_->create_publisher<nav2_msgs::msg::BehaviorTreeLog>( | ||
"behavior_tree_log", | ||
rclcpp::QoS(10)); | ||
} | ||
|
||
void RosTopicLogger::callback( | ||
BT::Duration timestamp, | ||
const BT::TreeNode & node, | ||
BT::NodeStatus prev_status, | ||
BT::NodeStatus status) | ||
{ | ||
nav2_msgs::msg::BehaviorTreeStatusChange event; | ||
|
||
// BT timestamps are a duration since the epoch. Need to convert to a time_point | ||
// before converting to a msg. | ||
event.timestamp = | ||
tf2_ros::toMsg(std::chrono::time_point<std::chrono::high_resolution_clock>(timestamp)); | ||
event.node_name = node.name(); | ||
event.previous_status = toStr(prev_status, false); | ||
event.current_status = toStr(status, false); | ||
event_log_.push_back(std::move(event)); | ||
|
||
RCLCPP_DEBUG( | ||
ros_node_->get_logger(), "[%.3f]: %25s %s -> %s", | ||
std::chrono::duration<double>(timestamp).count(), | ||
node.name().c_str(), | ||
toStr(prev_status, true).c_str(), | ||
toStr(status, true).c_str() ); | ||
} | ||
|
||
void RosTopicLogger::flush() | ||
{ | ||
if (event_log_.size() > 0) { | ||
nav2_msgs::msg::BehaviorTreeLog log_msg; | ||
log_msg.timestamp = ros_node_->now(); | ||
log_msg.event_log = event_log_; | ||
log_pub_->publish(log_msg); | ||
event_log_.clear(); | ||
} | ||
} | ||
|
||
} // namespace nav2_bt_navigator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_common</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Common support functionality used throughout the navigation 2 stack</description> | ||
<maintainer email="[email protected]">Carl Delsey</maintainer> | ||
<license>Apache-2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_controller</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Controller action interface</description> | ||
<maintainer email="[email protected]">Carl Delsey</maintainer> | ||
<license>Apache-2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav2_core</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>A set of headers for plugins core to the navigation2 stack</description> | ||
<maintainer email="[email protected]">Steve Macenski</maintainer> | ||
<maintainer email="[email protected]">Carl Delsey</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>costmap_queue</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>The costmap_queue package</description> | ||
<maintainer email="[email protected]">David V. Lu!!</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>dwb_core</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>TODO</description> | ||
<maintainer email="[email protected]">Carl Delsey</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>dwb_critics</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>The dwb_critics package</description> | ||
<maintainer email="[email protected]">David V. Lu!!</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>dwb_msgs</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Message/Service definitions specifically for the dwb_core</description> | ||
<maintainer email="[email protected]">David V. Lu!!</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav_2d_msgs</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>Basic message types for two dimensional navigation, extending from geometry_msgs::Pose2D.</description> | ||
<maintainer email="[email protected]">David V. Lu!!</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>nav_2d_utils</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>A handful of useful utility functions for nav_2d packages.</description> | ||
<maintainer email="[email protected]">David V. Lu!!</maintainer> | ||
<license>BSD-3-Clause</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="2"> | ||
<name>nav2_turtlebot3_rl</name> | ||
<version>0.3.3</version> | ||
<version>0.3.4</version> | ||
<description>This package enables Reinfocement Learning with Gazebo and Turtlebot3</description> | ||
|
||
<maintainer email="[email protected]">Mohammad Haghighipanah</maintainer> | ||
|
Oops, something went wrong.