This commit is contained in:
2025-12-30 09:10:03 +07:00
parent e7dc4031c6
commit 56ef1a8fc0
57 changed files with 1011 additions and 982 deletions

View File

@@ -11,13 +11,13 @@ struct Imu
{
std_msgs::Header header; // Thời gian và frame gốc
geometry_msgs::Quaternion orientation; // Góc quay (đơn vị: quaternion)
robot_geometry_msgs::Quaternion orientation; // Góc quay (đơn vị: quaternion)
std::array<double, 9> orientation_covariance; // Ma trận hiệp phương sai (row-major)
geometry_msgs::Vector3 angular_velocity; // Tốc độ góc (rad/s)
robot_geometry_msgs::Vector3 angular_velocity; // Tốc độ góc (rad/s)
std::array<double, 9> angular_velocity_covariance; // Ma trận hiệp phương sai
geometry_msgs::Vector3 linear_acceleration; // Gia tốc tuyến tính (m/s^2)
robot_geometry_msgs::Vector3 linear_acceleration; // Gia tốc tuyến tính (m/s^2)
std::array<double, 9> linear_acceleration_covariance; // Ma trận hiệp phương sai
Imu()

View File

@@ -4,7 +4,7 @@
#include <vector>
#include <string>
#include "std_msgs/Header.h"
#include "geometry_msgs/Point32.h"
#include "robot_geometry_msgs/Point32.h"
#include "sensor_msgs/ChannelFloat32.h"
namespace sensor_msgs
@@ -14,7 +14,7 @@ struct PointCloud
{
std_msgs::Header header; // Thông tin thời gian & frame của dữ liệu
std::vector<geometry_msgs::Point32> points; // Danh sách các điểm 3D (x, y, z)
std::vector<robot_geometry_msgs::Point32> points; // Danh sách các điểm 3D (x, y, z)
std::vector<ChannelFloat32> channels; // Dữ liệu phụ đi kèm (vd: "intensity", "rgb")
PointCloud() = default;