Kuon  1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
kuonProdBaseStd.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Package: Kuon
4 //
5 // Library: libkuon
6 //
7 // File: kuonProdBaseStd.cxx
8 //
9 /*! \file
10  *
11  * $LastChangedDate: 2014-04-04 17:05:03 -0600 (Fri, 04 Apr 2014) $
12  * $Rev: 3629 $
13  *
14  * \brief Kuon standard size robotic mobile platform base static specification.
15  *
16  * \author Robin Knight (robin.knight@roadnarrows.com)
17  *
18  * \copyright
19  * \h_copy 2014-2017. RoadNarrows LLC.\n
20  * http://www.roadnarrows.com\n
21  * All Rights Reserved
22  */
23 /*
24  * @EulaBegin@
25  *
26  * Permission is hereby granted, without written agreement and without
27  * license or royalty fees, to use, copy, modify, and distribute this
28  * software and its documentation for any purpose, provided that
29  * (1) The above copyright notice and the following two paragraphs
30  * appear in all copies of the source code and (2) redistributions
31  * including binaries reproduces these notices in the supporting
32  * documentation. Substantial modifications to this software may be
33  * copyrighted by their authors and need not follow the licensing terms
34  * described here, provided that the new terms are clearly indicated in
35  * all files where they apply.
36  *
37  * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES
38  * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
39  * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
40  * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
41  * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
42  * THE POSSIBILITY OF SUCH DAMAGE.
43  *
44  * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,
45  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
46  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN
47  * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO
48  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
49  *
50  * @EulaEnd@
51  */
52 ////////////////////////////////////////////////////////////////////////////////
53 
54 #include "Kuon/RS160DControl.h"
55 
56 #include "Kuon/kuon.h"
57 #include "Kuon/kuonSpec.h"
58 #include "Kuon/kuonProdBaseStd.h"
59 
60 using namespace std;
61 using namespace kuon;
62 
63 
64 /*!
65  * \brief Default specification of motors, wheels, and tires.
66  *
67  * \par Data:
68  * name, motor_id, motor_ctlr_id, motor_index, gear_ratio, tire_radius(mm), dir
69  */
71 {
72  { "left_front",
73  KuonMotorIdLF, KuonMotorCtlrId0, RS160D_MOTOR_LEFT_ID,
74  1.0, 200.0, KuonMotorDirCcw
75  },
76  { "right_front",
77  KuonMotorIdRF, KuonMotorCtlrId0, RS160D_MOTOR_RIGHT_ID,
78  1.0, 200.0, KuonMotorDirCw
79  },
80  { "left_rear",
81  KuonMotorIdLR, KuonMotorCtlrId1, RS160D_MOTOR_LEFT_ID,
82  1.0, 200.0, KuonMotorDirCcw
83  },
84  { "right_rear",
85  KuonMotorIdRR, KuonMotorCtlrId1, RS160D_MOTOR_RIGHT_ID,
86  1.0, 200.0, KuonMotorDirCw
87  },
88 };
static const int KuonMotorIdLR
left rear
Definition: kuon.h:304
static const int KuonMotorIdLF
left front
Definition: kuon.h:302
static const int KuonMotorIdRR
right rear
Definition: kuon.h:305
The <b><i>Kuon</i></b> namespace encapsulates all <b><i>Kuon</i></b> related constructs.
Definition: kuon.h:66
Robotic motor specification.
Definition: kuonSpec.h:111
Kuon standard size robotic mobile platform base static specification.
const KuonSpecMotor_T KuonProdBaseStdSpecMotors[]
Specification of servos.
<b><i>Kuon</i></b> product specification base classes.
const int KuonProdBaseStdNumMotors
number of motors
RoadNarrows Kuon robot top-level header file.
static const int KuonMotorCtlrId0
motor controller id 0
Definition: kuon.h:309
static const int KuonMotorIdRF
right front
Definition: kuon.h:303
static const int KuonMotorCtlrId1
motor controller id 1
Definition: kuon.h:310
static const int KuonMotorDirCcw
counter-clockwise
Definition: kuon.h:314
static const int KuonMotorDirCw
clockwise
Definition: kuon.h:315