ROS Serial C client library
|
00001 00018 #ifndef __ROS_H__ 00019 #define __ROS_H__ 00020 /* ROS includes */ 00021 #include "ros_std.h" 00022 #include "ros_config.h" 00023 #include "ros_types.h" 00024 #include "ros_time.h" 00025 #include "ros_packet.h" 00026 #include "ros_spinner.h" 00027 #include "ros_hardware.h" 00028 #include "ros_os.h" 00029 /* ROS msgs includes */ 00030 #include "TopicInfoC.h" 00031 #include "TimeC.h" 00047 void rosInit(char* private_namespace); 00052 //rosNodeHandle_t* rosNodeHandle(); 00053 rosNodeHandle_t* rosNodeHandle(char* device_id); 00067 rosReturnCode_t rosOk(rosNodeHandle_t *nodehandle); 00087 //void rosSpin(rosNodeHandle_t *nodehandle); 00088 void rosSpin(rosNodeHandle_t *nodehandle); 00114 void rosSpinOnce(rosNodeHandle_t *nodehandle); 00120 void rosShutdown(); 00124 rosReturnCode_t rosPublish(void* message); 00128 rosPublisher_t* rosAdvertise(rosMessageHandle_t* messagehandle, char* topic, uint16_t buffer_size); 00132 rosSubscriber_t* rosSubscribe(rosMessageHandle_t* messagehandle, char* topic, uint16_t buffer_size, void (*callback)(void* message)); 00133 00134 #endif /* __ROS_H__ */