修改功能包分布和整合launch

This commit is contained in:
walunt5
2026-11-10 10:57:49 +08:00
parent ca61aa63b5
commit cac93cae11
27 changed files with 717 additions and 201 deletions
+7 -4
View File
@@ -17,9 +17,12 @@ source /opt/ros/humble/setup.bash
source sim_ws/install/classic/setup.bash
export ROS_DOMAIN_ID=77 ROS_LOCALHOST_ONLY=0
export GAZEBO_MASTER_URI=http://127.0.0.1:11355
ros2 launch robocon_gazebo robocon_gazebo.launch.py
# 另一个终端(相同 source/export)
ros2 launch r2027_robot_description robocon_robot.launch.py \
lidar:=true sensor_model:=mid360 drive:=contact \
x:=-4.5 y:=4.5 z:=0.15 yaw:=0.0 sensor_profile:=ideal
lidar:=true sensor_model:=mid360 drive:=contact x:=-4.5 y:=4.5 z:=0.15 yaw:=0.0
# 第三个终端(相同 source/export)
ros2 launch r2027_robot_description mid360_sensors.launch.py sensor_profile:=ideal
```
这里只运行场地、机器人、物理雷达/IMU、命令保护与真值观测接口,不运行 Point-LIO/SCAN。
@@ -38,11 +41,11 @@ PATH=/usr/bin:$PATH colcon build --base-paths sim_ws/src/br_sim_bringup \
--install-base sim_ws/install/classic --symlink-install
source sim_ws/install/classic/setup.bash
export ROS_DOMAIN_ID=77 ROS_LOCALHOST_ONLY=0
ros2 launch br_sim_bringup scan_lio.launch.py start_sim:=false \
ros2 launch br_sim_bringup scan_lio_navigation.launch.py \
x:=-4.5 y:=4.5 z:=0.15 yaw:=0.0
```
`start_sim:=false` 不查找机器人描述包、不加载 Gazebo、不创建第二个 server。
该入口不查找机器人描述包、不加载 Gazebo、不创建第二个 server。
算法只需要 ROS 消息、Point-LIO、SCAN 与 br_sim_bringup 的 launch/脚本资源。
此端不需要 Gazebo master 地址,通信通过 ROS 2 DDS。
实车算法包没有新增 Gazebo 依赖,仿真与实车安装前缀应分别使用。