能写出future pose的源码吗
时间: 2023-03-25 10:01:28 浏览: 105
当然可以,以下是一个简单的future pose的源码示例:
#include <iostream>
#include <vector>
using namespace std;
vector<double> future_pose(vector<double> current_pose, vector<double> velocity, double time) {
vector<double> future_pose(3);
future_pose[] = current_pose[] + velocity[] * time;
future_pose[1] = current_pose[1] + velocity[1] * time;
future_pose[2] = current_pose[2] + velocity[2] * time;
return future_pose;
}
int main() {
vector<double> current_pose = {, , };
vector<double> velocity = {1, 2, 3};
double time = 5;
vector<double> future = future_pose(current_pose, velocity, time);
cout << "Future pose: (" << future[] << ", " << future[1] << ", " << future[2] << ")" << endl;
return ;
}
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)