This commit is contained in:
Sem van der Hoeven
2023-05-25 12:29:22 +02:00
parent 952620c0a8
commit 40d3d42323

View File

@@ -90,9 +90,9 @@ public:
{ {
this->trajectory_request->values[0] = this->current_speed_x; this->trajectory_request->values[0] = this->current_speed_x;
this->trajectory_request->values[1] = this->current_speed_y; this->trajectory_request->values[1] = this->current_speed_y;
this->trajectory_request->values[2] = this->current_z_speed; this->trajectory_request->values[2] = this->current_speed_z;
this->trajectory_request->yaw = this->current_yaw; this->trajectory_request->yaw = this->current_yaw;
auto trajectory_response = this->trajectory_client->async_send_request(this->trajectory_requeststd::bind(&PositionChanger::trajectory_message_callback, this, std::placeholders::_1)); auto trajectory_response = this->trajectory_client->async_send_request(this->trajectory_request,std::bind(&PositionChanger::trajectory_message_callback, this, std::placeholders::_1));
// if (rclcpp::spin_until_future_complete(this, trajectory_response) == // if (rclcpp::spin_until_future_complete(this, trajectory_response) ==
// rclcpp::FutureReturnCode::SUCCESS) // rclcpp::FutureReturnCode::SUCCESS)