Class: Std_srvs::EmptyResponse
- Inherits:
-
ROS::Message
- Object
- ROS::Message
- Std_srvs::EmptyResponse
- Defined in:
- lib/std_srvs/Empty.rb
Constant Summary collapse
- @@struct_L =
::ROS::Struct.new("L")
- @@slot_types =
[]
Class Method Summary collapse
Instance Method Summary collapse
-
#_get_types ⇒ String
internal API method.
-
#deserialize(str) ⇒ Object
unpack serialized message in str into this message instance @param [String] str: byte array of serialized message.
- #has_header? ⇒ Boolean
-
#initialize(args = {}) ⇒ EmptyResponse
constructor
Constructor.
- #message_definition ⇒ Object
-
#serialize(buff) ⇒ Object
serialize message into buffer.
Constructor Details
#initialize(args = {}) ⇒ EmptyResponse
Constructor. You can set the default values using keyword operators.
98 99 |
# File 'lib/std_srvs/Empty.rb', line 98 def initialize(args={}) end |
Class Method Details
.md5sum ⇒ Object
73 74 75 |
# File 'lib/std_srvs/Empty.rb', line 73 def self.md5sum "d41d8cd98f00b204e9800998ecf8427e" end |
.type ⇒ Object
77 78 79 |
# File 'lib/std_srvs/Empty.rb', line 77 def self.type "std_srvs/EmptyResponse" end |
Instance Method Details
#_get_types ⇒ String
internal API method
103 104 105 |
# File 'lib/std_srvs/Empty.rb', line 103 def _get_types @slot_types end |
#deserialize(str) ⇒ Object
unpack serialized message in str into this message instance
@param [String] str: byte array of serialized message
120 121 122 123 124 125 126 127 128 |
# File 'lib/std_srvs/Empty.rb', line 120 def deserialize(str) begin end_point = 0 return self rescue => exception raise "message DeserializationError: #{exception}" #most likely buffer underfill end end |
#has_header? ⇒ Boolean
81 82 83 |
# File 'lib/std_srvs/Empty.rb', line 81 def has_header? false end |
#message_definition ⇒ Object
85 86 87 88 |
# File 'lib/std_srvs/Empty.rb', line 85 def " " end |
#serialize(buff) ⇒ Object
serialize message into buffer
109 110 111 112 113 114 115 116 |
# File 'lib/std_srvs/Empty.rb', line 109 def serialize(buff) begin pass rescue => exception raise "some erro in serialize: #{exception}" end end |