src
commands
remove_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/remove_joint_command.h
>
35
36
namespace
tesseract_environment
37
{
38
RemoveJointCommand::RemoveJointCommand
() :
Command
(
CommandType
::
REMOVE_JOINT
) {}
39
40
RemoveJointCommand::RemoveJointCommand
(std::string joint_name)
41
:
Command
(
CommandType
::
REMOVE_JOINT
), joint_name_(std::move(joint_name))
42
{
43
}
44
45
const
std::string&
RemoveJointCommand::getJointName
()
const
{
return
joint_name_
; }
46
47
bool
RemoveJointCommand::operator==
(
const
RemoveJointCommand
& rhs)
const
48
{
49
bool
equal =
true
;
50
equal &=
Command::operator==
(rhs);
51
equal &=
joint_name_
== rhs.
joint_name_
;
52
return
equal;
53
}
54
bool
RemoveJointCommand::operator!=
(
const
RemoveJointCommand
& rhs)
const
{
return
!
operator==
(rhs); }
55
56
template
<
class
Archive>
57
void
RemoveJointCommand::serialize
(Archive& ar,
const
unsigned
int
/*version*/
)
58
{
59
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Command
);
60
ar& BOOST_SERIALIZATION_NVP(
joint_name_
);
61
}
62
}
// namespace tesseract_environment
63
64
#include <
tesseract_common/serialization.h
>
65
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
(
tesseract_environment::RemoveJointCommand
)
66
BOOST_CLASS_EXPORT_IMPLEMENT(
tesseract_environment::RemoveJointCommand
)
tesseract_environment::Command::operator==
bool operator==(const Command &rhs) const
Definition:
command.cpp:60
tesseract_environment
Definition:
command.h:45
tesseract_environment::RemoveJointCommand::getJointName
const std::string & getJointName() const
Definition:
remove_joint_command.cpp:45
tesseract_environment::RemoveJointCommand
Definition:
remove_joint_command.h:45
tesseract_environment::Command
Definition:
command.h:83
remove_joint_command.h
Used to remove joint from environment.
utils.h
tesseract_environment::RemoveJointCommand::RemoveJointCommand
RemoveJointCommand()
Definition:
remove_joint_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::REMOVE_JOINT
@ REMOVE_JOINT
serialization.h
tesseract_environment::RemoveJointCommand::operator!=
bool operator!=(const RemoveJointCommand &rhs) const
Definition:
remove_joint_command.cpp:54
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::RemoveJointCommand::joint_name_
std::string joint_name_
Definition:
remove_joint_command.h:68
tesseract_environment::RemoveJointCommand::operator==
bool operator==(const RemoveJointCommand &rhs) const
Definition:
remove_joint_command.cpp:47
tesseract_environment::RemoveJointCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition:
remove_joint_command.cpp:57
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