Go to the documentation of this file.
17 #ifndef GAZEBO_GUI_PLOT_INTROSPECTIONCURVEHANDLER_HH_
18 #define GAZEBO_GUI_PLOT_INTROSPECTIONCURVEHANDLER_HH_
23 #include <ignition/math/Vector3.hh>
24 #include <ignition/math/Quaternion.hh>
35 class IntrospectionCurveHandlerPrivate;
58 public:
unsigned int CurveCount()
const;
62 public:
void SetPaused(
const bool _paused);
67 public:
bool Initialized()
const;
70 private:
void SetupIntrospection();
82 private:
bool Vector3dFromQuery(
const std::string &_query,
83 const ignition::math::Vector3d &_vec,
double &_value)
const;
91 private:
bool QuaterniondFromQuery(
const std::string &_query,
92 const ignition::math::Quaterniond &_quat,
double &_value)
const;
98 private:
void AddItemToFilter(
const std::string &_name,
99 const std::function<
void(
const bool _result)> &_cb =
nullptr);
105 private:
void RemoveItemFromFilter(
const std::string &_name,
106 const std::function<
void(
const bool _result)> &_cb =
nullptr);
109 private: std::unique_ptr<IntrospectionCurveHandlerPrivate> dataPtr;
IntrospectionCurveHandler()
Constructor.
default namespace for gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
void SetPaused(const bool _paused)
Set whether or not to pause updating the plot curves.
Manages and updates curves based on introspection data.
Definition: IntrospectionCurveHandler.hh:38
void AddCurve(const std::string &_query, PlotCurveWeakPtr _curve)
Add a curve to be updated.
std::vector< common::Param * > Param_V
Definition: CommonTypes.hh:97
void RemoveCurve(PlotCurveWeakPtr _curve)
Remove a curve from the topic data hander.
bool Initialized() const
Get whether or not the introspection curve handler has been initialized.
std::weak_ptr< PlotCurve > PlotCurveWeakPtr
Definition: PlottingTypes.hh:41
unsigned int CurveCount() const
Get the number of curves managed by this handler.
~IntrospectionCurveHandler()
Destructor.