// generated from rosidl_generator_cpp/resource/idl__builder.hpp.em
// with input from px4_msgs:msg/TrajectorySetpoint.idl
// generated code does not contain a copyright notice

// IWYU pragma: private, include "px4_msgs/msg/trajectory_setpoint.hpp"


#ifndef PX4_MSGS__MSG__DETAIL__TRAJECTORY_SETPOINT__BUILDER_HPP_
#define PX4_MSGS__MSG__DETAIL__TRAJECTORY_SETPOINT__BUILDER_HPP_

#include <algorithm>
#include <utility>

#include "px4_msgs/msg/detail/trajectory_setpoint__struct.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


namespace px4_msgs
{

namespace msg
{

namespace builder
{

class Init_TrajectorySetpoint_yawspeed
{
public:
  explicit Init_TrajectorySetpoint_yawspeed(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  ::px4_msgs::msg::TrajectorySetpoint yawspeed(::px4_msgs::msg::TrajectorySetpoint::_yawspeed_type arg)
  {
    msg_.yawspeed = std::move(arg);
    return std::move(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_yaw
{
public:
  explicit Init_TrajectorySetpoint_yaw(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  Init_TrajectorySetpoint_yawspeed yaw(::px4_msgs::msg::TrajectorySetpoint::_yaw_type arg)
  {
    msg_.yaw = std::move(arg);
    return Init_TrajectorySetpoint_yawspeed(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_jerk
{
public:
  explicit Init_TrajectorySetpoint_jerk(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  Init_TrajectorySetpoint_yaw jerk(::px4_msgs::msg::TrajectorySetpoint::_jerk_type arg)
  {
    msg_.jerk = std::move(arg);
    return Init_TrajectorySetpoint_yaw(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_acceleration
{
public:
  explicit Init_TrajectorySetpoint_acceleration(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  Init_TrajectorySetpoint_jerk acceleration(::px4_msgs::msg::TrajectorySetpoint::_acceleration_type arg)
  {
    msg_.acceleration = std::move(arg);
    return Init_TrajectorySetpoint_jerk(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_velocity
{
public:
  explicit Init_TrajectorySetpoint_velocity(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  Init_TrajectorySetpoint_acceleration velocity(::px4_msgs::msg::TrajectorySetpoint::_velocity_type arg)
  {
    msg_.velocity = std::move(arg);
    return Init_TrajectorySetpoint_acceleration(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_position
{
public:
  explicit Init_TrajectorySetpoint_position(::px4_msgs::msg::TrajectorySetpoint & msg)
  : msg_(msg)
  {}
  Init_TrajectorySetpoint_velocity position(::px4_msgs::msg::TrajectorySetpoint::_position_type arg)
  {
    msg_.position = std::move(arg);
    return Init_TrajectorySetpoint_velocity(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

class Init_TrajectorySetpoint_timestamp
{
public:
  Init_TrajectorySetpoint_timestamp()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_TrajectorySetpoint_position timestamp(::px4_msgs::msg::TrajectorySetpoint::_timestamp_type arg)
  {
    msg_.timestamp = std::move(arg);
    return Init_TrajectorySetpoint_position(msg_);
  }

private:
  ::px4_msgs::msg::TrajectorySetpoint msg_;
};

}  // namespace builder

}  // namespace msg

template<typename MessageType>
auto build();

template<>
inline
auto build<::px4_msgs::msg::TrajectorySetpoint>()
{
  return px4_msgs::msg::builder::Init_TrajectorySetpoint_timestamp();
}

}  // namespace px4_msgs

#endif  // PX4_MSGS__MSG__DETAIL__TRAJECTORY_SETPOINT__BUILDER_HPP_
