Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
contact_results_marker.h
Go to the documentation of this file.
1#ifndef TESSERACT_VISUALIZATION_MARKERS_CONTACT_RESULTS_MARKER_H
2#define TESSERACT_VISUALIZATION_MARKERS_CONTACT_RESULTS_MARKER_H
3
6#include <vector>
8
11
13{
20{
21public:
22 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
23
25 ContactResultsMarker(std::vector<std::string> link_names,
28 : link_names(std::move(link_names)), dist_results(std::move(dist_results)), margin_data(std::move(margin_data))
29 {
30 }
31
32 ContactResultsMarker(std::vector<std::string> link_names,
34 std::function<double(const std::string&, const std::string&)> margin_fn)
35 : link_names(std::move(link_names)), dist_results(std::move(dist_results)), margin_fn(std::move(margin_fn))
36 {
37 }
38
39 int getType() const override { return static_cast<int>(MarkerType::CONTACT_RESULTS); }
40
41 std::vector<std::string> link_names;
44 std::function<double(const std::string&, const std::string&)> margin_fn;
45};
46
47} // namespace tesseract_visualization
48
49#endif // TESSERACT_VISUALIZATION_MARKERS_CONTACT_RESULTS_MARKER_H
Stores information about how the margins allowed between collision objects.
Definition: collision_margin_data.h:74
A contact results marker.
Definition: contact_results_marker.h:20
std::vector< std::string > link_names
Definition: contact_results_marker.h:41
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ContactResultsMarker()=default
ContactResultsMarker(std::vector< std::string > link_names, tesseract_collision::ContactResultVector dist_results, tesseract_collision::CollisionMarginData margin_data)
Definition: contact_results_marker.h:25
tesseract_collision::CollisionMarginData margin_data
Definition: contact_results_marker.h:43
int getType() const override
Get the marker type.
Definition: contact_results_marker.h:39
tesseract_collision::ContactResultVector dist_results
Definition: contact_results_marker.h:42
std::function< double(const std::string &, const std::string &)> margin_fn
Definition: contact_results_marker.h:44
ContactResultsMarker(std::vector< std::string > link_names, tesseract_collision::ContactResultVector dist_results, std::function< double(const std::string &, const std::string &)> margin_fn)
Definition: contact_results_marker.h:32
Definition: marker.h:75
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
tesseract_common::AlignedVector< ContactResult > ContactResultVector
Definition: types.h:134
Definition: conversions.h:39
@ CONTACT_RESULTS
Contact results marker.
Tesseracts Collision Common Types.