Skip to content

Commit a41dbf8

Browse files
Merge pull request RobotnikAutomation#27 from RobotnikAutomation/melodic-devel-blk
add sensor blk_arc
2 parents ffe25eb + 389d57b commit a41dbf8

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

urdf/all_sensors.urdf.xacro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
<!-- Axis q8641 -->
2323
<xacro:include filename="$(find robotnik_sensors)/urdf/axis_q8641.urdf.xacro" />
24-
24+
25+
<!-- BLK ARC -->
26+
<xacro:include filename="$(find robotnik_sensors)/urdf/blk_arc.urdf.xacro" />
2527

2628
<!-- Flir AX8 -->
2729
<xacro:include filename="$(find robotnik_sensors)/urdf/flir_ax8.urdf.xacro" />

urdf/blk_arc.urdf.xacro

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
<robot name="sensor_blk_arc" xmlns:xacro="http://wiki.ros.org/xacro">
3+
4+
<xacro:macro name="sensor_blk_arc" params="prefix parent *origin">
5+
6+
<joint name="${prefix}_joint" type="fixed">
7+
<xacro:insert_block name="origin"/>
8+
<parent link="${parent}"/>
9+
<child link="${prefix}_link"/>
10+
</joint>
11+
12+
<link name="${prefix}_link">
13+
<inertial>
14+
<origin xyz="0.0 0 0.0" rpy="0 0 0" />
15+
<mass value="0.79" />
16+
<xacro:solid_cuboid_inertia m="0.125" w="0.025" h="0.054" d="0.079" />
17+
</inertial>
18+
<visual>
19+
<origin xyz="0.0 0 0" rpy="0 0 0" /> <!-- to center the .dae model -->
20+
<material name="fotonic_color">
21+
<color rgba="0.5 0.5 0.5 1"/>
22+
</material>
23+
<geometry>
24+
<cylinder radius="0.04" length="0.12"/>
25+
</geometry>
26+
</visual>
27+
<collision>
28+
<origin xyz="0.0 0 0" rpy="0 0 0" />
29+
<geometry>
30+
<cylinder radius="0.04" length="0.12"/>
31+
</geometry>
32+
</collision>
33+
</link>
34+
35+
</xacro:macro>
36+
37+
</robot>

0 commit comments

Comments
 (0)