
c++
auteman_dan
这个作者很懒,什么都没留下…
展开
-
regex正则表达式
regex使用#include <iostream>#include <regex>#include <fstream>#include <vector>#include <string>#include <Eigen/Dense>#include <Eigen/Core>using namespace std;int main() { ifstream in("/home/xcy/CLion原创 2021-09-30 15:14:07 · 106 阅读 · 0 评论 -
Cartographer位姿估计器
Cartographer位姿估计器pose_extrapolator重要变量姿态预测相关:在AddPose中更新imu_tracker_: 只在添加位姿时更新,用于保存添加校准位姿时的姿态odometry_imu_tracker_: 在添加位姿时更新,用于根据里程计数据计算线速度extrapolation_imu_tracker_: 只在添加位姿时更新,用于更新时的姿态预测通过里程计计算线速度和角速度:linear_velocity_from_odometry_: 只在添加里程计数据时更原创 2021-09-05 17:46:32 · 682 阅读 · 0 评论 -
Cartographer_ros
Cartographer_ros的数据处理与流向cartographer数据类型struct Subscriber { ::ros::Subscriber subscriber; // ::ros::Subscriber::getTopic() does not necessarily return the same // std::string // it was given in its constructor. Since we rely on the topic原创 2021-09-04 15:50:42 · 266 阅读 · 0 评论 -
数组类型与函数类型
数组类型与函数类型数组类型、函数类型数组指针、函数指针数组类型、函数类型我们声明一个数组,这里数组类型为int[3]int main(){ int a[3];}假如我们有一个函数fun()int fun(int val){ return val + 1;}那么这个函数的类型应该是int(int)。数组的类型可以用来声明或者定义一个数组,比如以下代码可以通过编译。#include <iostream>using k = int[3];k原创 2021-07-17 17:08:46 · 371 阅读 · 1 评论 -
Cartographer_ros(1)
Cartographer_ros(1)入口node_main.ccnode_main.cc主要实现参数文件读取和程序启动功能。gflags首先,使用谷歌的gflags命令行参数解析工具,实现将命令行输入参数读取到程序内部的功能。DEFINE_bool(collect_metrics, false, "Activates the collection of runtime metrics. If activated, the " "metrics ca原创 2021-07-10 20:08:14 · 143 阅读 · 0 评论 -
ubuntu下SFML小游戏编译报错
SFML CMakeListsSFML库的安装编译报错SFML库的安装sudo apt-get sudo apt-get install libsfml-devubuntu会将库文件安装到/usr/include目录下编译报错CMakeFiles/04_Snake.dir/main.cpp.o:在函数‘main’中:main.cpp:42:对‘sf::String::String(char const*, std::locale const&)’未定义的引用main.cpp:42:原创 2021-07-09 16:35:56 · 618 阅读 · 1 评论