Class: Tf::FrameGraphRequest

Inherits:
ROS::Message
  • Object
show all
Defined in:
lib/tf/FrameGraph.rb

Constant Summary collapse

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ FrameGraphRequest

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

Parameters:

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

    keyword for initializing values



33
34
# File 'lib/tf/FrameGraph.rb', line 33

def initialize(args={})
end

Class Method Details

.md5sumObject



8
9
10
# File 'lib/tf/FrameGraph.rb', line 8

def self.md5sum
  "d41d8cd98f00b204e9800998ecf8427e"
end

.typeObject



12
13
14
# File 'lib/tf/FrameGraph.rb', line 12

def self.type
  "tf/FrameGraphRequest"
end

Instance Method Details

#_get_typesString

internal API method

Returns:

  • (String)

    Message type string.



38
39
40
# File 'lib/tf/FrameGraph.rb', line 38

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


55
56
57
58
59
60
61
62
63
# File 'lib/tf/FrameGraph.rb', line 55

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)


16
17
18
# File 'lib/tf/FrameGraph.rb', line 16

def has_header?
  false
end

#message_definitionObject



20
21
22
23
# File 'lib/tf/FrameGraph.rb', line 20

def message_definition
  "
"
end

#serialize(buff) ⇒ Object

serialize message into buffer

Parameters:

  • buff (IO)

    buffer



44
45
46
47
48
49
50
51
# File 'lib/tf/FrameGraph.rb', line 44

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

  end
end