#include <but_server.h>
Public Types | |
typedef pcl::PointCloud < pcl::PointXYZ > | tPCLPointCloud |
Type of the used pointcloud. | |
Public Member Functions | |
CButServer (const std::string &filename="") | |
Constructor - load file. | |
void | pause (bool bPause) |
Pause-resume server. | |
void | reset () |
Reset server and all plugins. | |
virtual | ~CButServer () |
Destructor. | |
Protected Types | |
typedef std::vector < CServerPluginBase * > | tVecPlugins |
All plugins vector type. | |
Protected Member Functions | |
void | onOcMapDataChanged (tButServerOcMapConstPtr mapdata, const ros::Time &stamp) |
On octomap data changed. | |
bool | onPause (ButServerPause::Request &request, ButServerPause::Response &response) |
On pause service call. | |
bool | onReset (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response) |
On reset service call. | |
bool | onUseInputColor (srs_env_model::UseInputColor::Request &req, srs_env_model::UseInputColor::Response &res) |
Use/do not use color service callback. | |
void | publishAll (const ros::Time &rostime) |
Publish all. | |
void | publishPlugins (const ros::Time &rostime) |
Publish all. | |
Protected Attributes | |
bool | m_bIsPaused |
Is server running now. | |
bool | m_bUseOldIMP |
Use old interactive server plugin? TODO: Remov this when new is will be finished. | |
int | m_frameCounter |
Current frame counter. | |
bool | m_latchedTopics |
ros::NodeHandle | m_nh |
Node handle. | |
int | m_numPCFramesProcessed |
Every N-th frame should be processed when including point-cloud. | |
boost::shared_ptr< CCMapPlugin > | m_plugCMap |
Collision map. | |
boost::shared_ptr < CCollisionObjectPlugin > | m_plugCollisionObject |
Collision object plugin. | |
boost::shared_ptr < CCompressedPointCloudPlugin > | m_plugCompressedPointCloud |
Compressed pointcloud plugin. | |
boost::shared_ptr< CExamplePlugin > | m_plugExample |
Create example plugin. | |
boost::shared_ptr < CExampleCrawlerPlugin > | m_plugExampleCrawler |
Create crawler plugin holder. | |
boost::shared_ptr < CIMarkersPlugin > | m_plugIMarkers |
Interactive markers server plugin. | |
boost::shared_ptr < CPointCloudPlugin > | m_plugInputPointCloud |
Incoming depth points cloud. | |
tVecPlugins | m_plugins |
All plugins. | |
boost::shared_ptr < CCollisionGridPlugin > | m_plugMap2D |
2D map plugin | |
boost::shared_ptr < CMarkerArrayPlugin > | m_plugMarkerArray |
Marker array publisher plugin. | |
boost::shared_ptr< CObjTreePlugin > | m_plugObjTree |
ObjTree plugin. | |
boost::shared_ptr < CPointCloudPlugin > | m_plugOcMapPointCloud |
Output depth points cloud - whole octomap. | |
boost::shared_ptr< COctoMapPlugin > | m_plugOctoMap |
Octo map plugin. | |
boost::shared_ptr < COldIMarkersPlugin > | m_plugOldIMarkers |
Old interactive markers plugin. | |
boost::shared_ptr < CPointCloudPlugin > | m_plugVisiblePointCloud |
Visible points point cloud. | |
ros::ServiceServer | m_servicePause |
Pause service. | |
ros::ServiceServer | m_serviceReset |
Reset service. | |
ros::ServiceServer | m_serviceUseInputColor |
Use input color service. |
BUT dynamic scene server class.
Definition at line 96 of file but_server.h.
typedef pcl::PointCloud<pcl::PointXYZ> srs_env_model::CButServer::tPCLPointCloud |
Type of the used pointcloud.
Definition at line 100 of file but_server.h.
typedef std::vector<CServerPluginBase * > srs_env_model::CButServer::tVecPlugins [protected] |
All plugins vector type.
Definition at line 173 of file but_server.h.
srs_env_model::CButServer::CButServer | ( | const std::string & | filename = "" | ) |
Constructor - load file.
Swap function template.
octomap_server: A Tool to serve 3D OctoMaps in ROS (binary and as visualization) (inspired by the ROS map_saver)
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the University of Freiburg nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Constructor
Definition at line 65 of file but_server.cpp.
srs_env_model::CButServer::~CButServer | ( | ) | [virtual] |
void srs_env_model::CButServer::onOcMapDataChanged | ( | tButServerOcMapConstPtr | mapdata, |
const ros::Time & | stamp | ||
) | [inline, protected] |
On octomap data changed.
Definition at line 120 of file but_server.h.
bool srs_env_model::CButServer::onPause | ( | ButServerPause::Request & | request, |
ButServerPause::Response & | response | ||
) | [protected] |
bool srs_env_model::CButServer::onReset | ( | std_srvs::Empty::Request & | request, |
std_srvs::Empty::Response & | response | ||
) | [inline, protected] |
On reset service call.
Definition at line 126 of file but_server.h.
bool srs_env_model::CButServer::onUseInputColor | ( | srs_env_model::UseInputColor::Request & | req, |
srs_env_model::UseInputColor::Response & | res | ||
) | [protected] |
Use/do not use color service callback.
Use/do not use color service callback
Definition at line 276 of file but_server.cpp.
void srs_env_model::CButServer::pause | ( | bool | bPause | ) |
void srs_env_model::CButServer::publishAll | ( | const ros::Time & | rostime | ) | [protected] |
void srs_env_model::CButServer::publishPlugins | ( | const ros::Time & | rostime | ) | [protected] |
void srs_env_model::CButServer::reset | ( | ) |
Reset server and all plugins.
Definition at line 206 of file but_server.cpp.
bool srs_env_model::CButServer::m_bIsPaused [protected] |
Is server running now.
Definition at line 144 of file but_server.h.
bool srs_env_model::CButServer::m_bUseOldIMP [protected] |
Use old interactive server plugin? TODO: Remov this when new is will be finished.
Definition at line 217 of file but_server.h.
int srs_env_model::CButServer::m_frameCounter [protected] |
Current frame counter.
Definition at line 155 of file but_server.h.
bool srs_env_model::CButServer::m_latchedTopics [protected] |
Definition at line 149 of file but_server.h.
ros::NodeHandle srs_env_model::CButServer::m_nh [protected] |
Node handle.
Definition at line 147 of file but_server.h.
int srs_env_model::CButServer::m_numPCFramesProcessed [protected] |
Every N-th frame should be processed when including point-cloud.
Definition at line 152 of file but_server.h.
boost::shared_ptr< CCMapPlugin > srs_env_model::CButServer::m_plugCMap [protected] |
Collision map.
Definition at line 183 of file but_server.h.
boost::shared_ptr< CCollisionObjectPlugin > srs_env_model::CButServer::m_plugCollisionObject [protected] |
Collision object plugin.
Definition at line 196 of file but_server.h.
boost::shared_ptr< CCompressedPointCloudPlugin > srs_env_model::CButServer::m_plugCompressedPointCloud [protected] |
Compressed pointcloud plugin.
Definition at line 214 of file but_server.h.
boost::shared_ptr< CExamplePlugin > srs_env_model::CButServer::m_plugExample [protected] |
Create example plugin.
Definition at line 221 of file but_server.h.
boost::shared_ptr< CExampleCrawlerPlugin > srs_env_model::CButServer::m_plugExampleCrawler [protected] |
Create crawler plugin holder.
Definition at line 224 of file but_server.h.
boost::shared_ptr< CIMarkersPlugin > srs_env_model::CButServer::m_plugIMarkers [protected] |
Interactive markers server plugin.
Definition at line 202 of file but_server.h.
boost::shared_ptr< CPointCloudPlugin > srs_env_model::CButServer::m_plugInputPointCloud [protected] |
Incoming depth points cloud.
Definition at line 186 of file but_server.h.
tVecPlugins srs_env_model::CButServer::m_plugins [protected] |
All plugins.
Definition at line 176 of file but_server.h.
boost::shared_ptr< CCollisionGridPlugin > srs_env_model::CButServer::m_plugMap2D [protected] |
2D map plugin
Definition at line 199 of file but_server.h.
boost::shared_ptr< CMarkerArrayPlugin > srs_env_model::CButServer::m_plugMarkerArray [protected] |
Marker array publisher plugin.
Definition at line 205 of file but_server.h.
boost::shared_ptr< CObjTreePlugin > srs_env_model::CButServer::m_plugObjTree [protected] |
ObjTree plugin.
Definition at line 208 of file but_server.h.
boost::shared_ptr< CPointCloudPlugin > srs_env_model::CButServer::m_plugOcMapPointCloud [protected] |
Output depth points cloud - whole octomap.
Definition at line 186 of file but_server.h.
boost::shared_ptr< COctoMapPlugin > srs_env_model::CButServer::m_plugOctoMap [protected] |
Octo map plugin.
Definition at line 193 of file but_server.h.
boost::shared_ptr< COldIMarkersPlugin > srs_env_model::CButServer::m_plugOldIMarkers [protected] |
Old interactive markers plugin.
Definition at line 211 of file but_server.h.
boost::shared_ptr< CPointCloudPlugin > srs_env_model::CButServer::m_plugVisiblePointCloud [protected] |
Visible points point cloud.
Definition at line 190 of file but_server.h.
Pause service.
Definition at line 164 of file but_server.h.
Reset service.
Definition at line 161 of file but_server.h.
Use input color service.
Definition at line 167 of file but_server.h.