Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/minicarsim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## 功能特性

1. **物理仿真**:基于MuJoCo的真实物理仿真
2. **小车模型**:包含底盘和四个轮子的简单小车模型
2. **小车模型**:包含底盘、车厢和四个圆柱形轮子的更真实小车模型
3. **传感器模拟**:LiDAR传感器点云数据生成
4. **物体检测**:检测环境中的障碍物
5. **数据保存**:保存点云数据和检测结果
Expand Down Expand Up @@ -97,7 +97,7 @@ python main.py

该文件定义了:
- 地面平面
- 小车模型(底盘和四个轮子)
- 小车模型(底盘、车厢和四个圆柱形轮子)
- 5个彩色障碍物
- 传感器安装位置(LiDAR和摄像头)

Expand Down
12 changes: 7 additions & 5 deletions src/minicarsim/models/simple_car.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,30 @@
<freejoint name="vehicle_joint"/>

<!-- Car chassis -->
<geom name="chassis" type="box" size="1 0.5 0.2" material="car_body" mass="10" friction="0.2 0.1 0.1" solref="0.08 1"/>
<geom name="chassis" type="box" size="1 0.5 0.2" material="car_body" mass="15" friction="0.2 0.1 0.1" solref="0.08 1"/>
<!-- Car cabin -->
<geom name="cabin" type="box" size="0.6 0.4 0.3" pos="0.1 0 0.3" material="car_body" mass="5"/>

<!-- Front wheels -->
<body name="front_left_wheel" pos="0.8 0.6 -0.1">
<joint name="front_left_wheel_joint" type="hinge" axis="0 1 0" limited="false"/>
<geom name="front_left_wheel_geom" type="sphere" size="0.2" material="car_wheels" mass="1.0" friction="2.0 0.1 0.1" solref="0.08 1"/>
<geom name="front_left_wheel_geom" type="cylinder" size="0.2 0.05" material="car_wheels" mass="1.5" friction="2.0 0.1 0.1" solref="0.08 1"/>
</body>

<body name="front_right_wheel" pos="0.8 -0.6 -0.1">
<joint name="front_right_wheel_joint" type="hinge" axis="0 1 0" limited="false"/>
<geom name="front_right_wheel_geom" type="sphere" size="0.2" material="car_wheels" mass="1.0" friction="2.0 0.1 0.1" solref="0.08 1"/>
<geom name="front_right_wheel_geom" type="cylinder" size="0.2 0.05" material="car_wheels" mass="1.5" friction="2.0 0.1 0.1" solref="0.08 1"/>
</body>

<!-- Rear wheels -->
<body name="rear_left_wheel" pos="-0.8 0.6 -0.1">
<joint name="rear_left_wheel_joint" type="hinge" axis="0 1 0" limited="false"/>
<geom name="rear_left_wheel_geom" type="sphere" size="0.2" material="car_wheels" mass="1.0" friction="2.0 0.1 0.1" solref="0.08 1"/>
<geom name="rear_left_wheel_geom" type="cylinder" size="0.2 0.05" material="car_wheels" mass="1.5" friction="2.0 0.1 0.1" solref="0.08 1"/>
</body>

<body name="rear_right_wheel" pos="-0.8 -0.6 -0.1">
<joint name="rear_right_wheel_joint" type="hinge" axis="0 1 0" limited="false"/>
<geom name="rear_right_wheel_geom" type="sphere" size="0.2" material="car_wheels" mass="1.0" friction="2.0 0.1 0.1" solref="0.08 1"/>
<geom name="rear_right_wheel_geom" type="cylinder" size="0.2 0.05" material="car_wheels" mass="1.5" friction="2.0 0.1 0.1" solref="0.08 1"/>
</body>

<!-- LiDAR sensor -->
Expand Down
Loading