Functions | Variables
motor.cpp File Reference
#include "ros/ros.h"
#include "ssc32.hpp"
#include "corobot_msgs/MotorCommand.h"
#include "corobot_msgs/ServoPosition.h"
#include <math.h>
#include <errno.h>
#include <sys/stat.h>
#include <diagnostic_updater/diagnostic_updater.h>
#include <diagnostic_updater/publisher.h>
#include <corobot_diagnostics/diagnostics.h>
Include dependency graph for motor.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
void setPositionCallback (const corobot_msgs::ServoPosition &msg)
 Callback for the topic /setPositionServo The position of the concerned servo motor is set each time a message is received on this topic.
void SetSpeedTopic (const corobot_msgs::MotorCommand::ConstPtr &msg)
void ssc32_diagnostic (diagnostic_updater::DiagnosticStatusWrapper &stat)
void timerCallback (const ros::TimerEvent &)

Variables

bool first_time_command [20] = {false}
SSC32 m_ssc32
std::string SSC32_PORT
int ssc32Error = 0
ros::Timer timer

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 148 of file motor.cpp.

void setPositionCallback ( const corobot_msgs::ServoPosition &  msg)

Callback for the topic /setPositionServo The position of the concerned servo motor is set each time a message is received on this topic.

Parameters:
corobot_msgs::ServoPositionMessage

Definition at line 105 of file motor.cpp.

void SetSpeedTopic ( const corobot_msgs::MotorCommand::ConstPtr &  msg)

Definition at line 79 of file motor.cpp.

Function that will report the status of the hardware to the diagnostic topic

Definition at line 132 of file motor.cpp.

void timerCallback ( const ros::TimerEvent )

Definition at line 60 of file motor.cpp.


Variable Documentation

bool first_time_command[20] = {false}

Definition at line 54 of file motor.cpp.

Definition at line 43 of file motor.cpp.

std::string SSC32_PORT

Definition at line 45 of file motor.cpp.

int ssc32Error = 0

Definition at line 49 of file motor.cpp.

Definition at line 46 of file motor.cpp.



corobot_ssc32
Author(s):
autogenerated on Wed Aug 26 2015 11:09:37