src
commands
move_joint_command.cpp
Go to the documentation of this file.
1
26
#include <
tesseract_common/macros.h
>
27
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
28
#include <boost/serialization/access.hpp>
29
#include <boost/serialization/nvp.hpp>
30
#include <string>
31
TESSERACT_COMMON_IGNORE_WARNINGS_POP
32
33
#include <
tesseract_common/utils.h
>
34
#include <
tesseract_environment/commands/move_joint_command.h
>
35
36
namespace
tesseract_environment
37
{
38
MoveJointCommand::MoveJointCommand
() :
Command
(
CommandType
::
MOVE_JOINT
) {}
39
40
MoveJointCommand::MoveJointCommand
(std::string joint_name, std::string parent_link)
41
:
Command
(
CommandType
::
MOVE_JOINT
), joint_name_(std::move(joint_name)), parent_link_(std::move(parent_link))
42
{
43
}
44
45
const
std::string&
MoveJointCommand::getJointName
()
const
{
return
joint_name_
; }
46
const
std::string&
MoveJointCommand::getParentLink
()
const
{
return
parent_link_
; }
47
48
bool
MoveJointCommand::operator==
(
const
MoveJointCommand
& rhs)
const
49
{
50
bool
equal =
true
;
51
equal &=
Command::operator==
(rhs);
52
equal &=
joint_name_
== rhs.
joint_name_
;
53
equal &=
parent_link_
== rhs.
parent_link_
;
54
return
equal;
55
}
56
bool
MoveJointCommand::operator!=
(
const
MoveJointCommand
& rhs)
const
{
return
!
operator==
(rhs); }
57
58
template
<
class
Archive>
59
void
MoveJointCommand::serialize
(Archive& ar,
const
unsigned
int
/*version*/
)
60
{
61
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Command
);
62
ar& BOOST_SERIALIZATION_NVP(
joint_name_
);
63
ar& BOOST_SERIALIZATION_NVP(
parent_link_
);
64
}
65
}
// namespace tesseract_environment
66
67
#include <
tesseract_common/serialization.h
>
68
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
(
tesseract_environment::MoveJointCommand
)
69
BOOST_CLASS_EXPORT_IMPLEMENT(
tesseract_environment::MoveJointCommand
)
tesseract_environment::MoveJointCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition:
move_joint_command.cpp:59
tesseract_environment::Command::operator==
bool operator==(const Command &rhs) const
Definition:
command.cpp:60
tesseract_environment
Definition:
command.h:45
tesseract_environment::Command
Definition:
command.h:83
utils.h
tesseract_environment::MoveJointCommand::operator==
bool operator==(const MoveJointCommand &rhs) const
Definition:
move_joint_command.cpp:48
tesseract_environment::MoveJointCommand::joint_name_
std::string joint_name_
Definition:
move_joint_command.h:70
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
tesseract_environment::CommandType::MOVE_JOINT
@ MOVE_JOINT
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_environment::MoveJointCommand
Definition:
move_joint_command.h:45
tesseract_environment::MoveJointCommand::getParentLink
const std::string & getParentLink() const
Definition:
move_joint_command.cpp:46
tesseract_environment::MoveJointCommand::MoveJointCommand
MoveJointCommand()
Definition:
move_joint_command.cpp:38
serialization.h
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::MoveJointCommand::operator!=
bool operator!=(const MoveJointCommand &rhs) const
Definition:
move_joint_command.cpp:56
tesseract_environment::MoveJointCommand::getJointName
const std::string & getJointName() const
Definition:
move_joint_command.cpp:45
tesseract_environment::MoveJointCommand::parent_link_
std::string parent_link_
Definition:
move_joint_command.h:71
move_joint_command.h
Used to move joint in environment.
macros.h
tesseract_environment::CommandType
CommandType
Definition:
command.h:47
tesseract_environment
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:21