Go to the documentation of this file.
61 ROS_ERROR(
"Mockup - sendSOPASCommand(), this should never be called");
103 if (bufferSize < *actual_length + 1)
109 strncpy(
reinterpret_cast<char *
>(receiveBuffer), &str[0], *actual_length + 1);
117 ROS_WARN(
"Mockup - dropping datagram message");
SickTimCommonMockup(AbstractParser *parser)
virtual int init_scanner()
virtual int get_datagram(unsigned char *receiveBuffer, int bufferSize, int *actual_length)
Read a datagram from the device.
ROSCPP_DECL void spinOnce()
virtual int close_device()
void datagramCB(const std_msgs::String::ConstPtr &msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
virtual ~SickTimCommonMockup()
std_msgs::String::ConstPtr datagram_msg_
virtual int init_device()
virtual int sendSOPASCommand(const char *request, std::vector< unsigned char > *reply)
Send a SOPAS command to the device and print out the response to the console.
sick_tim
Author(s): Jochen Sprickerhof
, Martin Günther , Sebastian Pütz
autogenerated on Thu Nov 28 2024 03:03:33