YARP
Yet Another Robot Platform
yarpRosHelper.h File Reference
#include <iostream>
#include <climits>
#include <cmath>
#include <yarp/os/Log.h>
+ Include dependency graph for yarpRosHelper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ROSTopicUsageType {
  ROS_config_error ,
  ROS_disabled ,
  ROS_enabled ,
  ROS_only
}
 

Functions

double convertDegreesToRadians (double degrees)
 convert degrees to radiants for ROS messages More...
 
void convertDegreesToRadians (std::vector< yarp::os::NetFloat64 > &degrees)
 
bool convertEulerAngleYXZrads_to_quaternion (double *eulerXYZ, double *quaternion)
 
bool convertEulerAngleYXZdegrees_to_quaternion (double *eulerXYZ, double *quaternion)
 

Variables

constexpr double PI = 3.1415926535897932384626433
 

Enumeration Type Documentation

◆ ROSTopicUsageType

Enumerator
ROS_config_error 
ROS_disabled 
ROS_enabled 
ROS_only 

Definition at line 15 of file yarpRosHelper.h.

Function Documentation

◆ convertDegreesToRadians() [1/2]

double convertDegreesToRadians ( double  degrees)
inline

convert degrees to radiants for ROS messages

Definition at line 27 of file yarpRosHelper.h.

◆ convertDegreesToRadians() [2/2]

void convertDegreesToRadians ( std::vector< yarp::os::NetFloat64 > &  degrees)
inline

Definition at line 32 of file yarpRosHelper.h.

◆ convertEulerAngleYXZdegrees_to_quaternion()

bool convertEulerAngleYXZdegrees_to_quaternion ( double *  eulerXYZ,
double *  quaternion 
)
inline

Definition at line 67 of file yarpRosHelper.h.

◆ convertEulerAngleYXZrads_to_quaternion()

bool convertEulerAngleYXZrads_to_quaternion ( double *  eulerXYZ,
double *  quaternion 
)
inline

Definition at line 40 of file yarpRosHelper.h.

Variable Documentation

◆ PI

constexpr double PI = 3.1415926535897932384626433
constexpr

Definition at line 24 of file yarpRosHelper.h.