Namespaces | Functions
utils.h File Reference
#include <cxxabi.h>
#include <chrono>
#include <ctime>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include <ros/ros.h>
#include <sdf/Element.hh>
#include <gazebo_video_monitor_plugins/internal/types.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 internal
 

Functions

static bool createDirectory (const boost::filesystem::path &path)
 
template<typename ClassName >
static std::string getClassName ()
 
static std::string getStringTimestamp (std::time_t t)
 
static RefModelConfigConstPtr parseRefModelConfig (const sdf::ElementPtr &sdf)
 Parses a basic reference model configuration. More...
 
static void internal::parseRefModelConfig (const sdf::ElementPtr &sdf, const RefModelConfigPtr &config)
 
static RefModelConfigConstPtr parseRefModelConfig (const sdf::ElementPtr &sdf, ros::NodeHandle &nh)
 Parses a reference model configuration. More...
 
static std::string toString (const std::vector< std::string > &names, const std::string &delimiter=", ")
 

Function Documentation

◆ createDirectory()

static bool createDirectory ( const boost::filesystem::path &  path)
static

Definition at line 47 of file utils.h.

◆ getClassName()

template<typename ClassName >
static std::string getClassName ( )
static

Copyright (C) 2020 Nikolaos Lamprianidis

Gazebo Video Monitor Plugins is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Gazebo Video Monitor Plugins is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Definition at line 38 of file utils.h.

◆ getStringTimestamp()

static std::string getStringTimestamp ( std::time_t  t)
static

Definition at line 102 of file utils.h.

◆ parseRefModelConfig() [1/2]

static RefModelConfigConstPtr parseRefModelConfig ( const sdf::ElementPtr &  sdf)
static

Parses a basic reference model configuration.

Note
Expects the following configuration:
  • model: name of the model with which to associate the camera
  • link (optional, defaults to 'link'): name of the link to which to attach the camera

Definition at line 74 of file utils.h.

◆ parseRefModelConfig() [2/2]

static RefModelConfigConstPtr parseRefModelConfig ( const sdf::ElementPtr &  sdf,
ros::NodeHandle nh 
)
static

Parses a reference model configuration.

Note
Expects the following configuration:
  • modelParam: name of the parameter on the parameter server that holds the name of the model with which to associate the camera
  • model: name of the model with which to associate the camera. It's ignored if modelParam is given
  • link (optional, defaults to 'link'): name of the link to which to attach the camera

Definition at line 90 of file utils.h.

◆ toString()

static std::string toString ( const std::vector< std::string > &  names,
const std::string &  delimiter = ", " 
)
static

Definition at line 109 of file utils.h.



gazebo_video_monitor_plugins
Author(s): Nick Lamprianidis
autogenerated on Tue Oct 24 2023 02:12:50