#include "ros/ros.h"
#include <openreroc_pwm/openreroc_pwm.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termio.h>
#include <signal.h>
Go to the source code of this file.
Functions | |
void | allwrite (int fd, unsigned char *buf, int len) |
void | chatterCallback (const openreroc_pwm::openreroc_pwm msg) |
void | config_console () |
unsigned int | convert_state (unsigned char dir_left, unsigned int para_left, unsigned char dir_right, unsigned int para_right) |
int | main (int argc, char **argv) |
Variables | |
int | fd_32 |
void allwrite | ( | int | fd, |
unsigned char * | buf, | ||
int | len | ||
) |
Definition at line 76 of file openreroc_pwm.cpp.
void chatterCallback | ( | const openreroc_pwm::openreroc_pwm | msg | ) |
Definition at line 22 of file openreroc_pwm.cpp.
void config_console | ( | ) |
Definition at line 61 of file openreroc_pwm.cpp.
unsigned int convert_state | ( | unsigned char | dir_left, |
unsigned int | para_left, | ||
unsigned char | dir_right, | ||
unsigned int | para_right | ||
) |
Definition at line 100 of file openreroc_pwm.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 45 of file openreroc_pwm.cpp.
int fd_32 |
Definition at line 15 of file openreroc_pwm.cpp.