Go to the documentation of this file.
26 #ifndef TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
27 #define TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
31 #include <gz/msgs/scene.pb.h>
32 #include <gz/msgs/boolean.pb.h>
33 #include <gz/transport/Node.hh>
46 using Ptr = std::shared_ptr<TesseractIgnitionVisualization>;
47 using ConstPtr = std::shared_ptr<const TesseractIgnitionVisualization>;
61 std::string ns =
"")
override;
65 void plotMarkers(
const std::vector<std::shared_ptr<Marker>>& markers, std::string ns =
"")
override;
67 void clear(std::string ns =
"")
override;
69 void waitForInput(std::string message =
"Hit enter key to continue!")
override;
89 #endif // TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
void waitForInput(std::string message="Hit enter key to continue!") override
Pause code and wait for enter key in terminal.
void clear(std::string ns="") override
This is called at the start of the plotting for each iteration to clear previous iteration graphics i...
void sendSceneState(const tesseract_scene_graph::SceneState &scene_state)
Helper function for sending state to visualization tool.
void plotEnvironmentState(const tesseract_scene_graph::SceneState &state, std::string ns="") override
Plot state of the environment.
EntityManager entity_manager_
gz::transport::Node::Publisher scene_pub_
gz::transport::Node node_
void plotMarker(const Marker &marker, std::string ns="") override
Plot marker.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
gz::transport::Node::Publisher pose_pub_
std::shared_ptr< TesseractIgnitionVisualization > Ptr
void plotEnvironment(const tesseract_environment::Environment &env, std::string ns="") override
Plot environment.
TesseractIgnitionVisualization()
void plotTrajectory(const tesseract_common::JointTrajectory &traj, const tesseract_scene_graph::StateSolver &state_solver, std::string ns="") override
Plot a JointTrajectory.
gz::transport::Node::Publisher deletion_pub_
void plotMarkers(const std::vector< std::shared_ptr< Marker >> &markers, std::string ns="") override
Plot a vector of markers under a given namespace.
#define TESSERACT_PLUGIN_ANCHOR_DECL(ANCHOR_NAME)
A entity manager for Tesseract components that get added to Ignition Scene.
The Tesseract Ignition Vizualization class.
std::shared_ptr< const TesseractIgnitionVisualization > ConstPtr
void waitForConnection(long seconds=0) const override
Wait for connection.
bool isConnected() const override
Some plotters may require connecting to external software.