Main Page
Namespaces
Classes
Files
File List
File Members
include
fsrobo_r_driver
simple_message
messages
set_tool_offset_message.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_MESSAGE_H
30
#define FSROBO_R_DRIVER_SIMPLE_MESSAGE_SET_TOOL_OFFSET_MESSAGE_H
31
32
#include "
simple_message/typed_message.h
"
33
#include "
simple_message/shared_types.h
"
34
#include "
fsrobo_r_driver/simple_message/fsrobo_r_simple_message.h
"
35
#include "
fsrobo_r_driver/simple_message/set_tool_offset.h
"
36
37
namespace
fsrobo_r_driver
38
{
39
namespace
simple_message
40
{
41
namespace
set_tool_offset_message
42
{
55
class
SetToolOffsetMessage
:
public
industrial::typed_message::TypedMessage
56
{
57
public
:
64
SetToolOffsetMessage
(
void
);
65
70
~SetToolOffsetMessage
(
void
);
71
79
bool
init
(
industrial::simple_message::SimpleMessage
& msg);
80
87
void
init
(
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset
&
cmd
);
88
93
void
init
();
94
95
// Overrides - SimpleSerialize
96
bool
load
(
industrial::byte_array::ByteArray
*buffer);
97
bool
unload
(
industrial::byte_array::ByteArray
*buffer);
98
99
unsigned
int
byteLength
()
100
{
101
return
this->
cmd_
.
byteLength
();
102
}
103
104
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset
cmd_
;
105
106
private
:
107
};
108
}
109
}
110
}
111
112
#endif // FSROBO_R_DRIVER_SIMPLE_MESSAGE_SET_TOOL_OFFSET_MESSAGE_H
cmd
string cmd
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::init
void init()
Initializes a new message.
Definition:
set_tool_offset_message.cpp:73
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::~SetToolOffsetMessage
~SetToolOffsetMessage(void)
Destructor.
Definition:
set_tool_offset_message.cpp:49
fsrobo_r_driver
Definition:
fsrobo_r_joint_trajectory_action.h:41
industrial::simple_message::SimpleMessage
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
fsrobo_r_simple_message.h
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::byteLength
unsigned int byteLength()
Definition:
set_tool_offset_message.h:99
set_tool_offset.h
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::cmd_
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset cmd_
Definition:
set_tool_offset_message.h:104
industrial::typed_message::TypedMessage
industrial::byte_array::ByteArray
fsrobo_r_driver::simple_message::set_tool_offset::SetToolOffset::byteLength
unsigned int byteLength()
Definition:
set_tool_offset.h:231
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage
Class encapsulated FSRobo-R set tool offset message generation methods (either to or from a industria...
Definition:
set_tool_offset_message.h:55
typed_message.h
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::load
bool load(industrial::byte_array::ByteArray *buffer)
Definition:
set_tool_offset_message.cpp:79
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::SetToolOffsetMessage
SetToolOffsetMessage(void)
Default constructor.
Definition:
set_tool_offset_message.cpp:44
shared_types.h
fsrobo_r_driver::simple_message::set_tool_offset_message::SetToolOffsetMessage::unload
bool unload(industrial::byte_array::ByteArray *buffer)
Definition:
set_tool_offset_message.cpp:91
simple_message
Definition:
simple_message.py:1
fsrobo_r_driver
Author(s): F-ROSROBO
autogenerated on Sun Feb 9 2020 03:58:29