Skip to content

Commit e228d1b

Browse files
committed
intial cleanup
1 parent 3217d0d commit e228d1b

9 files changed

+11
-315
lines changed

urdf/sensor_plugins/smb_diff_drive_plugin.urdf.xacro

Lines changed: 0 additions & 33 deletions
This file was deleted.

urdf/sensor_plugins/smb_imu.gazebo.xacro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
<gazebo reference="${imu_link}">
2525
<sensor name="imu_sensor" type="imu">
2626
<gz_frame_id>imu_link</gz_frame_id>
27-
<!-- <frame>imu</frame>
28-
<gz_frame_id>imu</gz_frame_id> -->
29-
<!-- <pose relative_to='imu'>0 0 0 0 0 0</pose> -->
3027
<always_on>true</always_on>
3128
<update_rate>400</update_rate>
3229
<visualize>true</visualize>
@@ -80,7 +77,6 @@
8077
<material>Gazebo/Orange</material>
8178
</gazebo>
8279

83-
8480
<gazebo reference="imu_joint">
8581
<disableFixedJointLumping>true</disableFixedJointLumping>
8682
</gazebo>

urdf/sensor_plugins/smb_lidar.gazebo.xacro

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<xacro:property name="M_PI" value="3.1415926535897931" />
1111

1212
<xacro:macro name="LIDAR" params="parent_link simulation">
13-
14-
<!-- <xacro:if value="${simulation}"> -->
1513

1614
<!-- Replacing RS-16 with the default Gazebo lidar -->
1715
<link name="rslidar">
@@ -35,8 +33,6 @@
3533
<parent link="${parent_link}"/>
3634
<child link="rslidar"/>
3735
<origin xyz="0.0 0.0 ${lidarBoxHeight+0.039}" rpy="0 0 0"/>
38-
<!-- <axis xyz="0 0 1"/> -->
39-
<!-- <limit lower="0.0" upper="0.0" effort="0.0" velocity="0.0"/> -->
4036
</joint>
4137

4238
<gazebo reference='${parent_link}_to_rslidar'>
@@ -52,7 +48,6 @@
5248

5349
<gazebo reference="rslidar">
5450
<sensor name="rslidar" type="gpu_lidar">
55-
<!-- <frame>rslidar</frame> -->
5651
<gz_frame_id>rslidar</gz_frame_id>
5752
<pose relative_to='rslidar'>0 0 0 0 0 0</pose>
5853
<topic>scan</topic>
@@ -75,21 +70,17 @@
7570

7671
<!-- Range settings for RS32 -->
7772
<range>
78-
<min>0.2</min> <!-- Minimum detection range -->
79-
<max>50.0</max> <!-- Maximum detection range; can vary slightly with RS32 models -->
80-
<resolution>0.01</resolution> <!-- Resolution of 1 cm for high accuracy -->
73+
<min>0.2</min>
74+
<max>50.0</max>
75+
<resolution>0.01</resolution>
8176
</range>
8277
</ray>
8378

84-
<!-- Visualization for Gazebo UI -->
8579
<always_on>1</always_on>
8680
<visualize>true</visualize>
8781
</sensor>
8882
</gazebo>
8983

90-
91-
<!-- </xacro:if> -->
92-
9384
</xacro:macro>
9485

9586
</robot>

urdf/sensor_plugins/smb_odometry.gazebo.xacro

Lines changed: 0 additions & 38 deletions
This file was deleted.

urdf/sensor_plugins/smb_odometry.urdf.xacro

Lines changed: 0 additions & 84 deletions
This file was deleted.

urdf/sensor_plugins/smb_rgb_camera.gazebo.xacro

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,6 @@
77
<xacro:property name="camera_topic" value="/${name}/image_raw" />
88
<xacro:property name="camera_info_topic" value="/${name}/camera_info" />
99

10-
<!-- <gazebo> -->
11-
<!-- <plugin
12-
filename="gz-sim-physics-system"
13-
name="gz::sim::systems::Physics">
14-
</plugin> -->
15-
<!-- <plugin
16-
filename="gz-sim-sensors-system"
17-
name="gz::sim::systems::Sensors">
18-
<render_engine>ogre2</render_engine>
19-
</plugin> -->
20-
<!-- <plugin
21-
filename="gz-sim-user-commands-system"
22-
name="gz::sim::systems::UserCommands">
23-
</plugin>
24-
<plugin
25-
filename="gz-sim-scene-broadcaster-system"
26-
name="gz::sim::systems::SceneBroadcaster">
27-
</plugin> -->
28-
<!-- </gazebo> -->
29-
30-
3110
<gazebo reference="${link_name}">
3211
<sensor name="camera" type="camera">
3312
<camera>

urdf/sensor_plugins/smb_rgb_camera.urdf.xacro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@
6161
<child link="rgb_camera${id}_optical_link"/>
6262
</joint>
6363

64-
<!-- <xacro:if value="${simulation}"> -->
6564
<xacro:rgb_camera_camera_plugin name="rgb_camera" link_name="${rgb_camera_link}" rate="${rgb_camera_update_rate}"/>
66-
<!-- </xacro:if> -->
67-
6865

6966
</xacro:macro>
7067
</robot>

urdf/smb.urdf.xacro

Lines changed: 8 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</plugin>
2828
</gazebo>
2929

30-
<xacro:macro name="wheel" params="prefix reflect X friction_coeff:=0.2">
30+
<xacro:macro name="wheel" params="prefix reflect X ">
3131
<joint name="${prefix}_WHEEL_JOINT" type="continuous">
3232
<parent link="${base_link_name}" />
3333
<child link="${prefix}_WHEEL" />
@@ -57,15 +57,13 @@
5757
</inertial>
5858
</link>
5959

60-
<!-- Add joint controller for this wheel -->
6160
<gazebo>
6261
<plugin filename="gz-sim-joint-controller-system" name="gz::sim::systems::JointController">
6362
<joint_name>${prefix}_WHEEL_JOINT</joint_name>
6463
<topic>${prefix}_WHEEL_JOINT_velocity_cmd</topic>
65-
<!-- <control_type>velocity</control_type> -->
66-
<p_gain>0.0</p_gain> <!-- Proportional gain -->
67-
<i_gain>0.0</i_gain> <!-- Integral gain -->
68-
<d_gain>5.0</d_gain> <!-- Derivative gain -->
64+
<p_gain>0.0</p_gain>
65+
<i_gain>0.0</i_gain>
66+
<d_gain>5.0</d_gain>
6967
</plugin>
7068
</gazebo>
7169
</xacro:macro>
@@ -109,32 +107,6 @@
109107
</inertial>
110108
</link>
111109

112-
<joint name="base_footprint_to_base_link" type="fixed">
113-
<parent link="${base_link_name}"/>
114-
<child link="base_footprint"/>
115-
<origin xyz="0 0 0" rpy="0 0 0"/>
116-
</joint>
117-
118-
<link name="base_footprint">
119-
<inertial>
120-
<origin xyz="0 0 0" rpy="0 0 0"/>
121-
<mass value="0.1"/>
122-
<xacro:box_inertia m="${chassisMass}"
123-
x="${chassisLength}"
124-
y="${chassisWidth}"
125-
z="${chassisHeight}"/>
126-
</inertial>
127-
<visual>
128-
<origin xyz="0 0 0" rpy="0 0 0"/>
129-
<geometry>
130-
<box size="0.1 0.1 0.1"/>
131-
</geometry>
132-
<material name="base_material">
133-
<color rgba="0.8 0.0 0.1 1.0"/>
134-
</material>
135-
</visual>
136-
</link>
137-
138110
<link name="top">
139111
<collision>
140112
<origin xyz="${topXOffset} 0 0" rpy="0 0 0"/>
@@ -161,24 +133,16 @@
161133
<joint name="top_to_base_link" type="fixed">
162134
<parent link="${base_link_name}"/>
163135
<child link="top"/>
164-
<!-- <origin xyz="${topXOffset/2.0} 0.0 ${chassisHeight/2.0 + topHeight/2.0}" rpy="0 0 0"/> -->
165136
<origin xyz="0.0 0.0 ${chassisHeight/2.0}" rpy="0 0 0"/>
166137
</joint>
167138

168139
</xacro:macro>
169140

170-
<!-- urdf -->
171-
172141
<xacro:chassis />
173-
174-
<xacro:wheel prefix="LF" X="${frontWheelX}" reflect="1" friction_coeff="0.85" />
175-
176-
<xacro:wheel prefix="RF" X="${frontWheelX}" reflect="-1" friction_coeff="0.85" />
177-
178-
<xacro:wheel prefix="LH" X="${backWheelX}" reflect="1" friction_coeff="0.85" />
179-
180-
<xacro:wheel prefix="RH" X="${backWheelX}" reflect="-1" friction_coeff="0.85" />
181-
142+
<xacro:wheel prefix="LF" X="${frontWheelX}" reflect="1" />
143+
<xacro:wheel prefix="RF" X="${frontWheelX}" reflect="-1" />
144+
<xacro:wheel prefix="LH" X="${backWheelX}" reflect="1" />
145+
<xacro:wheel prefix="RH" X="${backWheelX}" reflect="-1" />
182146

183147
<xacro:IMU base_link="${base_link_name}" simulation="${simulation}"/>
184148

@@ -189,10 +153,4 @@
189153
<xacro:lidar_mount base_link="${base_link_name}"/>
190154
<xacro:LIDAR parent_link="lidar_mount_link" simulation="${simulation}"/>
191155

192-
<xacro:REALSENSE_T265 base_link="base_link"
193-
t265_origin_xyz="0.309 0.008 0.352"
194-
t265_origin_rpy="0 0 0"
195-
simulation="True"/>
196-
197-
198156
</robot>

0 commit comments

Comments
 (0)