##

PlotManager.hh
Go to the documentation of this file.
/*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_PLOT_PLOTMANAGER_HH_
#define GAZEBO_GUI_PLOT_PLOTMANAGER_HH_
#include <memory>
#include <string>
#include "gazebo/msgs/msgs.hh"
#include "gazebo/common/SingletonT.hh"
#include "gazebo/gui/plot/PlottingTypes.hh"
#include "gazebo/util/system.hh"
GZ_SINGLETON_DECLARE(GZ_GUI_VISIBLE, gazebo, gui, PlotManager)
namespace gazebo
{
namespace gui
{
// Forward declare private data class
class PlotManagerPrivate;
class PlotWindow;
class GZ_GUI_VISIBLE PlotManager : public SingletonT<PlotManager>
{
public: PlotManager();
public: virtual ~PlotManager();
public: void OnWorldControl(ConstWorldControlPtr &_data);
public: void AddIntrospectionCurve(const std::string &_name,
PlotCurveWeakPtr _curve);
public: void RemoveIntrospectionCurve(PlotCurveWeakPtr _curve);
public: void AddTopicCurve(const std::string &_topic,
PlotCurveWeakPtr _curve);
public: void RemoveTopicCurve(PlotCurveWeakPtr _curve);
public: void AddWindow(PlotWindow *_window);
public: void RemoveWindow(PlotWindow *_window);
public: std::string HumanReadableName(const std::string &_uri) const;
private: friend class SingletonT<PlotManager>;
private: std::unique_ptr<PlotManagerPrivate> dataPtr;
};
}
}
#endif
PlottingTypes.hh
default namespace for gazebo
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo
gazebo
Definition: PlotManager.hh:29
SingletonT
Singleton template class.
Definition: SingletonT.hh:33
system.hh
msgs.hh
gazebo::gui::PlotManager
A class that connects simulation data with the plotting tool.
Definition: PlotManager.hh:41
gui
gui
Definition: PlotManager.hh:29
gazebo::gui::PlotWindow
Plot window.
Definition: PlotWindow.hh:36
gazebo::gui::PlotCurveWeakPtr
std::weak_ptr< PlotCurve > PlotCurveWeakPtr
Definition: PlottingTypes.hh:41
GZ_SINGLETON_DECLARE
#define GZ_SINGLETON_DECLARE(visibility, n1, n2, singletonType)
Helper to declare typed SingletonT.
Definition: SingletonT.hh:61
SingletonT.hh