![]() |
Tesseract 0.28.4
|
This is a collection of common methods. More...
#include <tesseract/common/macros.h>#include <cstdio>#include <console_bridge/console.h>#include <tesseract/common/utils.h>#include <tesseract/common/types.h>#include <tesseract/collision/common.h>#include <tesseract/collision/contact_result_validator.h>Functions | |
| std::vector< ObjectPairKey > | tesseract::collision::getCollisionObjectPairs (const std::vector< std::string > &active_links, const std::vector< std::string > &static_links, const std::shared_ptr< const tesseract::common::ContactAllowedValidator > &validator=nullptr) |
| Get a vector of possible collision object pairs. | |
| bool | tesseract::collision::isLinkActive (const std::vector< std::string > &active, const std::string &name) |
| This will check if a link is active provided a list. If the list is empty the link is considered active. | |
| bool | tesseract::collision::isContactAllowed (const std::string &name1, const std::string &name2, const std::shared_ptr< const tesseract::common::ContactAllowedValidator > &validator, bool verbose=false) |
| Determine if contact is allowed between two objects. | |
| ContactResult * | tesseract::collision::processResult (ContactTestData &cdata, ContactResult &contact, const std::pair< std::string, std::string > &key, bool found) |
| processResult Processes the ContactResult based on the information in the ContactTestData | |
| void | tesseract::collision::scaleVertices (tesseract::common::VectorVector3d &vertices, const Eigen::Vector3d ¢er, const Eigen::Vector3d &scale) |
| Apply scaling to the geometry coordinates. | |
| void | tesseract::collision::scaleVertices (tesseract::common::VectorVector3d &vertices, const Eigen::Vector3d &scale) |
| Apply scaling to the geometry coordinates. | |
This is a collection of common methods.
| std::vector< ObjectPairKey > tesseract::collision::getCollisionObjectPairs | ( | const std::vector< std::string > & | active_links, |
| const std::vector< std::string > & | static_links, | ||
| const std::shared_ptr< const tesseract::common::ContactAllowedValidator > & | validator = nullptr |
||
| ) |
Get a vector of possible collision object pairs.
| active_links | The active link names |
| static_links | The static link names |
| validator | The is contact allowed validator |
| bool tesseract::collision::isLinkActive | ( | const std::vector< std::string > & | active, |
| const std::string & | name | ||
| ) |
This will check if a link is active provided a list. If the list is empty the link is considered active.
| active | List of active link names |
| name | The name of link to check if it is active. |
| bool tesseract::collision::isContactAllowed | ( | const std::string & | name1, |
| const std::string & | name2, | ||
| const std::shared_ptr< const tesseract::common::ContactAllowedValidator > & | validator, | ||
| bool | verbose = false |
||
| ) |
Determine if contact is allowed between two objects.
| name1 | The name of the first object |
| name2 | The name of the second object |
| validator | The contact allowed validator |
| verbose | If true print debug information |
| ContactResult * tesseract::collision::processResult | ( | ContactTestData & | cdata, |
| ContactResult & | contact, | ||
| const std::pair< std::string, std::string > & | key, | ||
| bool | found | ||
| ) |
processResult Processes the ContactResult based on the information in the ContactTestData
| cdata | Information used to process the results |
| contact | Contacts from the collision checkers that will be processed |
| key | Link pair used as a key to look up pair specific settings |
| found | Specifies whether or not a collision has already been found |
| void tesseract::collision::scaleVertices | ( | tesseract::common::VectorVector3d & | vertices, |
| const Eigen::Vector3d & | center, | ||
| const Eigen::Vector3d & | scale | ||
| ) |
Apply scaling to the geometry coordinates.
Given a scaling factor s, and center c, a given vertice v is transformed according to s (v - c) + c.
| vertices | The vertices to scale |
| center | The point at which to scale the data about |
| scale | The scale factor to apply to the vertices. |
| void tesseract::collision::scaleVertices | ( | tesseract::common::VectorVector3d & | vertices, |
| const Eigen::Vector3d & | scale | ||
| ) |
Apply scaling to the geometry coordinates.
Given a scaling factor s, and center c, a given vertice v is transformed according to s (v - c) + c.
| vertices | The vertices to scale |
| scale | The scale factor to apply to the vertices. |