This commit is contained in:
trung09122002
2026-08-28 11:12:28 +07:00
commit 120923f9cc
124 changed files with 20117 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
<?xml version="1.0"?>
<!--
====================== LOP L1 ======================
L0 + Gazebo + spawn robot. Cam bien bat dau co du lieu.
NGHIEM THU L1:
roslaunch robot_bringup sim.launch world:=restaurant
rostopic hz /scan /imu/data_raw /joint_states /ground_truth/odom
rostopic hz /camera/depth/image_rect_raw
Kiem tra them trong rviz:
- LaserScan hien dung hinh dang phong
- PointCloud tu camera nam dung cho (khong lech, khong nghieng)
⚠️ Luu y: /ground_truth/odom CHI de danh gia. Khong node uoc luong nao
duoc subscribe topic nay.
-->
<launch>
<!-- restaurant | hotel_corridor | hospital | hospital_two_floors
| hospital_three_floors -->
<arg name="world" default="restaurant"/>
<arg name="gui" default="true"/>
<arg name="rviz" default="true"/>
<!--
⚠️ De TRONG, dung dat so cung o day.
Diem spawn phu thuoc world (hospital rong 24.8 x 51.4 m, cho trong hoan
toan khac restaurant) va logic chon diem nam trong robot_sim/launch/
gazebo.launch. Dat gia tri cung o day se GHI DE logic do - da mac loi nay
mot lan: x/y cung 0.0/-3.0 lam robot sinh giua tang 1 benh vien.
Muon chi dinh tay thi truyen tu dong lenh:
sim.launch world:=hospital x:=-4.5 y:=-31.0
-->
<arg name="x" default=""/>
<arg name="y" default=""/>
<arg name="z" default="0.1"/>
<arg name="yaw" default=""/>
<arg name="enable_elevator" default="false"/>
<arg name="enable_degradation" default="false"/>
<!-- L0: URDF + TF. use_sim:=true de keo them plugin Gazebo vao URDF. -->
<include file="$(find robot_bringup)/launch/description.launch">
<arg name="use_sim" value="true"/>
<arg name="rviz" value="$(arg rviz)"/>
<!-- Gazebo se publish joint_states banh xe -> tat fake -->
<arg name="publish_fake_joints" value="false"/>
</include>
<include file="$(find robot_sim)/launch/gazebo.launch">
<arg name="world" value="$(arg world)"/>
<arg name="gui" value="$(arg gui)"/>
<arg name="x" value="$(arg x)"/>
<arg name="y" value="$(arg y)"/>
<arg name="z" value="$(arg z)"/>
<arg name="yaw" value="$(arg yaw)"/>
<arg name="enable_elevator" value="$(arg enable_elevator)"/>
<arg name="enable_degradation" value="$(arg enable_degradation)"/>
</include>
</launch>