##

LookAtDemoPlugin.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_PLUGINS_LOOKATDEMOPLUGIN_HH_
#define GAZEBO_PLUGINS_LOOKATDEMOPLUGIN_HH_
#include <ignition/transport/Node.hh>
#include <gazebo/common/Plugin.hh>
#include <gazebo/gui/GuiPlugin.hh>
// moc parsing error of tbb headers
#ifndef Q_MOC_RUN
#include <gazebo/transport/transport.hh>
#endif
namespace gazebo
{
class GAZEBO_VISIBLE LookAtDemoPlugin : public GUIPlugin
{
Q_OBJECT
public: LookAtDemoPlugin();
public: virtual ~LookAtDemoPlugin();
// Documentation inherited
public: void Load(sdf::ElementPtr /*_elem*/);
private slots: void OnChange(const double _newValue);
private: QDoubleSpinBox *eyeX;
private: QDoubleSpinBox *eyeY;
private: QDoubleSpinBox *eyeZ;
private: QDoubleSpinBox *targetX;
private: QDoubleSpinBox *targetY;
private: QDoubleSpinBox *targetZ;
private: QDoubleSpinBox *upX;
private: QDoubleSpinBox *upY;
private: QDoubleSpinBox *upZ;
private: transport::NodePtr node;
private: transport::PublisherPtr modelModifyPub;
// Place ignition::transport objects at the end of this file to
// guarantee they are destructed first.
private: ignition::transport::Node nodeIgn;
private: ignition::transport::Node::Publisher modelModifyPubIgn;
};
}
#endif
gazebo::GUIPlugin
A plugin loaded within the gzclient on startup.
Definition: GuiPlugin.hh:26
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::transport::PublisherPtr
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
gazebo::LookAtDemoPlugin
A GUI plugin that demos the ignition::math::Matrix4<T>::LookAt function.
Definition: LookAtDemoPlugin.hh:46
gazebo::transport::NodePtr
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
GuiPlugin.hh
Plugin.hh
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59