1 Star 0 Fork 0

superBugMaker/robofleet_client_lib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
message_structs.h 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
Max Svetlik 提交于 2021-08-03 22:15 +08:00 . Add geometry msgs (#10)
#pragma once
#include<cstdint>
#include<string>
#include<vector>
struct RobofleetSubscription {
std::string topic_regex;
uint8_t action;
};
struct RobotLocation {
std::string frame;
float x;
float y;
float z;
float theta;
};
struct RobotStatus {
std::string status;
bool is_ok;
float battery_level;
std::string location;
};
/*
* ROS message clones
*/
// std_msgs
struct Time {
uint32_t _sec;
uint32_t _nsec;
};
struct Header {
uint32_t seq;
Time stamp;
std::string frame_id;
};
// geometry_msgs
struct Point {
float x;
float y;
float z;
};
struct Quaternion {
float x;
float y;
float z;
float w;
};
struct Vector3 {
double x;
double y;
double z;
};
struct Pose {
Point point;
Quaternion quaternion;
};
struct PoseStamped {
Header header;
Pose pose;
};
struct PoseWithCovariance {
Pose pose;
double covariance[36];
};
struct PoseWithCovarianceStamped {
Header header;
PoseWithCovariance pose;
};
struct Twist {
Vector3 linear;
Vector3 angular;
};
struct TwistWithCovariance {
Twist twist;
double covariance[36];
};
struct TwistWithCovarianceStamped {
Header header;
TwistWithCovariance twist;
};
// nav_msgs
struct Odometry {
Header header;
std::string child_frame_id;
PoseWithCovariance pose;
TwistWithCovariance twist;
};
// sensor_msgs
struct CompressedImage {
Header header;
std::string format;
std::vector<uint8_t> data;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/superbugmaker/robofleet_client_lib.git
git@gitee.com:superbugmaker/robofleet_client_lib.git
superbugmaker
robofleet_client_lib
robofleet_client_lib
master

搜索帮助