MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.ROS2 / setGoal

Method setGoal

btcpp_ros2_samples/src/sleep_action.cpp:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "behaviortree_ros2/plugins.hpp"
3
4bool SleepAction::setGoal(RosActionNode::Goal& goal)
5{
6 auto timeout = getInput<unsigned>("msec");
7 goal.msec_timeout = timeout.value();
8 return true;
9}
10
11NodeStatus SleepAction::onResultReceived(const RosActionNode::WrappedResult& wr)
12{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected