Skip to content

Commit

Permalink
Adding uid to log msg (#3750)
Browse files Browse the repository at this point in the history
* adding uid to the logged message

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>

* less changes

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>

---------

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
  • Loading branch information
ct2034 authored Aug 9, 2023
1 parent 7a33260 commit c1e7713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class RosTopicLogger : public BT::StatusChangeLogger
// before converting to a msg.
event.timestamp = tf2_ros::toMsg(tf2::TimePoint(timestamp));
event.node_name = node.name();
event.uid = node.UID();
event.previous_status = toStr(prev_status, false);
event.current_status = toStr(status, false);
event_log_.push_back(std::move(event));
Expand Down
3 changes: 2 additions & 1 deletion nav2_msgs/msg/BehaviorTreeStatusChange.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
builtin_interfaces/Time timestamp # internal behavior tree event timestamp. Typically this is wall clock time
builtin_interfaces/Time timestamp # internal behavior tree event timestamp. Typically this is wall clock time
string node_name
uint16 uid # unique ID for this node
string previous_status # IDLE, RUNNING, SUCCESS or FAILURE
string current_status # IDLE, RUNNING, SUCCESS or FAILURE

0 comments on commit c1e7713

Please sign in to comment.