Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
visualization.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_VISUALIZATION_VISUALIZATION_H
27#define TESSERACT_VISUALIZATION_VISUALIZATION_H
28
31#include <Eigen/Core>
32#include <Eigen/Geometry>
33#include <any>
35
41
42// clang-format off
43#define TESSERACT_ADD_VISUALIZATION_PLUGIN(DERIVED_CLASS, ALIAS) \
44 TESSERACT_ADD_PLUGIN_SECTIONED(DERIVED_CLASS, ALIAS, Plotter)
45// clang-format on
46
48{
51{
52public:
53 using Ptr = std::shared_ptr<Visualization>;
54 using ConstPtr = std::shared_ptr<const Visualization>;
55
56 Visualization() = default;
57 virtual ~Visualization() = default;
58 Visualization(const Visualization&) = default;
62
67 virtual bool isConnected() const = 0;
68
73 virtual void waitForConnection(long seconds = 0) const = 0;
74
79 virtual void plotEnvironment(const tesseract_environment::Environment& env, std::string ns = "") = 0;
80
85 virtual void plotEnvironmentState(const tesseract_scene_graph::SceneState& state, std::string ns = "") = 0;
86
93 const tesseract_scene_graph::StateSolver& state_solver,
94 std::string ns = "") = 0;
95
101 virtual void plotMarker(const Marker& marker, std::string ns = "") = 0;
102
108 virtual void plotMarkers(const std::vector<Marker::Ptr>& markers, std::string ns = "") = 0;
109
114 virtual void clear(std::string ns = "") = 0;
115
117 virtual void waitForInput(std::string message = "Hit enter key to continue!") = 0;
118};
119
120} // namespace tesseract_visualization
121
122#endif // TESSERACT_VISUALIZATION_VISUALIZATION_H
Represents a joint trajectory.
Definition: joint_state.h:78
Definition: environment.h:65
Definition: state_solver.h:46
Definition: marker.h:75
The Vizualization class.
Definition: visualization.h:51
virtual void plotTrajectory(const tesseract_common::JointTrajectory &traj, const tesseract_scene_graph::StateSolver &state_solver, std::string ns="")=0
Plot a JointTrajectory.
Visualization & operator=(const Visualization &)=default
Visualization(Visualization &&)=default
std::shared_ptr< Visualization > Ptr
Definition: visualization.h:53
std::shared_ptr< const Visualization > ConstPtr
Definition: visualization.h:54
virtual void clear(std::string ns="")=0
This is called at the start of the plotting for each iteration to clear previous iteration graphics i...
virtual void plotMarker(const Marker &marker, std::string ns="")=0
Plot marker.
virtual void plotMarkers(const std::vector< Marker::Ptr > &markers, std::string ns="")=0
Plot a vector of markers under a given namespace.
virtual bool isConnected() const =0
Some plotters may require connecting to external software.
virtual void plotEnvironment(const tesseract_environment::Environment &env, std::string ns="")=0
Plot environment.
virtual void waitForInput(std::string message="Hit enter key to continue!")=0
Pause code and wait for enter key in terminal.
Visualization & operator=(Visualization &&)=default
virtual void waitForConnection(long seconds=0) const =0
Wait for connection.
virtual void plotEnvironmentState(const tesseract_scene_graph::SceneState &state, std::string ns="")=0
Plot state of the environment.
Visualization(const Visualization &)=default
A basic scene graph using boost.
Tesseract Joint State.
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: conversions.h:39
This holds a state of the scene.
Definition: scene_state.h:54
Tesseracts Collision Common Types.
auto env
Definition: tesseract_environment_cache_unit.cpp:67