try continuous sending of setpoints
This commit is contained in:
@@ -337,21 +337,21 @@ private:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!new_setpoint)
|
// if (!new_setpoint)
|
||||||
{
|
// {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (current_control_mode == CONTROL_MODE_VELOCITY)
|
if (current_control_mode == CONTROL_MODE_VELOCITY)
|
||||||
{
|
{
|
||||||
RCLCPP_INFO(this->get_logger(), "Sending velocity setpoint");
|
RCLCPP_INFO(this->get_logger(), "velocity %f %f %f", velocity[0], velocity[1], velocity[2]);
|
||||||
send_velocity_setpoint();
|
send_velocity_setpoint();
|
||||||
}
|
}
|
||||||
else if (current_control_mode == CONTROL_MODE_POSITION)
|
else if (current_control_mode == CONTROL_MODE_POSITION)
|
||||||
{
|
{
|
||||||
RCLCPP_INFO(this->get_logger(), "Sending position setpoint");
|
RCLCPP_INFO(this->get_logger(), "position %f %f %f", position[0], position[1], position[2]);
|
||||||
send_position_setpoint();
|
send_position_setpoint();
|
||||||
}
|
}
|
||||||
new_setpoint = false;
|
// new_setpoint = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user