Class: Roscpp::EmptyResponse

Inherits:
ROS::Message
  • Object
show all
Defined in:
lib/roscpp/Empty.rb

Constant Summary collapse

@@struct_L =
::ROS::Struct.new("L")
@@slot_types =
[]

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ EmptyResponse

Constructor. You can set the default values using keyword operators.

Parameters:

  • args (Hash) (defaults to: {})

    keyword for initializing values



98
99
# File 'lib/roscpp/Empty.rb', line 98

def initialize(args={})
end

Class Method Details

.md5sumObject



73
74
75
# File 'lib/roscpp/Empty.rb', line 73

def self.md5sum
  "d41d8cd98f00b204e9800998ecf8427e"
end

.typeObject



77
78
79
# File 'lib/roscpp/Empty.rb', line 77

def self.type
  "roscpp/EmptyResponse"
end

Instance Method Details

#_get_typesString

internal API method

Returns:

  • (String)

    Message type string.



103
104
105
# File 'lib/roscpp/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/roscpp/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

Returns:

  • (Boolean)


81
82
83
# File 'lib/roscpp/Empty.rb', line 81

def has_header?
  false
end

#message_definitionObject



85
86
87
88
# File 'lib/roscpp/Empty.rb', line 85

def message_definition
  "
"
end

#serialize(buff) ⇒ Object

serialize message into buffer

Parameters:

  • buff (IO)

    buffer



109
110
111
112
113
114
115
116
# File 'lib/roscpp/Empty.rb', line 109

def serialize(buff)
  begin
    pass
  rescue => exception
    raise "some erro in serialize: #{exception}"

  end
end