Defines | Functions | Variables
sweep_laser_scan_client.c File Reference
#include <ncurses.h>
#include <playerc.h>
#include <string>
#include <math.h>
#include <stdio.h>
#include <cstdlib>
#include <getopt.h>
#include <iostream>
Include dependency graph for sweep_laser_scan_client.c:

Go to the source code of this file.

Defines

#define DEG2RAD(d)   (float)((d) * M_PI / 180)
#define EPS   0.01
#define HOSTNAME   "localhost"
#define RAD2DEG(r)   (float)((r) * 180 / M_PI)

Functions

float go_to_pose (playerc_client_t *client, playerc_actarray_t *device, int actuator, float min_angle, float max_angle)
void home (playerc_client_t *client, playerc_actarray_t *device, int joint)
void homeall (playerc_client_t *client, playerc_actarray_t *device)
void laser_power_on_off (playerc_client_t *client, playerc_laser_t *device_laser, bool sw)
int main (int argc, char **argv)
void print_data (playerc_actarray_t *device)
void rotate (playerc_client_t *client, playerc_actarray_t *device, int actuator, float angle, float speed)
void sweep (playerc_client_t *client, playerc_actarray_t *device, int actuator, float next_pos, float speed)
void usage_ ()

Variables

struct {
   float   end_angle
   int   interface
   std::string   log_filename
   int   loop
   char *   program
   int   rot_joint
   float   rot_speed
   float   start_angle
g_options

Define Documentation

#define DEG2RAD (   d)    (float)((d) * M_PI / 180)

Definition at line 14 of file sweep_laser_scan_client.c.

#define EPS   0.01

Definition at line 19 of file sweep_laser_scan_client.c.

#define HOSTNAME   "localhost"

Definition at line 16 of file sweep_laser_scan_client.c.

#define RAD2DEG (   r)    (float)((r) * 180 / M_PI)

Definition at line 12 of file sweep_laser_scan_client.c.


Function Documentation

float go_to_pose ( playerc_client_t *  client,
playerc_actarray_t *  device,
int  actuator,
float  min_angle,
float  max_angle 
)

Definition at line 394 of file sweep_laser_scan_client.c.

void home ( playerc_client_t *  client,
playerc_actarray_t *  device,
int  joint 
)

Definition at line 346 of file sweep_laser_scan_client.c.

void homeall ( playerc_client_t *  client,
playerc_actarray_t *  device 
)

Definition at line 361 of file sweep_laser_scan_client.c.

void laser_power_on_off ( playerc_client_t *  client,
playerc_laser_t *  device_laser,
bool  sw 
)

Definition at line 478 of file sweep_laser_scan_client.c.

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file sweep_laser_scan_client.c.

void print_data ( playerc_actarray_t *  device)

Definition at line 463 of file sweep_laser_scan_client.c.

void rotate ( playerc_client_t *  client,
playerc_actarray_t *  device,
int  actuator,
float  angle,
float  speed 
)

Definition at line 439 of file sweep_laser_scan_client.c.

void sweep ( playerc_client_t *  client,
playerc_actarray_t *  device,
int  actuator,
float  next_pos,
float  speed 
)

Definition at line 381 of file sweep_laser_scan_client.c.

void usage_ ( )

Definition at line 490 of file sweep_laser_scan_client.c.


Variable Documentation

float end_angle

Definition at line 38 of file sweep_laser_scan_client.c.

struct { ... } g_options [static]
int interface

Definition at line 39 of file sweep_laser_scan_client.c.

std::string log_filename

Definition at line 36 of file sweep_laser_scan_client.c.

int loop

Definition at line 43 of file sweep_laser_scan_client.c.

char* program

Definition at line 35 of file sweep_laser_scan_client.c.

int rot_joint

Definition at line 40 of file sweep_laser_scan_client.c.

float rot_speed

Definition at line 42 of file sweep_laser_scan_client.c.

float start_angle

Definition at line 37 of file sweep_laser_scan_client.c.



player_log_actarray
Author(s): Radu Bogdan Rusu
autogenerated on Mon Oct 6 2014 09:38:35