Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
tesseract_ignition_visualization.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
27#define TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
28
31#include <ignition/msgs/scene.pb.h>
32#include <ignition/msgs/boolean.pb.h>
33#include <ignition/transport/Node.hh>
35
39
41{
44{
45public:
46 using Ptr = std::shared_ptr<TesseractIgnitionVisualization>;
47 using ConstPtr = std::shared_ptr<const TesseractIgnitionVisualization>;
48
50
51 bool isConnected() const override;
52
53 void waitForConnection(long seconds = 0) const override;
54
55 void plotEnvironment(const tesseract_environment::Environment& env, std::string ns = "") override;
56
57 void plotEnvironmentState(const tesseract_scene_graph::SceneState& state, std::string ns = "") override;
58
60 const tesseract_scene_graph::StateSolver& state_solver,
61 std::string ns = "") override;
62
63 void plotMarker(const Marker& marker, std::string ns = "") override;
64
65 void plotMarkers(const std::vector<Marker::Ptr>& markers, std::string ns = "") override;
66
67 void clear(std::string ns = "") override;
68
69 void waitForInput(std::string message = "Hit enter key to continue!") override;
70
71private:
72 ignition::transport::Node node_;
73 ignition::transport::Node::Publisher scene_pub_;
74 ignition::transport::Node::Publisher pose_pub_;
75 ignition::transport::Node::Publisher deletion_pub_;
77
83};
84
85TESSERACT_PLUGIN_ANCHOR_DECL(IgnitionVisualizationAnchor)
86
87} // namespace tesseract_visualization
88
89#endif // TESSERACT_VISUALIZATION_IGNITION_TESSERACT_IGNITION_VISUALIZATION_H
#define TESSERACT_PLUGIN_ANCHOR_DECL(ANCHOR_NAME)
Definition: class_loader.h:124
Represents a joint trajectory.
Definition: joint_state.h:78
Definition: environment.h:65
Definition: state_solver.h:46
Definition: entity_manager.h:42
Definition: marker.h:75
The Tesseract Ignition Vizualization class.
Definition: tesseract_ignition_visualization.h:44
ignition::transport::Node::Publisher scene_pub_
Definition: tesseract_ignition_visualization.h:73
void sendSceneState(const tesseract_scene_graph::SceneState &scene_state)
Helper function for sending state to visualization tool.
Definition: tesseract_ignition_visualization.cpp:365
TesseractIgnitionVisualization()
Definition: tesseract_ignition_visualization.cpp:61
ignition::transport::Node::Publisher deletion_pub_
Definition: tesseract_ignition_visualization.h:75
std::shared_ptr< TesseractIgnitionVisualization > Ptr
Definition: tesseract_ignition_visualization.h:46
void plotEnvironmentState(const tesseract_scene_graph::SceneState &state, std::string ns="") override
Plot state of the environment.
Definition: tesseract_ignition_visualization.cpp:94
void waitForConnection(long seconds=0) const override
Wait for connection.
Definition: tesseract_ignition_visualization.cpp:73
bool isConnected() const override
Some plotters may require connecting to external software.
Definition: tesseract_ignition_visualization.cpp:68
ignition::transport::Node node_
Definition: tesseract_ignition_visualization.h:72
void plotMarkers(const std::vector< Marker::Ptr > &markers, std::string ns="") override
Plot a vector of markers under a given namespace.
Definition: tesseract_ignition_visualization.cpp:336
void plotTrajectory(const tesseract_common::JointTrajectory &traj, const tesseract_scene_graph::StateSolver &state_solver, std::string ns="") override
Plot a JointTrajectory.
Definition: tesseract_ignition_visualization.cpp:100
void plotMarker(const Marker &marker, std::string ns="") override
Plot marker.
Definition: tesseract_ignition_visualization.cpp:203
ignition::transport::Node::Publisher pose_pub_
Definition: tesseract_ignition_visualization.h:74
void waitForInput(std::string message="Hit enter key to continue!") override
Pause code and wait for enter key in terminal.
Definition: tesseract_ignition_visualization.cpp:359
EntityManager entity_manager_
Definition: tesseract_ignition_visualization.h:76
void plotEnvironment(const tesseract_environment::Environment &env, std::string ns="") override
Plot environment.
Definition: tesseract_ignition_visualization.cpp:87
std::shared_ptr< const TesseractIgnitionVisualization > ConstPtr
Definition: tesseract_ignition_visualization.h:47
The Vizualization class.
Definition: visualization.h:51
check_pairs clear()
A entity manager for Tesseract components that get added to Ignition Scene.
tesseract_scene_graph::SceneState scene_state
Definition: kinematics_factory_unit.cpp:265
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
auto env
Definition: tesseract_environment_cache_unit.cpp:67
Visualization Class.