64 ROS_ERROR(
"Failed to send WRITE_SINGLE_IO command");
78 set_io.
init(fun, address, data);
79 set_io_msg.
init(set_io);
84 ROS_ERROR(
"Failed to send SetIO message");
88 set_io_reply.
init(res);
bool setIO(industrial::shared_types::shared_int fun, industrial::shared_types::shared_int, std::vector< industrial::shared_types::shared_int > &data)
Writes to a single IO point on the controller.
fsrobo_r_driver::simple_message::io_control_reply::SetIOReply reply_
void init()
Initializes a empty write single io command.
Enumeration of set IO reply result codes.
Class encapsulated FSRobo-R set io reply message generation methods (either to or from a industrial::...
bool init(industrial::simple_message::SimpleMessage &msg)
Initializes message from a simple message.
virtual bool toRequest(industrial::simple_message::SimpleMessage &msg)
Class encapsulated FSRobo-R set io message generation methods (either to or from a industrial::simple...
industrial::shared_types::shared_int getResultCode() const
Returns the result code.
bool sendAndReceiveMsg(industrial::simple_message::SimpleMessage &send, industrial::simple_message::SimpleMessage &recv, bool verbose=false)
void copyFrom(SetIOReply &src)
Copies the passed in value.
Class encapsulated set io reply data. These messages are sent by the FSRobo-R controller in response ...
SmplMsgConnection * connection_
bool sendAndReceive(industrial::shared_types::shared_int address, industrial::shared_types::shared_int value, std::vector< industrial::shared_types::shared_int > &data, SetIOReply &reply)
Class encapsulated write single io data. FSRobo-R specific interface to set IO element on the control...
bool init(industrial::simple_message::SimpleMessage &msg)
Initializes message from a simple message.
bool init(SmplMsgConnection *connection)