##

ShaderParamVisualPlugin.hh
Go to the documentation of this file.
/*
* Copyright (C) 2018 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_SHADERPARAMVISUALPLUGIN_HH_
#define GAZEBO_PLUGINS_SHADERPARAMVISUALPLUGIN_HH_
#include <memory>
#include <gazebo/common/Plugin.hh>
#include <gazebo/msgs/msgs.hh>
#include <gazebo/rendering/RenderTypes.hh>
namespace gazebo
{
// Forward declare private data class.
class ShaderParamVisualPluginPrivate;
class GAZEBO_VISIBLE ShaderParamVisualPlugin : public VisualPlugin
{
public: ShaderParamVisualPlugin();
public: ~ShaderParamVisualPlugin();
// Documentation inherited
public: virtual void Load(rendering::VisualPtr _visual,
sdf::ElementPtr _sdf);
private: void Update();
private: void OnInfo(ConstPosesStampedPtr &_msg);
private: std::unique_ptr<ShaderParamVisualPluginPrivate> dataPtr;
};
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
msgs.hh
RenderTypes.hh
gazebo::VisualPlugin
A plugin with access to rendering::Visual.
Definition: Plugin.hh:389
gazebo::ShaderParamVisualPlugin
A plugin that demonstrates how to set shader parameters of a material used by a visual.
Definition: ShaderParamVisualPlugin.hh:56
gazebo::rendering::VisualPtr
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
Plugin.hh
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59