39 RCLCPP_INFO(
getLogger(),
"CbTakeOff: streaming setpoints before offboard switch...");
40 std::this_thread::sleep_for(std::chrono::seconds(2));
43 RCLCPP_INFO(
getLogger(),
"CbTakeOff: switching to offboard mode");
47 std::this_thread::sleep_for(std::chrono::milliseconds(500));
67 RCLCPP_INFO(
getLogger(),
"CbTakeOff: target altitude reached - posting success");
80 RCLCPP_WARN(
getLogger(),
"CbTakeOff: completion component missing, no completion signal wired");
CpGoalChecker * goalChecker_
CpVehicleLocalPosition * localPosition_
CpTrajectorySetpoint * trajectorySetpoint_
CpVehicleCommand * vehicleCommand_
CpOffboardKeepAlive * offboardKeepAlive_
void wireCompletionSignals() override
void onGoalReachedCallback()
CbTakeOff(float targetAltitude=5.0f)
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
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)