Macros | Functions | Variables
pr2_beer.cpp File Reference
#include <signal.h>
#include <webots_ros/sensor_set.h>
#include "ros/ros.h"
#include <webots_ros/set_float.h>
#include <webots_ros/set_int.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Float64MultiArray.h>
#include <std_msgs/String.h>
Include dependency graph for pr2_beer.cpp:

Go to the source code of this file.

Macros

#define ACCELERATION   10
 
#define FWD_SPEED   3.
 
#define ROTATE_SPEED   6
 
#define TIME_STEP   32
 

Functions

void controllerNameCallback (const std_msgs::String::ConstPtr &name)
 
void fllWheelCallback (const std_msgs::Float64::ConstPtr &value)
 
void flRotationCallback (const std_msgs::Float64::ConstPtr &value)
 
void imuCallback (const std_msgs::Float64MultiArray::ConstPtr &values)
 
void lBumperCallback (const std_msgs::Float64::ConstPtr &value)
 
void llFingerCallback (const std_msgs::Float64::ConstPtr &value)
 
void lShoulderCallback (const std_msgs::Float64::ConstPtr &value)
 
int main (int argc, char **argv)
 
void move (double speed)
 
void quit (int sig)
 
void rBumperCallback (const std_msgs::Float64::ConstPtr &value)
 
void rotate (double speed)
 
void rotate_wheels (double angle)
 
void rrFingerCallback (const std_msgs::Float64::ConstPtr &value)
 
void rShoulderCallback (const std_msgs::Float64::ConstPtr &value)
 
void torsoCallback (const std_msgs::Float64::ConstPtr &value)
 

Variables

ros::ServiceClient bllWheelPositionClient
 
webots_ros::set_float bllWheelPositionSrv
 
ros::ServiceClient bllWheelSpeedClient
 
webots_ros::set_float bllWheelSpeedSrv
 
ros::ServiceClient blRotationClient
 
webots_ros::set_float blRotationSrv
 
ros::ServiceClient blrWheelPositionClient
 
webots_ros::set_float blrWheelPositionSrv
 
ros::ServiceClient blrWheelSpeedClient
 
webots_ros::set_float blrWheelSpeedSrv
 
ros::ServiceClient brlWheelPositionClient
 
webots_ros::set_float brlWheelPositionSrv
 
ros::ServiceClient brlWheelSpeedClient
 
webots_ros::set_float brlWheelSpeedSrv
 
ros::ServiceClient brRotationClient
 
webots_ros::set_float brRotationSrv
 
ros::ServiceClient brrWheelPositionClient
 
webots_ros::set_float brrWheelPositionSrv
 
ros::ServiceClient brrWheelSpeedClient
 
webots_ros::set_float brrWheelSpeedSrv
 
static int controllerCount
 
static std::vector< std::string > controllerList
 
static std::string controllerName
 
ros::ServiceClient fllWheelPositionClient
 
webots_ros::set_float fllWheelPositionSrv
 
ros::ServiceClient fllWheelSpeedClient
 
webots_ros::set_float fllWheelSpeedSrv
 
ros::ServiceClient flRotationClient
 
webots_ros::set_float flRotationSrv
 
ros::ServiceClient flrWheelPositionClient
 
webots_ros::set_float flrWheelPositionSrv
 
ros::ServiceClient flrWheelSpeedClient
 
webots_ros::set_float flrWheelSpeedSrv
 
ros::ServiceClient frlWheelPositionClient
 
webots_ros::set_float frlWheelPositionSrv
 
ros::ServiceClient frlWheelSpeedClient
 
webots_ros::set_float frlWheelSpeedSrv
 
ros::ServiceClient frRotationClient
 
webots_ros::set_float frRotationSrv
 
ros::ServiceClient frrWheelPositionClient
 
webots_ros::set_float frrWheelPositionSrv
 
ros::ServiceClient frrWheelSpeedClient
 
webots_ros::set_float frrWheelSpeedSrv
 
static double imu_rpy [3] = {0, 0, 0}
 
static unsigned int lBumper = 0
 
static double llFingerPosition = 0
 
static double lShoulderPosition = 0
 
static unsigned int rBumper = 0
 
static double rotationPosition = 0
 
static double rrFingerPosition = 0
 
static double rShoulderPosition = 0
 
ros::ServiceClient timeStepClient
 
webots_ros::set_int timeStepSrv
 
static double torsoPosition = 0
 
static double wheelPosition = 0
 

Macro Definition Documentation

#define ACCELERATION   10

Definition at line 31 of file pr2_beer.cpp.

#define FWD_SPEED   3.

Definition at line 32 of file pr2_beer.cpp.

#define ROTATE_SPEED   6

Definition at line 33 of file pr2_beer.cpp.

#define TIME_STEP   32

Definition at line 30 of file pr2_beer.cpp.

Function Documentation

void controllerNameCallback ( const std_msgs::String::ConstPtr &  name)

Definition at line 263 of file pr2_beer.cpp.

void fllWheelCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 98 of file pr2_beer.cpp.

void flRotationCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 104 of file pr2_beer.cpp.

void imuCallback ( const std_msgs::Float64MultiArray::ConstPtr &  values)

Definition at line 125 of file pr2_beer.cpp.

void lBumperCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 119 of file pr2_beer.cpp.

void llFingerCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 113 of file pr2_beer.cpp.

void lShoulderCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 107 of file pr2_beer.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 277 of file pr2_beer.cpp.

void move ( double  speed)

Definition at line 133 of file pr2_beer.cpp.

void quit ( int  sig)

Definition at line 269 of file pr2_beer.cpp.

void rBumperCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 122 of file pr2_beer.cpp.

void rotate ( double  speed)

Definition at line 171 of file pr2_beer.cpp.

void rotate_wheels ( double  angle)

Definition at line 209 of file pr2_beer.cpp.

void rrFingerCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 116 of file pr2_beer.cpp.

void rShoulderCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 110 of file pr2_beer.cpp.

void torsoCallback ( const std_msgs::Float64::ConstPtr &  value)

Definition at line 101 of file pr2_beer.cpp.

Variable Documentation

ros::ServiceClient bllWheelPositionClient

Definition at line 56 of file pr2_beer.cpp.

webots_ros::set_float bllWheelPositionSrv

Definition at line 65 of file pr2_beer.cpp.

ros::ServiceClient bllWheelSpeedClient

Definition at line 74 of file pr2_beer.cpp.

webots_ros::set_float bllWheelSpeedSrv

Definition at line 83 of file pr2_beer.cpp.

ros::ServiceClient blRotationClient

Definition at line 90 of file pr2_beer.cpp.

webots_ros::set_float blRotationSrv

Definition at line 95 of file pr2_beer.cpp.

ros::ServiceClient blrWheelPositionClient

Definition at line 57 of file pr2_beer.cpp.

webots_ros::set_float blrWheelPositionSrv

Definition at line 66 of file pr2_beer.cpp.

ros::ServiceClient blrWheelSpeedClient

Definition at line 75 of file pr2_beer.cpp.

webots_ros::set_float blrWheelSpeedSrv

Definition at line 84 of file pr2_beer.cpp.

ros::ServiceClient brlWheelPositionClient

Definition at line 58 of file pr2_beer.cpp.

webots_ros::set_float brlWheelPositionSrv

Definition at line 67 of file pr2_beer.cpp.

ros::ServiceClient brlWheelSpeedClient

Definition at line 76 of file pr2_beer.cpp.

webots_ros::set_float brlWheelSpeedSrv

Definition at line 85 of file pr2_beer.cpp.

ros::ServiceClient brRotationClient

Definition at line 91 of file pr2_beer.cpp.

webots_ros::set_float brRotationSrv

Definition at line 96 of file pr2_beer.cpp.

ros::ServiceClient brrWheelPositionClient

Definition at line 59 of file pr2_beer.cpp.

webots_ros::set_float brrWheelPositionSrv

Definition at line 68 of file pr2_beer.cpp.

ros::ServiceClient brrWheelSpeedClient

Definition at line 77 of file pr2_beer.cpp.

webots_ros::set_float brrWheelSpeedSrv

Definition at line 86 of file pr2_beer.cpp.

int controllerCount
static

Definition at line 35 of file pr2_beer.cpp.

std::vector<std::string> controllerList
static

Definition at line 36 of file pr2_beer.cpp.

std::string controllerName
static

Definition at line 37 of file pr2_beer.cpp.

ros::ServiceClient fllWheelPositionClient

Definition at line 52 of file pr2_beer.cpp.

webots_ros::set_float fllWheelPositionSrv

Definition at line 61 of file pr2_beer.cpp.

ros::ServiceClient fllWheelSpeedClient

Definition at line 70 of file pr2_beer.cpp.

webots_ros::set_float fllWheelSpeedSrv

Definition at line 79 of file pr2_beer.cpp.

ros::ServiceClient flRotationClient

Definition at line 88 of file pr2_beer.cpp.

webots_ros::set_float flRotationSrv

Definition at line 93 of file pr2_beer.cpp.

ros::ServiceClient flrWheelPositionClient

Definition at line 53 of file pr2_beer.cpp.

webots_ros::set_float flrWheelPositionSrv

Definition at line 62 of file pr2_beer.cpp.

ros::ServiceClient flrWheelSpeedClient

Definition at line 71 of file pr2_beer.cpp.

webots_ros::set_float flrWheelSpeedSrv

Definition at line 80 of file pr2_beer.cpp.

ros::ServiceClient frlWheelPositionClient

Definition at line 54 of file pr2_beer.cpp.

webots_ros::set_float frlWheelPositionSrv

Definition at line 63 of file pr2_beer.cpp.

ros::ServiceClient frlWheelSpeedClient

Definition at line 72 of file pr2_beer.cpp.

webots_ros::set_float frlWheelSpeedSrv

Definition at line 81 of file pr2_beer.cpp.

ros::ServiceClient frRotationClient

Definition at line 89 of file pr2_beer.cpp.

webots_ros::set_float frRotationSrv

Definition at line 94 of file pr2_beer.cpp.

ros::ServiceClient frrWheelPositionClient

Definition at line 55 of file pr2_beer.cpp.

webots_ros::set_float frrWheelPositionSrv

Definition at line 64 of file pr2_beer.cpp.

ros::ServiceClient frrWheelSpeedClient

Definition at line 73 of file pr2_beer.cpp.

webots_ros::set_float frrWheelSpeedSrv

Definition at line 82 of file pr2_beer.cpp.

double imu_rpy[3] = {0, 0, 0}
static

Definition at line 47 of file pr2_beer.cpp.

unsigned int lBumper = 0
static

Definition at line 45 of file pr2_beer.cpp.

double llFingerPosition = 0
static

Definition at line 43 of file pr2_beer.cpp.

double lShoulderPosition = 0
static

Definition at line 41 of file pr2_beer.cpp.

unsigned int rBumper = 0
static

Definition at line 46 of file pr2_beer.cpp.

double rotationPosition = 0
static

Definition at line 40 of file pr2_beer.cpp.

double rrFingerPosition = 0
static

Definition at line 44 of file pr2_beer.cpp.

double rShoulderPosition = 0
static

Definition at line 42 of file pr2_beer.cpp.

ros::ServiceClient timeStepClient

Definition at line 49 of file pr2_beer.cpp.

webots_ros::set_int timeStepSrv

Definition at line 50 of file pr2_beer.cpp.

double torsoPosition = 0
static

Definition at line 39 of file pr2_beer.cpp.

double wheelPosition = 0
static

Definition at line 38 of file pr2_beer.cpp.



webots_ros
Author(s):
autogenerated on Mon Jul 8 2019 03:19:27