/home/laradmin/lar/bases/atlasmv_base/src/atlasmv_command_publisher.cpp File Reference

Node that publishes commands from a gamepad. More...

#include <iostream>
#include "ros/ros.h"
#include <signal.h>
#include <atlasmv_base/AtlasmvMotionCommand.h>
#include <c_atlasmv.h>
#include "class_gamepad.h"
#include <math.h>
Include dependency graph for atlasmv_command_publisher.cpp:

Go to the source code of this file.

Functions

void GamepadDir (int value, void *userdata)
void GamepadDisconnect (int value, void *userdata)
void GamepadReverse (int value, void *parameters)
void GamepadSearch (int value, void *parameters)
void GamepadSpeed (int value, void *userdata)
void GamepadZeroSteering (int value, void *userdata)
int main (int argc, char **argv)

Variables

atlasmv_base::AtlasmvMotionCommand command
Publisher commandPublisher
Publisher commandPublisherPtr
bool in_reverse = false
int last_value = -32768.

Detailed Description

Node that publishes commands from a gamepad.

Definition in file atlasmv_command_publisher.cpp.


Function Documentation

void GamepadDir ( int  value,
void *  userdata 
)

Definition at line 109 of file atlasmv_command_publisher.cpp.

void GamepadDisconnect ( int  value,
void *  userdata 
)

Definition at line 137 of file atlasmv_command_publisher.cpp.

void GamepadReverse ( int  value,
void *  parameters 
)

Definition at line 99 of file atlasmv_command_publisher.cpp.

void GamepadSearch ( int  value,
void *  parameters 
)

Definition at line 53 of file atlasmv_command_publisher.cpp.

void GamepadSpeed ( int  value,
void *  userdata 
)

Definition at line 79 of file atlasmv_command_publisher.cpp.

void GamepadZeroSteering ( int  value,
void *  userdata 
)

Definition at line 128 of file atlasmv_command_publisher.cpp.

int main ( int  argc,
char **  argv 
)

ROS INIT

Ir buscar os parametros

Definition at line 147 of file atlasmv_command_publisher.cpp.


Variable Documentation

atlasmv_base::AtlasmvMotionCommand command

Definition at line 46 of file atlasmv_command_publisher.cpp.

Publisher commandPublisher

Definition at line 50 of file atlasmv_command_publisher.cpp.

Definition at line 47 of file atlasmv_command_publisher.cpp.

bool in_reverse = false

Definition at line 48 of file atlasmv_command_publisher.cpp.

int last_value = -32768.

Definition at line 49 of file atlasmv_command_publisher.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Wed Jul 23 04:34:43 2014