#include <node_handle.h>
Public Member Functions | |
bool | advertise (Publisher &p) |
template<typename MReq , typename MRes , typename ObjT > | |
bool | advertiseService (ServiceServer< MReq, MRes, ObjT > &srv) |
virtual bool | connected () override |
Hardware * | getHardware () |
bool | getParam (const char *name, bool *param, int length=1, int timeout=1000) |
bool | getParam (const char *name, char **param, int length=1, int timeout=1000) |
bool | getParam (const char *name, float *param, int length=1, int timeout=1000) |
bool | getParam (const char *name, int *param, int length=1, int timeout=1000) |
void | initNode () |
void | initNode (char *portName) |
void | logdebug (const char *msg) |
void | logerror (const char *msg) |
void | logfatal (const char *msg) |
void | loginfo (const char *msg) |
void | logwarn (const char *msg) |
void | negotiateTopics () |
Time | now () |
virtual int | publish (int id, const Msg *msg) override |
void | requestSyncTime () |
template<typename MReq , typename MRes > | |
bool | serviceClient (ServiceClient< MReq, MRes > &srv) |
void | setNow (const Time &new_now) |
void | setSpinTimeout (const uint32_t &timeout) |
Sets the maximum time in millisconds that spinOnce() can work. This will not effect the processing of the buffer, as spinOnce processes one byte at a time. It simply sets the maximum time that one call can process for. You can choose to clear the buffer if that is beneficial if SPIN_TIMEOUT is returned from spinOnce(). More... | |
virtual int | spinOnce () override |
bool | subscribe (Subscriber_ &s) |
void | syncTime (uint8_t *data) |
Protected Member Functions | |
void | log (char byte, const char *msg) |
bool | requestParam (const char *name, int time_out=1000) |
Protected Attributes | |
int | bytes_ {0} |
int | checksum_ {0} |
bool | configured_ {false} |
Hardware | hardware_ {} |
int | index_ {0} |
uint32_t | last_msg_timeout_time {0} |
uint32_t | last_sync_receive_time {0} |
uint32_t | last_sync_time {0} |
uint8_t | message_in [INPUT_SIZE] = {0} |
uint8_t | message_out [OUTPUT_SIZE] = {0} |
int | mode_ {0} |
uint32_t | nsec_offset {0} |
bool | param_received {false} |
Publisher * | publishers [MAX_PUBLISHERS] = {nullptr} |
rosserial_msgs::RequestParamResponse | req_param_resp {} |
uint32_t | rt_time {0} |
uint32_t | sec_offset {0} |
uint32_t | spin_timeout_ {0} |
Subscriber_ * | subscribers [MAX_SUBSCRIBERS] {nullptr} |
int | topic_ {0} |
Definition at line 106 of file node_handle.h.
|
inline |
Definition at line 397 of file node_handle.h.
|
inline |
Definition at line 429 of file node_handle.h.
|
inlineoverridevirtual |
Implements ros::NodeHandleBase_.
Definition at line 345 of file node_handle.h.
|
inline |
Definition at line 130 of file node_handle.h.
|
inline |
Definition at line 629 of file node_handle.h.
|
inline |
Definition at line 611 of file node_handle.h.
|
inline |
Definition at line 593 of file node_handle.h.
|
inline |
Definition at line 575 of file node_handle.h.
|
inline |
Definition at line 136 of file node_handle.h.
|
inline |
Definition at line 146 of file node_handle.h.
|
inlineprotected |
Definition at line 517 of file node_handle.h.
|
inline |
Definition at line 526 of file node_handle.h.
|
inline |
Definition at line 538 of file node_handle.h.
|
inline |
Definition at line 542 of file node_handle.h.
|
inline |
Definition at line 530 of file node_handle.h.
|
inline |
Definition at line 534 of file node_handle.h.
|
inline |
Definition at line 445 of file node_handle.h.
|
inline |
Definition at line 374 of file node_handle.h.
|
inlineoverridevirtual |
Implements ros::NodeHandleBase_.
Definition at line 476 of file node_handle.h.
|
inlineprotected |
Definition at line 555 of file node_handle.h.
|
inline |
Definition at line 354 of file node_handle.h.
|
inline |
Definition at line 438 of file node_handle.h.
|
inline |
Definition at line 384 of file node_handle.h.
|
inline |
Sets the maximum time in millisconds that spinOnce() can work. This will not effect the processing of the buffer, as spinOnce processes one byte at a time. It simply sets the maximum time that one call can process for. You can choose to clear the buffer if that is beneficial if SPIN_TIMEOUT is returned from spinOnce().
timeout | The timeout in milliseconds that spinOnce will function. |
Definition at line 163 of file node_handle.h.
|
inlineoverridevirtual |
Implements ros::NodeHandleBase_.
Definition at line 189 of file node_handle.h.
|
inline |
Definition at line 413 of file node_handle.h.
|
inline |
Definition at line 361 of file node_handle.h.
|
protected |
Definition at line 171 of file node_handle.h.
|
protected |
Definition at line 174 of file node_handle.h.
|
protected |
Definition at line 176 of file node_handle.h.
|
protected |
Definition at line 109 of file node_handle.h.
|
protected |
Definition at line 173 of file node_handle.h.
|
protected |
Definition at line 181 of file node_handle.h.
|
protected |
Definition at line 180 of file node_handle.h.
|
protected |
Definition at line 179 of file node_handle.h.
|
protected |
Definition at line 120 of file node_handle.h.
|
protected |
Definition at line 121 of file node_handle.h.
|
protected |
Definition at line 170 of file node_handle.h.
|
protected |
Definition at line 115 of file node_handle.h.
|
protected |
Definition at line 552 of file node_handle.h.
|
protected |
Definition at line 123 of file node_handle.h.
|
protected |
Definition at line 553 of file node_handle.h.
|
protected |
Definition at line 112 of file node_handle.h.
|
protected |
Definition at line 115 of file node_handle.h.
|
protected |
Definition at line 118 of file node_handle.h.
|
protected |
Definition at line 124 of file node_handle.h.
|
protected |
Definition at line 172 of file node_handle.h.