tool_template.hpp
#ifndef SAMPLE_RVIZ_PLUGINS_TOOL_TEMPLATE_HPP
#define SAMPLE_RVIZ_PLUGINS_TOOL_TEMPLATE_HPP
#include <rviz_common/tool.hpp>
namespace sample_rviz_plugins
{
class ToolTemplate : public rviz_common::Tool
{
public:
ToolTemplate();
virtual ~ToolTemplate();
virtual void onInitialize();
virtual void activate();
virtual void deactivate();
protected:
private:
};
}
#endif // SAMPLE_RVIZ_PLUGINS_TOOL_TEMPLATE_HPP
tool_template.cpp
#include <rclcpp/rclcpp.hpp>
#include <rviz_common/tool.hpp>
#include "tool_template.hpp"
namespace sample_rviz_plugins
{
ToolTemplate::ToolTemplate()
: rviz_common::Tool()
{
}
ToolTemplate::~ToolTemplate()
{
}
void ToolTemplate::onInitialize()
{
}
void ToolTemplate::activate()
{
}
void ToolTemplate::deactivate()
{
}
}
#include <pluginlib/class_list_macros.hpp>
PLUGINLIB_EXPORT_CLASS( sample_rviz_plugins::ToolTemplate, rviz_common::Tool )