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

ROS Serial C nodehandle implementation. More...

#include "ros.h"
Include dependency graph for ros_nodehandle.c:

Enumerations

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

rosReturnCode_t rosPublish (void *message)
 Nodehandle publish implementation.
rosReturnCode_t rosPublishLoopback (void *message)
rosPublisher_trosAdvertise (rosMessageHandle_t *messagehandle, char *topic, uint16_t buffer_size)
 Nodehandle advertise implementation.
rosSubscriber_trosSubscribe (rosMessageHandle_t *messagehandle, char *topic, uint16_t buffer_size, void(*callback)(void *message))
 Nodehandle subscribe implementation.
rosNodeHandle_trosNodeHandle (char *device_id)
 Get pointer to global nodehandle.
void rosSpinAll ()

Variables

rosNodeHandle_tg_nodehandles []
int g_nodehandles_size

Detailed Description

ROS Serial C nodehandle 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.

Function Documentation

rosNodeHandle_t* rosNodeHandle ( char *  device_id)

Get pointer to global nodehandle.

Returns:
pointer to global nodehandle
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines