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
4 changes: 2 additions & 2 deletions bt_nodes/perception/src/perception/count_people.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ BT::NodeStatus CountPeople::tick()
}

// gesture filtering
if (gesture_ != "unknown" && !removed) {
if (gesture_ != "unknown" && !gesture_.empty() && !removed) {
RCLCPP_INFO(node_->get_logger(), "[CountPeople] Count by gesture");
if (std::find(
gestures_[gesture_].begin(), gestures_[gesture_].end(),
Expand All @@ -159,7 +159,7 @@ BT::NodeStatus CountPeople::tick()
}

// pose filtering
if (pose_ != "unknown" && !removed) {
if (pose_ != "unknown" && !pose_.empty() && !removed) {
RCLCPP_INFO(node_->get_logger(), "[CountPeople] Count by pose");
if (pose_names_[detection.body_pose] == pose_) {
RCLCPP_DEBUG(
Expand Down
4 changes: 2 additions & 2 deletions robocup_bringup/bt_xml/gpsr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<Action ID="StartMusic" audio="elevator" loop="true" />
<Action ID="CommandPlanning" command="{command}" actions="{action_list}" bt_value="{bt_xml}"/>
<Action ID="StopMusic" />
<Action ID="Speak" say_text="Then I have to do the following actions " param="{action_list}"/>
<Action ID="Speak" say_text="This is correct?" param=""/>
<Action ID="Speak" say_text="Here it is the reasoning for the next actions: " param="{action_list}"/>
<Action ID="Speak" say_text="Is this correct?" param=""/>
<Action ID="DialogConfirmation"/>
</Sequence>
</RetryUntilSuccessful>
Expand Down
Loading