Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
e
f
g
h
i
m
o
p
r
s
t
u
w
z
Functions
+
Variables
a
c
d
f
h
i
o
p
r
s
t
u
z
Typedefs
Enumerations
+
Enumerator
a
e
f
g
i
m
p
s
w
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
+
Files
File List
+
File Members
All
Functions
include
fsrobo_r_driver
simple_message
set_tool_offset.h
Go to the documentation of this file.
1
/*********************************************************************
2
* FSRobo-R Package BSDL
3
* ---------
4
* Copyright (C) 2019 FUJISOFT. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without modification,
7
* are permitted provided that the following conditions are met:
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright notice,
11
* this list of conditions and the following disclaimer in the documentation and/or
12
* other materials provided with the distribution.
13
* 3. Neither the name of the copyright holder nor the names of its contributors
14
* may be used to endorse or promote products derived from this software without
15
* specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
*********************************************************************/
28
29
#ifndef FSROBO_R_DRIVER_SIMPLE_MESSAGE_SET_TOOL_OFFSET_H
30
#define FSROBO_R_DRIVER_SIMPLE_MESSAGE_SET_TOOL_OFFSET_H
31
32
#include "
simple_message/simple_serialize.h
"
33
#include "
simple_message/shared_types.h
"
34
#include "
simple_message/log_wrapper.h
"
35
#include <vector>
36
37
namespace
fsrobo_r_driver
38
{
39
namespace
simple_message
40
{
41
namespace
set_tool_offset
42
{
43
60
class
SetToolOffset
:
public
industrial::simple_serialize::SimpleSerialize
61
{
62
public
:
69
SetToolOffset
(
void
);
70
75
~SetToolOffset
(
void
);
76
81
void
init
();
82
87
void
init
(
industrial::shared_types::shared_real
x,
88
industrial::shared_types::shared_real
y,
89
industrial::shared_types::shared_real
z
,
90
industrial::shared_types::shared_real
rz,
91
industrial::shared_types::shared_real
ry,
92
industrial::shared_types::shared_real
rx);
93
99
void
setX
(
industrial::shared_types::shared_real
x)
100
{
101
this->
x_
= x;
102
}
103
109
void
setY
(
industrial::shared_types::shared_real
y)
110
{
111
this->
y_
= y;
112
}
113
119
void
setZ
(
industrial::shared_types::shared_real
z)
120
{
121
this->
z_
=
z
;
122
}
123
129
void
setRz
(
industrial::shared_types::shared_real
rz)
130
{
131
this->
rz_
= rz;
132
}
133
139
void
setRy
(
industrial::shared_types::shared_real
ry)
140
{
141
this->
ry_
= ry;
142
}
143
149
void
setRx
(
industrial::shared_types::shared_real
rx)
150
{
151
this->
rx_
= rx;
152
}
153
159
industrial::shared_types::shared_real
getX
()
160
{
161
return
this->
x_
;
162
}
163
169
industrial::shared_types::shared_real
getY
()
170
{
171
return
this->
y_
;
172
}
173
179
industrial::shared_types::shared_real
getZ
()
180
{
181
return
this->
z_
;
182
}
183
189
industrial::shared_types::shared_real
getRz
()
190
{
191
return
this->
rz_
;
192
}
193
199
industrial::shared_types::shared_real
getRx
()
200
{
201
return
this->
rx_
;
202
}
203
209
industrial::shared_types::shared_real
getRy
()
210
{
211
return
this->
ry_
;
212
}
213
219
void
copyFrom
(
SetToolOffset
&src);
220
226
bool
operator==
(
SetToolOffset
&rhs);
227
228
// Overrides - SimpleSerialize
229
bool
load
(
industrial::byte_array::ByteArray
*buffer);
230
bool
unload
(
industrial::byte_array::ByteArray
*buffer);
231
unsigned
int
byteLength
()
232
{
233
return
6 *
sizeof
(
industrial::shared_types::shared_int
);
234
}
235
236
private
:
240
industrial::shared_types::shared_real
x_
;
241
industrial::shared_types::shared_real
y_
;
242
industrial::shared_types::shared_real
z_
;
243
industrial::shared_types::shared_real
rz_
;
244
industrial::shared_types::shared_real
ry_
;
245
industrial::shared_types::shared_real
rx_
;
246
};
247
}
248
}
249
}
250
251
#endif // FSROBO_R_DRIVER_SIMPLE_MESSAGE_SET_TOOL_OFFSET_H
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setRx
void setRx(industrial::shared_types::shared_real rx)
Sets offset.
Definition:
set_tool_offset.h:149
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::SetToolOffset
SetToolOffset(void)
Default constructor.
Definition:
set_tool_offset.cpp:42
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::rz_
industrial::shared_types::shared_real rz_
Definition:
set_tool_offset.h:243
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::x_
industrial::shared_types::shared_real x_
Values of tool origin.
Definition:
set_tool_offset.h:240
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::rx_
industrial::shared_types::shared_real rx_
Definition:
set_tool_offset.h:245
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getX
industrial::shared_types::shared_real getX()
Returns offset.
Definition:
set_tool_offset.h:159
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::y_
industrial::shared_types::shared_real y_
Definition:
set_tool_offset.h:241
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getZ
industrial::shared_types::shared_real getZ()
Returns offset.
Definition:
set_tool_offset.h:179
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getRx
industrial::shared_types::shared_real getRx()
Returns offset.
Definition:
set_tool_offset.h:199
fsrobo_r_driver
Definition:
fsrobo_r_joint_trajectory_action.h:41
hand_test.z
z
Definition:
hand_test.py:14
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset
Class encapsulated tool offset data. FSRobo-R specific interface to set tool offset on the controller...
Definition:
set_tool_offset.h:60
industrial::simple_serialize::SimpleSerialize
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setRy
void setRy(industrial::shared_types::shared_real ry)
Sets offset.
Definition:
set_tool_offset.h:139
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setY
void setY(industrial::shared_types::shared_real y)
Sets offset.
Definition:
set_tool_offset.h:109
log_wrapper.h
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::ry_
industrial::shared_types::shared_real ry_
Definition:
set_tool_offset.h:244
industrial::byte_array::ByteArray
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::byteLength
unsigned int byteLength()
Definition:
set_tool_offset.h:231
industrial::shared_types::shared_real
float shared_real
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::unload
bool unload(industrial::byte_array::ByteArray *buffer)
Definition:
set_tool_offset.cpp:132
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setX
void setX(industrial::shared_types::shared_real x)
Sets offset.
Definition:
set_tool_offset.h:99
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::init
void init()
Initializes a empty set tool offset command.
Definition:
set_tool_offset.cpp:51
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::~SetToolOffset
~SetToolOffset(void)
Destructor.
Definition:
set_tool_offset.cpp:47
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::copyFrom
void copyFrom(SetToolOffset &src)
Copies the passed in value.
Definition:
set_tool_offset.cpp:66
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getRz
industrial::shared_types::shared_real getRz()
Returns offset.
Definition:
set_tool_offset.h:189
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setZ
void setZ(industrial::shared_types::shared_real z)
Sets offset.
Definition:
set_tool_offset.h:119
industrial::shared_types::shared_int
int shared_int
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getY
industrial::shared_types::shared_real getY()
Returns offset.
Definition:
set_tool_offset.h:169
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::setRz
void setRz(industrial::shared_types::shared_real rz)
Sets offset.
Definition:
set_tool_offset.h:129
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::load
bool load(industrial::byte_array::ByteArray *buffer)
Definition:
set_tool_offset.cpp:88
shared_types.h
simple_serialize.h
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::operator==
bool operator==(SetToolOffset &rhs)
== operator implementation
Definition:
set_tool_offset.cpp:76
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::z_
industrial::shared_types::shared_real z_
Definition:
set_tool_offset.h:242
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::getRy
industrial::shared_types::shared_real getRy()
Returns offset.
Definition:
set_tool_offset.h:209
simple_message
Definition:
simple_message.py:1
fsrobo_r_driver
Author(s): F-ROSROBO
autogenerated on Mon Feb 28 2022 22:27:23