48 RCLCPP_INFO(
getLogger(),
"CbTakeOff: streaming setpoints before offboard switch...");
49 std::this_thread::sleep_for(std::chrono::seconds(2));
52 RCLCPP_INFO(
getLogger(),
"CbTakeOff: switching to offboard mode");
56 std::this_thread::sleep_for(std::chrono::milliseconds(500));
76 RCLCPP_INFO(
getLogger(),
"CbTakeOff: target altitude reached - posting success");
CpVehicleLocalPosition * localPosition_
CpGoalChecker * goalChecker_
void onGoalReachedCallback()
CpOffboardKeepAlive * offboardKeepAlive_
CpVehicleCommand * vehicleCommand_
CbTakeOff(float targetAltitude=5.0f)
CpTrajectorySetpoint * trajectorySetpoint_
void setGoal(float x, float y, float z, float xy_tolerance=0.5f, float z_tolerance=0.3f)
smacc2::SmaccSignal< void()> onGoalReached_
void setPositionNED(float x, float y, float z, float yaw=std::numeric_limits< float >::quiet_NaN())
virtual rclcpp::Logger getLogger() const
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)