add log of des_x,y,z
This commit is contained in:
@@ -307,6 +307,7 @@ private:
|
|||||||
{
|
{
|
||||||
auto msg = px4_msgs::msg::TrajectorySetpoint();
|
auto msg = px4_msgs::msg::TrajectorySetpoint();
|
||||||
|
|
||||||
|
RCLCPP_INFO(this->get_logger(), "Sending position setpoint: %f %f %f", des_x, des_y, des_z);
|
||||||
msg.position = {des_x, des_y, des_z};
|
msg.position = {des_x, des_y, des_z};
|
||||||
msg.velocity = {dot_des_x, dot_des_y, 0.0};
|
msg.velocity = {dot_des_x, dot_des_y, 0.0};
|
||||||
msg.yaw = gamma; //-3.14; // [-PI:PI]
|
msg.yaw = gamma; //-3.14; // [-PI:PI]
|
||||||
|
|||||||
Reference in New Issue
Block a user