src
commands
add_kinematics_information_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 <boost/serialization/shared_ptr.hpp>
31
TESSERACT_COMMON_IGNORE_WARNINGS_POP
32
33
#include <
tesseract_common/utils.h
>
34
#include <
tesseract_environment/commands/add_kinematics_information_command.h
>
35
36
namespace
tesseract_environment
37
{
38
AddKinematicsInformationCommand::AddKinematicsInformationCommand
() :
Command
(
CommandType
::
ADD_KINEMATICS_INFORMATION
) {}
39
40
AddKinematicsInformationCommand::AddKinematicsInformationCommand
(
41
tesseract_srdf::KinematicsInformation
kinematics_information)
42
:
Command
(
CommandType
::
ADD_KINEMATICS_INFORMATION
), kinematics_information_(std::move(kinematics_information))
43
{
44
}
45
46
const
tesseract_srdf::KinematicsInformation
&
AddKinematicsInformationCommand::getKinematicsInformation
()
const
47
{
48
return
kinematics_information_
;
49
}
50
51
bool
AddKinematicsInformationCommand::operator==
(
const
AddKinematicsInformationCommand
& rhs)
const
52
{
53
bool
equal =
true
;
54
equal &=
Command::operator==
(rhs);
55
equal &=
kinematics_information_
== rhs.
kinematics_information_
;
56
return
equal;
57
}
58
bool
AddKinematicsInformationCommand::operator!=
(
const
AddKinematicsInformationCommand
& rhs)
const
59
{
60
return
!
operator==
(rhs);
61
}
62
63
template
<
class
Archive>
64
void
AddKinematicsInformationCommand::serialize
(Archive& ar,
const
unsigned
int
/*version*/
)
65
{
66
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Command
);
67
ar& BOOST_SERIALIZATION_NVP(
kinematics_information_
);
68
}
69
}
// namespace tesseract_environment
70
71
#include <
tesseract_common/serialization.h
>
72
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
(
tesseract_environment::AddKinematicsInformationCommand
)
73
BOOST_CLASS_EXPORT_IMPLEMENT(
tesseract_environment::AddKinematicsInformationCommand
)
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::AddKinematicsInformationCommand::AddKinematicsInformationCommand
AddKinematicsInformationCommand()
Definition:
add_kinematics_information_command.cpp:38
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_environment::CommandType::ADD_KINEMATICS_INFORMATION
@ ADD_KINEMATICS_INFORMATION
tesseract_environment::AddKinematicsInformationCommand::getKinematicsInformation
const tesseract_srdf::KinematicsInformation & getKinematicsInformation() const
Definition:
add_kinematics_information_command.cpp:46
serialization.h
add_kinematics_information_command.h
Used to kinematics information to the environment.
tesseract_environment::AddKinematicsInformationCommand
Definition:
add_kinematics_information_command.h:45
tesseract_srdf::KinematicsInformation
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::AddKinematicsInformationCommand::kinematics_information_
tesseract_srdf::KinematicsInformation kinematics_information_
Definition:
add_kinematics_information_command.h:64
tesseract_environment::AddKinematicsInformationCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition:
add_kinematics_information_command.cpp:64
tesseract_environment::AddKinematicsInformationCommand::operator!=
bool operator!=(const AddKinematicsInformationCommand &rhs) const
Definition:
add_kinematics_information_command.cpp:58
macros.h
tesseract_environment::CommandType
CommandType
Definition:
command.h:47
tesseract_environment::AddKinematicsInformationCommand::operator==
bool operator==(const AddKinematicsInformationCommand &rhs) const
Definition:
add_kinematics_information_command.cpp:51
tesseract_environment
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:21