#include <add_trajectory_link_command.h>
Public Types | |
using | ConstPtr = std::shared_ptr< const AddTrajectoryLinkCommand > |
using | Ptr = std::shared_ptr< AddTrajectoryLinkCommand > |
![]() | |
using | ConstPtr = std::shared_ptr< const Command > |
using | Ptr = std::shared_ptr< Command > |
Public Member Functions | |
AddTrajectoryLinkCommand () | |
AddTrajectoryLinkCommand (std::string link_name, std::string parent_link_name, tesseract_common::JointTrajectory trajectory, bool replace_allowed=false) | |
Adds or replace a trajectory link to the environment. More... | |
const std::string & | getLinkName () const |
const std::string & | getParentLinkName () const |
const tesseract_common::JointTrajectory & | getTrajectory () const |
bool | operator!= (const AddTrajectoryLinkCommand &rhs) const |
bool | operator== (const AddTrajectoryLinkCommand &rhs) const |
bool | replaceAllowed () const |
![]() | |
Command (Command &&)=default | |
Command (CommandType type=CommandType::UNINITIALIZED) | |
Command (const Command &)=default | |
CommandType | getType () const |
bool | operator!= (const Command &rhs) const |
Command & | operator= (Command &&)=default |
Command & | operator= (const Command &)=default |
bool | operator== (const Command &rhs) const |
virtual | ~Command ()=default |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::string | link_name_ |
std::string | parent_link_name_ |
bool | replace_allowed_ { false } |
tesseract_common::JointTrajectory | trajectory_ |
Friends | |
class | boost::serialization::access |
struct | tesseract_common::Serialization |
Definition at line 45 of file add_trajectory_link_command.h.
using tesseract_environment::AddTrajectoryLinkCommand::ConstPtr = std::shared_ptr<const AddTrajectoryLinkCommand> |
Definition at line 49 of file add_trajectory_link_command.h.
using tesseract_environment::AddTrajectoryLinkCommand::Ptr = std::shared_ptr<AddTrajectoryLinkCommand> |
Definition at line 48 of file add_trajectory_link_command.h.
tesseract_environment::AddTrajectoryLinkCommand::AddTrajectoryLinkCommand | ( | ) |
Definition at line 40 of file add_trajectory_link_command.cpp.
tesseract_environment::AddTrajectoryLinkCommand::AddTrajectoryLinkCommand | ( | std::string | link_name, |
std::string | parent_link_name, | ||
tesseract_common::JointTrajectory | trajectory, | ||
bool | replace_allowed = false |
||
) |
Adds or replace a trajectory link to the environment.
If the link exists and replace_allowed equals true:
This command should replace the current link with the new link
If the link exists and replace_allowed equals false:
This command should result in an error
If the link does not exist:
This command should attach the link to the parent link with a fixed joint with a joint name of joint_{link name}".
link_name | The link name |
parent_link_name | The parent link name |
trajectory | The trajectory to used for generating link |
replace_allowed | If true then if the link exists it will be replaced, otherwise if false it will fail. |
Definition at line 42 of file add_trajectory_link_command.cpp.
const std::string & tesseract_environment::AddTrajectoryLinkCommand::getLinkName | ( | ) | const |
Definition at line 54 of file add_trajectory_link_command.cpp.
const std::string & tesseract_environment::AddTrajectoryLinkCommand::getParentLinkName | ( | ) | const |
Definition at line 55 of file add_trajectory_link_command.cpp.
const tesseract_common::JointTrajectory & tesseract_environment::AddTrajectoryLinkCommand::getTrajectory | ( | ) | const |
Definition at line 56 of file add_trajectory_link_command.cpp.
bool tesseract_environment::AddTrajectoryLinkCommand::operator!= | ( | const AddTrajectoryLinkCommand & | rhs | ) | const |
Definition at line 69 of file add_trajectory_link_command.cpp.
bool tesseract_environment::AddTrajectoryLinkCommand::operator== | ( | const AddTrajectoryLinkCommand & | rhs | ) | const |
Definition at line 59 of file add_trajectory_link_command.cpp.
bool tesseract_environment::AddTrajectoryLinkCommand::replaceAllowed | ( | ) | const |
Definition at line 57 of file add_trajectory_link_command.cpp.
|
private |
Definition at line 72 of file add_trajectory_link_command.cpp.
|
friend |
Definition at line 92 of file add_trajectory_link_command.h.
|
friend |
Definition at line 93 of file add_trajectory_link_command.h.
|
private |
Definition at line 87 of file add_trajectory_link_command.h.
|
private |
Definition at line 88 of file add_trajectory_link_command.h.
|
private |
Definition at line 90 of file add_trajectory_link_command.h.
|
private |
Definition at line 89 of file add_trajectory_link_command.h.