Main Page
Classes
Files
File List
File Members
include
volksbot.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013, Osnabrueck University
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* * Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright notice,
11
* this list of conditions and the following disclaimer in the documentation
12
* and/or other materials provided with the distribution.
13
* * Neither the name of the Osnabrueck University nor the names of its
14
* contributors may be used to endorse or promote products derived from this
15
* software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
* POSSIBILITY OF SUCH DAMAGE.
28
*/
29
30
#ifndef _VOLKSBOT_H_
31
#define _VOLKSBOT_H_
32
33
#include <Epos2.h>
34
35
#include "
comm.h
"
36
37
class
Volksbot
38
{
39
public
:
40
Volksbot
(
41
Comm
&comm,
42
double
wheel_radius,
43
double
axis_length,
44
double
turning_adaptation,
45
int
gear_ratio,
46
int
max_vel_l,
47
int
max_vel_r,
48
int
max_acc_l,
49
int
max_acc_r,
50
bool
drive_backwards);
51
~Volksbot
();
52
void
set_wheel_speed
(
double
_v_l_soll,
double
_v_r_soll);
53
double
get_max_vel
();
54
void
odometry
();
55
56
private
:
57
CEpos2
epos2_left_
;
58
CEpos2
epos2_right_
;
59
Comm
&
comm_
;
60
double
wheel_radius_
;
61
double
axis_length_
;
62
double
turning_adaptation_
;
63
int
gear_ratio_
;
64
int
max_vel_l_
;
65
int
max_vel_r_
;
66
int
max_acc_l_
;
67
int
max_acc_r_
;
68
};
69
70
#endif
comm.h
Volksbot::max_vel_l_
int max_vel_l_
Definition:
volksbot.h:64
Comm
Definition:
comm.h:33
Volksbot::max_acc_l_
int max_acc_l_
Definition:
volksbot.h:66
Volksbot::epos2_right_
CEpos2 epos2_right_
Definition:
volksbot.h:58
Volksbot::axis_length_
double axis_length_
Definition:
volksbot.h:61
Volksbot::max_vel_r_
int max_vel_r_
Definition:
volksbot.h:65
Volksbot::~Volksbot
~Volksbot()
Definition:
volksbot.cpp:97
Volksbot::wheel_radius_
double wheel_radius_
Definition:
volksbot.h:60
Volksbot::comm_
Comm & comm_
Definition:
volksbot.h:59
Volksbot::odometry
void odometry()
Definition:
volksbot.cpp:115
Volksbot::gear_ratio_
int gear_ratio_
Definition:
volksbot.h:63
Volksbot::epos2_left_
CEpos2 epos2_left_
Definition:
volksbot.h:57
Volksbot::max_acc_r_
int max_acc_r_
Definition:
volksbot.h:67
Volksbot::turning_adaptation_
double turning_adaptation_
Definition:
volksbot.h:62
Volksbot::Volksbot
Volksbot(Comm &comm, double wheel_radius, double axis_length, double turning_adaptation, int gear_ratio, int max_vel_l, int max_vel_r, int max_acc_l, int max_acc_r, bool drive_backwards)
Definition:
volksbot.cpp:41
Volksbot
Definition:
volksbot.h:37
Volksbot::get_max_vel
double get_max_vel()
Definition:
volksbot.cpp:105
Volksbot::set_wheel_speed
void set_wheel_speed(double _v_l_soll, double _v_r_soll)
Definition:
volksbot.cpp:109
volksbot_driver
Author(s): Jochen Sprickerhof
autogenerated on Sun Jul 21 2019 04:00:45