Method: Visualization_msgs::MenuEntry#serialize
- Defined in:
- lib/visualization_msgs/MenuEntry.rb
#serialize(buff) ⇒ Object
serialize message into buffer
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/visualization_msgs/MenuEntry.rb', line 136 def serialize(buff) begin buff.write(@@struct_L2.pack(@id, @parent_id)) _x = @title length = _x.length buff.write([length, _x].pack("La#{length}")) _x = @command length = _x.length buff.write([length, _x].pack("La#{length}")) buff.write(@@struct_C.pack(@command_type)) rescue => exception raise "some erro in serialize: #{exception}" end end |