wip-behaviors #3

Merged
Pimpest merged 86 commits from wip-behaviors into main 2026-05-28 06:21:26 +00:00
Showing only changes of commit c48e483d60 - Show all commits

View File

@@ -51,13 +51,13 @@ public:
if(checkIfInPose(pose)) {
if(checkIfPosesAreClose(last_pos, pose)) {
if(clock.now() - last_pos_change > rclcpp::Duration::from_seconds(timeout)) {
if(rclcpp::Time(pose.header.stamp) - last_pos_change > rclcpp::Duration::from_seconds(timeout)) {
haltChild();
return BT::NodeStatus::SUCCESS;
}
} else {
last_pos = pose;
last_pos_change = clock.now();
last_pos_change = pose.header.stamp;
}
}