ROS Serial C client library
ros/src/ros_spinner.c File Reference

ROS Serial C nodehandle spinner implementation. More...

#include "ros_spinner.h"
#include "ros_hardware.h"
#include "TimeC.h"
#include "TopicInfoC.h"
Include dependency graph for ros_spinner.c:

Enumerations

enum  SPINNER_STATES {
  SYNC = 0, TOPIC, LENGTH, DATA,
  CHECKSUM
}
enum  TOPIC_INFO {
  ID_PUBLISHER = 0, ID_SUBSCRIBER = 1, ID_SERVICE_SERVER = 2, ID_SERVICE_CLIENT = 4,
  ID_PARAMETER_REQUEST = 6, ID_LOG = 7, ID_TIME = 10, ID_PUBLISHER = 0,
  ID_SUBSCRIBER = 1, ID_SERVICE_SERVER = 2, ID_SERVICE_CLIENT = 4, ID_PARAMETER_REQUEST = 6,
  ID_LOG = 7, ID_TIME = 10
}

Functions

void requestTopicNegotiation (rosNodeHandle_t *nodehandle)
void responseTopicNegotiation (rosNodeHandle_t *nodehandle)
void requestSyncTime (rosNodeHandle_t *nodehandle)
void responseSyncTime (rosNodeHandle_t *nodehandle)
rosReturnCode_t slaveSpinner (rosNodeHandle_t *nodehandle)
rosReturnCode_t masterSpinner (rosNodeHandle_t *nodehandle)

Variables

uint32_t g_sync_request_time
uint32_t g_sec_offset
uint32_t g_nsec_offset
uint32_t g_last_sync_time
uint32_t g_last_sync_receive_time
uint32_t g_last_msg_timeout_time

Detailed Description

ROS Serial C nodehandle spinner implementation.

Date:
04/19/2013
Author:
Peter Rudolph

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

License:
This library is released under LGPLv3.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines