Go to the documentation of this file.00001 #include "PublisheR.h"
00002
00003 PublisheR* rrosPublisher( NodeR* handle,
00004 const char* topic,
00005 const char* type,
00006 const char* msg_def,
00007 const char* msg_md5) {
00008 return new PublisheR(handle, topic, type, msg_def, msg_md5);
00009 }
00010
00011 const char* rrosPublisherGetTopic(PublisheR* publisher) { return publisher->getTopic(); }
00012 const char* rrosPublisherGetMessageType(PublisheR* publisher) { return publisher->getMessageType(); }
00013 const char* rrosPublisherGetMessageMD5(PublisheR* publisher) { return publisher->getMessageMD5(); }
00014 const char* rrosPublisherGetMessageDefinition(PublisheR* publisher) { return publisher->getMessageDefinition(); }
00015 OStreamR* rrosPublisherGetMessageStream(PublisheR *publisher) { return publisher->getMessageStream(); }
00016
00017 void rrosPublish(PublisheR* publisher){ publisher->publish(); }
00018
00019 void rros_stream_write_bool (OStreamR *s, bool val) { s->next(val); }
00020 void rros_stream_write_int8 (OStreamR *s, signed char val) { s->next(val); }
00021 void rros_stream_write_uint8 (OStreamR *s, unsigned char val) { s->next(val); }
00022 void rros_stream_write_int16 (OStreamR *s, signed short val) { s->next(val); }
00023 void rros_stream_write_uint16 (OStreamR *s, unsigned short val) { s->next(val); }
00024 void rros_stream_write_int32 (OStreamR *s, signed int val) { s->next(val); }
00025 void rros_stream_write_uint32 (OStreamR *s, unsigned int val) { s->next(val); }
00026 void rros_stream_write_int64 (OStreamR *s, signed long val) { s->next(val); }
00027 void rros_stream_write_uint64 (OStreamR *s, unsigned long val) { s->next(val); }
00028 void rros_stream_write_float32 (OStreamR *s, float val) { s->next(val); }
00029 void rros_stream_write_float64 (OStreamR *s, double val) { s->next(val); }
00030 void rros_stream_write_string (OStreamR *s, char* val) {
00031 std::string str = val;
00032 s->next(str);
00033 }
00034
00035 void rros_stream_write_int8_array (OStreamR *s, std::vector<signed char>* vec) { s->next(*vec); }
00036 void rros_stream_write_uint8_array (OStreamR *s, std::vector<unsigned char>* vec) { s->next(*vec); }
00037 void rros_stream_write_int16_array (OStreamR *s, std::vector<signed short>* vec) { s->next(*vec); }
00038 void rros_stream_write_uint16_array (OStreamR *s, std::vector<unsigned short>* vec) { s->next(*vec); }
00039 void rros_stream_write_int32_array (OStreamR *s, std::vector<signed int>* vec) { s->next(*vec); }
00040 void rros_stream_write_uint32_array (OStreamR *s, std::vector<unsigned int>* vec) { s->next(*vec); }
00041 void rros_stream_write_int64_array (OStreamR *s, std::vector<signed long>* vec) { s->next(*vec); }
00042 void rros_stream_write_uint64_array (OStreamR *s, std::vector<unsigned long>* vec) { s->next(*vec); }
00043 void rros_stream_write_float32_array (OStreamR *s, std::vector<float>* vec) { s->next(*vec); }
00044 void rros_stream_write_float64_array (OStreamR *s, std::vector<double>* vec) { s->next(*vec); }
00045 void rros_stream_write_string_array (OStreamR *s, std::vector<std::string>* vec) { s->next(*vec); }
00046