gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
Loading...
Searching...
No Matches
common.h File Reference
#include <string>
#include <cmath>
#include <vector>
#include <yarp/os/LogStream.h>
#include <yarp/os/Searchable.h>
#include <yarp/os/Value.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  GazeboYarpPlugins
 

Functions

double GazeboYarpPlugins::convertDegreesToRadians (double degrees)
 convert from degrees to radians
 
double GazeboYarpPlugins::convertRadiansToDegrees (double radians)
 convert from radians to degrees
 
bool GazeboYarpPlugins::hasEnding (std::string const &fullString, std::string const &ending)
 check if a string has a certaing ending
 
std::string GazeboYarpPlugins::lastPartOfStringAfterSeparator (std::string const &fullString, std::string const &separator)
 Get last part of string after separator.
 
template<typename T >
GazeboYarpPlugins::readElementFromValue (yarp::os::Value &val)
 
template<>
double GazeboYarpPlugins::readElementFromValue< double > (yarp::os::Value &val)
 
template<>
std::string GazeboYarpPlugins::readElementFromValue< std::string > (yarp::os::Value &val)
 
template<typename T >
bool GazeboYarpPlugins::readVectorFromConfigFile (const yarp::os::Searchable &params, const std::string &listName, std::vector< T > &outputList)
 Get a vector from a parameter, using both the recommended style: nameOfList (elem1 elem2 elem3) or the deprecated (since YARP 3.10): nameOfList elem1 elem2 elem3.
 
template<typename T >
std::string GazeboYarpPlugins::vectorToString (std::vector< T > &outputList)
 Convert a vector to a string for printing.
 

Variables

const double GazeboYarpPlugins::yarpNetworkInitializationTimeout = 10.0
 < Seconds to wait for an answer when trying to connect to the yarpserver
 
double const GazeboYarpPlugins::pi = 3.1415926535897932384626433