Revert "feat: dang ky robot_sensor_msgs/RouteGraph vao registry type"

This reverts commit 5efa0e7392.
This commit is contained in:
2026-10-03 15:30:15 +07:00
parent 5efa0e7392
commit d09b7f40bc
3 changed files with 2 additions and 8 deletions

View File

@@ -136,10 +136,7 @@ Không đổi interface. **Không plugin nào phải build lại.**
Loại thuộc package khác thì đăng ký ở nơi nó sống — `ROBOT_SENSOR_PORTS_REGISTER_TYPE` cộng một lời
gọi `TypeNames::add()` lúc khởi động — để không kéo dependency của nó vào mọi nơi include header này.
### 23/25 loại của `robot_sensor_msgs` được đăng ký sẵn
`RouteGraph` (graph tuyến biên dịch sẵn từ map, host đẩy vào cạnh static map) cũng nằm trong danh
sách — nó là message của `robot_sensor_msgs` dù không phải "cảm biến"; kho không phân biệt.
### 22/24 loại của `robot_sensor_msgs` được đăng ký sẵn
Thiếu `Imu` và `TimeReference` vì **header của chúng không biên dịch được trong workspace này**:

View File

@@ -30,7 +30,6 @@
#include <robot_sensor_msgs/Range.h>
#include <robot_sensor_msgs/RegionOfInterest.h>
#include <robot_sensor_msgs/RelativeHumidity.h>
#include <robot_sensor_msgs/RouteGraph.h>
#include <robot_sensor_msgs/Temperature.h>
#include <robot_sensor_ports/sensor_type.h>
@@ -83,7 +82,6 @@ namespace robot_sensor_ports
X(::robot_sensor_msgs::Range, "robot_sensor_msgs/Range") \
X(::robot_sensor_msgs::RegionOfInterest, "robot_sensor_msgs/RegionOfInterest") \
X(::robot_sensor_msgs::RelativeHumidity, "robot_sensor_msgs/RelativeHumidity") \
X(::robot_sensor_msgs::RouteGraph, "robot_sensor_msgs/RouteGraph") \
X(::robot_sensor_msgs::Temperature, "robot_sensor_msgs/Temperature")
ROBOT_SENSOR_PORTS_TYPE_LIST(ROBOT_SENSOR_PORTS_REGISTER_TYPE)

View File

@@ -121,8 +121,7 @@ TEST(TypeNames, KnowsEveryTypeInTheBuiltInList)
for (const char* expected : {"robot_sensor_msgs/LaserScan", "robot_sensor_msgs/PointCloud2",
"robot_sensor_msgs/DepthCameraData", "robot_sensor_msgs/CameraInfo",
"robot_sensor_msgs/JointState", "robot_sensor_msgs/Image",
"robot_sensor_msgs/RouteGraph"})
"robot_sensor_msgs/JointState", "robot_sensor_msgs/Image"})
{
EXPECT_NE(std::find(all.begin(), all.end(), expected), all.end()) << expected;
}