![]() |
Tesseract 0.28.4
|

Public Types | |
| using | Ptr = std::shared_ptr<AddLinkCommand> |
| using | ConstPtr = std::shared_ptr<const AddLinkCommand> |
| Public Types inherited from tesseract::environment::Command | |
| using | Ptr = std::shared_ptr<Command> |
| using | ConstPtr = std::shared_ptr<const Command> |
Public Member Functions | |
| AddLinkCommand (const tesseract::scene_graph::Link &link, bool replace_allowed=false) | |
| Adds or replace a link to the environment. | |
| AddLinkCommand (const tesseract::scene_graph::Link &link, const tesseract::scene_graph::Joint &joint, bool replace_allowed=false) | |
| Adds a link and joint in the environment. | |
| const std::shared_ptr< const tesseract::scene_graph::Link > & | getLink () const |
| const std::shared_ptr< const tesseract::scene_graph::Joint > & | getJoint () const |
| bool | replaceAllowed () const |
| bool | operator== (const AddLinkCommand &rhs) const |
| bool | operator!= (const AddLinkCommand &rhs) const |
| Public Member Functions inherited from tesseract::environment::Command | |
| Command (CommandType type=CommandType::UNINITIALIZED) | |
| Command (const Command &)=default | |
| Command & | operator= (const Command &)=default |
| Command (Command &&)=default | |
| Command & | operator= (Command &&)=default |
| CommandType | getType () const |
| bool | operator== (const Command &rhs) const |
| bool | operator!= (const Command &rhs) const |
Friends | |
| template<class Archive> | |
| friend | void::tesseract::environment::serialize (Archive &ar, AddLinkCommand &obj) |
| tesseract::environment::AddLinkCommand::AddLinkCommand | ( | const tesseract::scene_graph::Link & | link, |
| bool | replace_allowed = false ) |
Adds or replace a 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 root link with a fixed joint
with a joint name of joint_{link name}".
| link | The link to be added to the graph |
| replace_allowed | If true then if the link exists it will be replaced, otherwise if false it will fail. |
| tesseract::environment::AddLinkCommand::AddLinkCommand | ( | const tesseract::scene_graph::Link & | link, |
| const tesseract::scene_graph::Joint & | joint, | ||
| bool | replace_allowed = false ) |
Adds a link and joint in the environment.
If the link and joint exist and replace is allowed
This command will replace both link and joint if the link is the child link, otherwise this results in error
If the link and joint exist and replace is not allowed
This command should result in an error
If the link or joint only exists:
This command should result in an error
| link | The link to be added to the graph |
| joint | The joint to be used to attach link to environment |
| replace_allowed | If true then if the link and joint exists it will be replaced, otherwise if false it will fail. |