Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
4b69818
update
xiaodai236 Sep 16, 2025
a336919
update
xiaodai236 Sep 16, 2025
7193c82
Merge branch 'OpenHUTB:main' into main
xiaodai236 Sep 16, 2025
9808e08
Merge branch 'OpenHUTB:main' into main
xiaodai236 Sep 22, 2025
abea7f9
update
xiaodai236 Sep 22, 2025
64a6a85
update
xiaodai236 Sep 22, 2025
551206e
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Sep 22, 2025
b2c75d7
update
xiaodai236 Sep 24, 2025
243e95c
update
xiaodai236 Sep 24, 2025
d717db4
Merge branch 'OpenHUTB:main' into main
xiaodai236 Sep 24, 2025
aadade5
Merge branch 'OpenHUTB:main' into main
xiaodai236 Sep 24, 2025
c3f8881
update
xiaodai236 Sep 24, 2025
5fefdb9
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Sep 24, 2025
27ee457
update
xiaodai236 Sep 24, 2025
9300624
update
xiaodai236 Sep 28, 2025
dbf6309
update
xiaodai236 Sep 28, 2025
edc016c
update
xiaodai236 Sep 28, 2025
4df5ab1
Merge branch 'OpenHUTB:main' into main
xiaodai236 Sep 28, 2025
39737e2
update
xiaodai236 Sep 28, 2025
f34a366
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Sep 28, 2025
a7aef6a
update
xiaodai236 Sep 28, 2025
c150bbf
update
xiaodai236 Sep 28, 2025
a9f68af
update
xiaodai236 Sep 29, 2025
6448181
update
xiaodai236 Sep 29, 2025
aec50d9
update
xiaodai236 Sep 29, 2025
e085701
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 7, 2025
c0417c9
update
xiaodai236 Oct 13, 2025
67c01d4
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 13, 2025
5b275e6
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 20, 2025
474cb5e
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 20, 2025
a8bc49c
update
xiaodai236 Oct 20, 2025
74389b5
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 20, 2025
ad712de
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 20, 2025
5822c74
update
xiaodai236 Oct 20, 2025
fc7e8d8
update
xiaodai236 Oct 20, 2025
da3353f
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 20, 2025
105415b
update
xiaodai236 Oct 21, 2025
3125cce
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 21, 2025
4d7d81f
update
xiaodai236 Oct 21, 2025
794e0c5
update
xiaodai236 Oct 21, 2025
e083a0b
update
xiaodai236 Oct 21, 2025
ec0bb65
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 21, 2025
c1b9829
update
xiaodai236 Oct 21, 2025
28b635d
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 21, 2025
9cc6a98
update
xiaodai236 Oct 21, 2025
79ff76e
update
xiaodai236 Oct 21, 2025
5709eb4
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 21, 2025
e86e589
update
xiaodai236 Oct 22, 2025
49dbff7
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 22, 2025
93e72fb
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 22, 2025
de2e9c7
update
xiaodai236 Oct 23, 2025
2194d74
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 23, 2025
bc4f0bb
update
xiaodai236 Oct 23, 2025
b09fa64
update
xiaodai236 Oct 28, 2025
5918f29
Merge branch 'OpenHUTB:main' into main
xiaodai236 Oct 28, 2025
7fed461
update
xiaodai236 Oct 28, 2025
ee8adf7
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Oct 28, 2025
a850121
update
xiaodai236 Nov 2, 2025
10f8b63
update
xiaodai236 Nov 4, 2025
a411337
Merge branch 'OpenHUTB:main' into main
xiaodai236 Nov 4, 2025
454ef9d
update
xiaodai236 Nov 4, 2025
3eed5dc
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Nov 4, 2025
266b7a6
update
xiaodai236 Nov 10, 2025
1edbe4d
update
xiaodai236 Nov 10, 2025
ad25037
update
xiaodai236 Nov 14, 2025
d025746
Merge branch 'OpenHUTB:main' into main
xiaodai236 Nov 14, 2025
296ca09
update
xiaodai236 Nov 18, 2025
fb39153
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Nov 18, 2025
0604d3d
Merge branch 'OpenHUTB:main' into main
xiaodai236 Nov 18, 2025
795bd35
update
xiaodai236 Nov 18, 2025
5a8df7d
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Nov 18, 2025
122f1b4
Merge branch 'OpenHUTB:main' into main
xiaodai236 Nov 19, 2025
37a0c18
update
xiaodai236 Nov 19, 2025
dcb9685
update
xiaodai236 Nov 19, 2025
61ae6cd
update
xiaodai236 Nov 24, 2025
3121d99
Merge branch 'OpenHUTB:main' into main
xiaodai236 Nov 24, 2025
bd82e4a
update
xiaodai236 Nov 24, 2025
2fac602
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Nov 24, 2025
d09eaa3
update
xiaodai236 Dec 2, 2025
9ca0a12
Merge branch 'OpenHUTB:main' into main
xiaodai236 Dec 2, 2025
8a0c416
update
xiaodai236 Dec 3, 2025
d05768f
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Dec 3, 2025
5b93a05
update
xiaodai236 Dec 8, 2025
6e5881c
update
xiaodai236 Dec 8, 2025
b6e0986
update
xiaodai236 Dec 8, 2025
2d022be
update
xiaodai236 Dec 8, 2025
360aef9
update
xiaodai236 Dec 8, 2025
ebd7e4e
update
xiaodai236 Dec 8, 2025
0f149fb
update
xiaodai236 Dec 8, 2025
7b7075e
update
xiaodai236 Dec 8, 2025
9ce9995
Merge branch 'OpenHUTB:main' into main
xiaodai236 Dec 8, 2025
0d05c96
update
xiaodai236 Dec 8, 2025
b582817
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Dec 8, 2025
62cdde3
update
xiaodai236 Dec 8, 2025
cccd3d7
Merge branch 'OpenHUTB:main' into main
xiaodai236 Dec 15, 2025
bfecd3b
update
xiaodai236 Dec 15, 2025
147e79e
Merge branch 'main' of https://github.com/xiaodai236/csx_nn
xiaodai236 Dec 15, 2025
a50d658
update
xiaodai236 Dec 15, 2025
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
71 changes: 71 additions & 0 deletions src/humantest/model/demo07_laser.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<robot name="my_laser" xmlns:xacro="http://wiki.ros.org/xacro">

<!-- 雷达支架 -->
<xacro:property name="support_length" value="0.15" /> <!-- 支架长度 -->
<xacro:property name="support_radius" value="0.01" /> <!-- 支架半径 -->
<xacro:property name="support_x" value="0.0" /> <!-- 支架安装的x坐标 -->
<xacro:property name="support_y" value="0.0" /> <!-- 支架安装的y坐标 -->
<xacro:property name="support_z" value="${base_link_length / 2 + support_length / 2}" /> <!-- 支架安装的z坐标:底盘高度 / 2 + 支架高度 / 2 -->
<xacro:property name="support_m" value="0.02" /> <!-- 支架质量 -->

<link name="support">
<visual>
<geometry>
<cylinder radius="${support_radius}" length="${support_length}" />
</geometry>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
<material name="red">
<color rgba="0.8 0.2 0.0 0.5" />
</material>
</visual>
<collision>
<geometry>
<cylinder radius="${support_radius}" length="${support_length}" />
</geometry>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
</collision>
<xacro:cylinder_inertial_matrix m="${support_m}" r="${support_radius}" h="${support_length}" />
</link>
<gazebo reference="support">
<material>Gazebo/White</material>
</gazebo>
<joint name="support2base_link" type="fixed">
<parent link="base_link" />
<child link="support" />
<origin xyz="${support_x} ${support_y} ${support_z}" />
</joint>


<!-- 雷达属性 -->
<xacro:property name="laser_length" value="0.05" /> <!-- 雷达长度 -->
<xacro:property name="laser_radius" value="0.03" /> <!-- 雷达半径 -->
<xacro:property name="laser_x" value="0.0" /> <!-- 雷达安装的x坐标 -->
<xacro:property name="laser_y" value="0.0" /> <!-- 雷达安装的y坐标 -->
<xacro:property name="laser_z" value="${support_length / 2 + laser_length / 2}" /> <!-- 雷达安装的z坐标:支架高度 / 2 + 雷达高度 / 2 -->
<xacro:property name="laser_m" value="0.1" /> <!-- 雷达质量 -->
<!-- 雷达关节以及link -->
<link name="laser">
<visual>
<geometry>
<cylinder radius="${laser_radius}" length="${laser_length}" />
</geometry>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
<material name="black" />
</visual>
<collision>
<geometry>
<cylinder radius="${laser_radius}" length="${laser_length}" />
</geometry>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
</collision>
<xacro:cylinder_inertial_matrix m="${laser_m}" r="${laser_radius}" h="${laser_length}" />
</link>
<gazebo reference="laser">
<material>Gazebo/Black</material>
</gazebo>
<joint name="laser2support" type="fixed">
<parent link="support" />
<child link="laser" />
<origin xyz="${laser_x} ${laser_y} ${laser_z}" />
</joint>
</robot>
13 changes: 13 additions & 0 deletions src/humantest/model/gazebo_laser.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<launch>

<!-- 将 Urdf 文件的内容加载到参数服务器 -->
<param name="robot_description" command="$(find xacro)/xacro $(find urdf2_gazabo)/urdf/robot.xacro" />

<!-- 启动 gazebo -->
<include file="$(find gazebo_ros)/launch/empty_world.launch" >
<arg name="world_name" value="$(find urdf2_gazabo)/worlds/box_house.world" />
</include>

<!-- 在 gazebo 中显示机器人模型 -->
<node pkg="gazebo_ros" type="spawn_model" name="model" args="-urdf -model mycar -param robot_description" />
</launch>
36 changes: 36 additions & 0 deletions src/humantest/model/laser.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<robot name="my_sensors" xmlns:xacro="http://wiki.ros.org/xacro">

<!-- 雷达 -->
<gazebo reference="laser">
<sensor type="ray" name="rplidar">
<pose>0 0 0 0 0 0</pose>
<visualize>true</visualize>
<update_rate>5.5</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>-3</min_angle>
<max_angle>3</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>gaussian</type>
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin name="gazebo_rplidar" filename="libgazebo_ros_laser.so">
<topicName>/scan</topicName>
<frameName>laser</frameName>
</plugin>
</sensor>
</gazebo>

</robot>
4 changes: 2 additions & 2 deletions src/humantest/model/robot.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<xacro:include filename="demo06_car_camera.xacro" />
<xacro:include filename="demo07_laser.xacro" />
<xacro:include filename="gazebo/move.xacro" />

</robot>
<xacro:include filename="gazebo/laser.xacro" />
</robot>
9 changes: 9 additions & 0 deletions src/humantest/model/rviz_laser.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<launch>
<!-- 启动 rviz -->
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find urdf01_rviz)/config/show_mycar.rviz" /> />

<!-- 关节以及机器人状态发布节点 -->
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />

</launch>
Loading