-
Notifications
You must be signed in to change notification settings - Fork 6
/
robile_active_wheel_brick.urdf.xacro
63 lines (46 loc) · 2.44 KB
/
robile_active_wheel_brick.urdf.xacro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<!--
Copyright (c) 2021
KELO Robotics GmbH
Author:
Sushant Chavan
This software is published under a dual-license: GNU Lesser General Public
License LGPL 2.1 and BSD license. The dual-license implies that users of this
code may choose which terms they prefer.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Locomotec nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License LGPL as
published by the Free Software Foundation, either version 2.1 of the
License, or (at your option) any later version or the BSD license.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License LGPL and the BSD license for more details.
You should have received a copy of the GNU Lesser General Public
License LGPL and BSD license along with this program.
-->
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="robile_active_wheel_brick" params="name parent *origin movable_joints:=true">
<!-- Include xacro files-->
<xacro:include filename="$(find robile_description)/urdf/base_macros/brick_housing.urdf.xacro" />
<xacro:include filename="$(find robile_description)/urdf/base_macros/kelo_drive.urdf.xacro" />
<joint name="${name}_joint" type="fixed">
<xacro:insert_block name="origin" />
<parent link="${parent}"/>
<child link="${name}_link" />
</joint>
<xacro:brick_housing name="${name}" with_wheel="true" color="red"/>
<xacro:kelo_drive name="${name}_drive" parent="${name}_link" movable_joints="${movable_joints}">
<origin xyz="0 0 0" rpy="0 0 0.0"/>
</xacro:kelo_drive>
</xacro:macro>
</robot>