Main Page
Namespaces
Classes
Files
File List
File Members
include
pr2_mechanism_model
joint_calibration_simulator.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008, Willow Garage, Inc.
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
9
* notice, this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* * Neither the name of the Willow Garage, Inc. nor the names of its
14
* contributors may be used to endorse or promote products derived from
15
* this 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 OWNER 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
// Author: Wim Meeussen
31
#ifndef JOINT_CALIBRATION_SIMULATOR_H
32
#define JOINT_CALIBRATION_SIMULATOR_H
33
34
#include "
pr2_mechanism_model/joint.h
"
35
#include "
pr2_hardware_interface/hardware_interface.h
"
36
#include <urdf_model/joint.h>
37
38
39
namespace
pr2_mechanism_model
40
{
41
42
class
JointCalibrationSimulator
43
{
44
public
:
45
JointCalibrationSimulator
();
46
void
simulateJointCalibration
(
pr2_mechanism_model::JointState
*,
47
pr2_hardware_interface::Actuator
*);
48
49
private
:
50
void
GetJointCalibrationInfo
(
pr2_mechanism_model::JointState
*);
51
bool
calibration_initialized_
;
52
bool
calibration_has_rising_
,
calibration_has_falling_
,
calibration_continuous_
;
53
double
calibration_rising_
,
calibration_falling_
;
54
bool
got_info_
;
55
bool
calibration_bump_
;
56
bool
old_calibration_reading_
;
57
double
old_calibration_pos_
;
58
double
old_calibration_as_pos_
;
59
};
60
}
61
#endif
pr2_mechanism_model::JointCalibrationSimulator::calibration_continuous_
bool calibration_continuous_
Definition:
joint_calibration_simulator.h:52
pr2_mechanism_model::JointCalibrationSimulator::old_calibration_pos_
double old_calibration_pos_
Definition:
joint_calibration_simulator.h:57
pr2_mechanism_model
Definition:
chain.h:41
pr2_mechanism_model::JointState
Definition:
joint.h:71
pr2_mechanism_model::JointCalibrationSimulator::JointCalibrationSimulator
JointCalibrationSimulator()
Definition:
joint_calibration_simulator.cpp:39
pr2_mechanism_model::JointCalibrationSimulator::simulateJointCalibration
void simulateJointCalibration(pr2_mechanism_model::JointState *, pr2_hardware_interface::Actuator *)
Definition:
joint_calibration_simulator.cpp:91
pr2_mechanism_model::JointCalibrationSimulator::calibration_has_falling_
bool calibration_has_falling_
Definition:
joint_calibration_simulator.h:52
pr2_mechanism_model::JointCalibrationSimulator::calibration_initialized_
bool calibration_initialized_
Definition:
joint_calibration_simulator.h:51
pr2_mechanism_model::JointCalibrationSimulator::got_info_
bool got_info_
Definition:
joint_calibration_simulator.h:54
joint.h
pr2_mechanism_model::JointCalibrationSimulator::old_calibration_reading_
bool old_calibration_reading_
Definition:
joint_calibration_simulator.h:56
pr2_mechanism_model::JointCalibrationSimulator::calibration_has_rising_
bool calibration_has_rising_
Definition:
joint_calibration_simulator.h:52
pr2_mechanism_model::JointCalibrationSimulator::calibration_bump_
bool calibration_bump_
Definition:
joint_calibration_simulator.h:55
pr2_mechanism_model::JointCalibrationSimulator::calibration_rising_
double calibration_rising_
Definition:
joint_calibration_simulator.h:53
pr2_mechanism_model::JointCalibrationSimulator
Definition:
joint_calibration_simulator.h:42
pr2_mechanism_model::JointCalibrationSimulator::calibration_falling_
double calibration_falling_
Definition:
joint_calibration_simulator.h:53
pr2_mechanism_model::JointCalibrationSimulator::GetJointCalibrationInfo
void GetJointCalibrationInfo(pr2_mechanism_model::JointState *)
Definition:
joint_calibration_simulator.cpp:48
pr2_hardware_interface::Actuator
hardware_interface.h
pr2_mechanism_model::JointCalibrationSimulator::old_calibration_as_pos_
double old_calibration_as_pos_
Definition:
joint_calibration_simulator.h:58
pr2_mechanism_model
Author(s): Eric Berger berger@willowgarage.com, Stuart Glaser, Wim Meeussen
autogenerated on Mon Jun 10 2019 14:19:04