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;
70 private:
void SetupIntrospection();
74 private:
void OnIntrospection(
const gazebo::msgs::Param_V &_msg);
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;
gui
Definition KeyEventHandler.hh:29
default namespace for gazebo
Manages and updates curves based on introspection data.
Definition IntrospectionCurveHandler.hh:39
IntrospectionCurveHandler()
Constructor.
unsigned int CurveCount() const
Get the number of curves managed by this handler.
void SetPaused(const bool _paused)
Set whether or not to pause updating the plot curves.
void RemoveCurve(PlotCurveWeakPtr _curve)
Remove a curve from the topic data hander.
~IntrospectionCurveHandler()
Destructor.
void AddCurve(const std::string &_query, PlotCurveWeakPtr _curve)
Add a curve to be updated.
bool Initialized() const
Get whether or not the introspection curve handler has been initialized.
std::weak_ptr< PlotCurve > PlotCurveWeakPtr
Definition PlottingTypes.hh:41
Forward declarations for the common classes.
Definition Animation.hh:27