Go to the documentation of this file.
26 #ifndef TESSERACT_VISUALIZATION_VISUALIZATION_H
27 #define TESSERACT_VISUALIZATION_VISUALIZATION_H
42 #define TESSERACT_ADD_VISUALIZATION_PLUGIN(DERIVED_CLASS, ALIAS) \
43 TESSERACT_ADD_PLUGIN_SECTIONED(DERIVED_CLASS, ALIAS, Plotter)
54 using Ptr = std::shared_ptr<Visualization>;
55 using ConstPtr = std::shared_ptr<const Visualization>;
95 std::string ns =
"") = 0;
109 virtual void plotMarkers(
const std::vector<std::shared_ptr<Marker>>& markers, std::string ns =
"") = 0;
115 virtual void clear(std::string ns =
"") = 0;
118 virtual void waitForInput(std::string message =
"Hit enter key to continue!") = 0;
123 #endif // TESSERACT_VISUALIZATION_VISUALIZATION_H
virtual void plotEnvironment(const tesseract_environment::Environment &env, std::string ns="")=0
Plot environment.
virtual bool isConnected() const =0
Some plotters may require connecting to external software.
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...
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Visualization & operator=(const Visualization &)=default
virtual void plotEnvironmentState(const tesseract_scene_graph::SceneState &state, std::string ns="")=0
Plot state of the environment.
virtual void plotTrajectory(const tesseract_common::JointTrajectory &traj, const tesseract_scene_graph::StateSolver &state_solver, std::string ns="")=0
Plot a JointTrajectory.
virtual void waitForConnection(long seconds=0) const =0
Wait for connection.
virtual void waitForInput(std::string message="Hit enter key to continue!")=0
Pause code and wait for enter key in terminal.
std::shared_ptr< Visualization > Ptr
std::shared_ptr< const Visualization > ConstPtr
virtual void plotMarker(const Marker &marker, std::string ns="")=0
Plot marker.
virtual void plotMarkers(const std::vector< std::shared_ptr< Marker >> &markers, std::string ns="")=0
Plot a vector of markers under a given namespace.
virtual ~Visualization()=default