rosruby_msgs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/lib/actionlib_msgs/GoalID.rb +106 -0
  2. data/lib/actionlib_msgs/GoalStatus.rb +160 -0
  3. data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
  4. data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
  5. data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
  6. data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
  7. data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
  8. data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
  9. data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
  10. data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
  11. data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
  12. data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
  13. data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
  14. data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
  15. data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
  16. data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
  17. data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
  18. data/lib/geometry_msgs/Point.rb +88 -0
  19. data/lib/geometry_msgs/Point32.rb +94 -0
  20. data/lib/geometry_msgs/PointStamped.rb +133 -0
  21. data/lib/geometry_msgs/Polygon.rb +112 -0
  22. data/lib/geometry_msgs/PolygonStamped.rb +159 -0
  23. data/lib/geometry_msgs/Pose.rb +110 -0
  24. data/lib/geometry_msgs/Pose2D.rb +88 -0
  25. data/lib/geometry_msgs/PoseArray.rb +174 -0
  26. data/lib/geometry_msgs/PoseStamped.rb +150 -0
  27. data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
  28. data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
  29. data/lib/geometry_msgs/Quaternion.rb +91 -0
  30. data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
  31. data/lib/geometry_msgs/Transform.rb +111 -0
  32. data/lib/geometry_msgs/TransformStamped.rb +168 -0
  33. data/lib/geometry_msgs/Twist.rb +100 -0
  34. data/lib/geometry_msgs/TwistStamped.rb +140 -0
  35. data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
  36. data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
  37. data/lib/geometry_msgs/Vector3.rb +88 -0
  38. data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
  39. data/lib/geometry_msgs/Wrench.rb +101 -0
  40. data/lib/geometry_msgs/WrenchStamped.rb +141 -0
  41. data/lib/nav_msgs/GetMap.rb +280 -0
  42. data/lib/nav_msgs/GetPlan.rb +406 -0
  43. data/lib/nav_msgs/GridCells.rb +153 -0
  44. data/lib/nav_msgs/MapMetaData.rb +130 -0
  45. data/lib/nav_msgs/OccupancyGrid.rb +187 -0
  46. data/lib/nav_msgs/Odometry.rb +223 -0
  47. data/lib/nav_msgs/Path.rb +205 -0
  48. data/lib/roscpp/Empty.rb +166 -0
  49. data/lib/roscpp/GetLoggers.rb +205 -0
  50. data/lib/roscpp/Logger.rb +98 -0
  51. data/lib/roscpp/SetLoggerLevel.rb +189 -0
  52. data/lib/roscpp_tutorials/TwoInts.rb +185 -0
  53. data/lib/rosgraph_msgs/Clock.rb +90 -0
  54. data/lib/rosgraph_msgs/Log.rb +210 -0
  55. data/lib/sensor_msgs/CameraInfo.rb +325 -0
  56. data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
  57. data/lib/sensor_msgs/CompressedImage.rb +151 -0
  58. data/lib/sensor_msgs/Image.rb +179 -0
  59. data/lib/sensor_msgs/Imu.rb +193 -0
  60. data/lib/sensor_msgs/JointState.rb +195 -0
  61. data/lib/sensor_msgs/Joy.rb +141 -0
  62. data/lib/sensor_msgs/JoyFeedback.rb +104 -0
  63. data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
  64. data/lib/sensor_msgs/LaserScan.rb +178 -0
  65. data/lib/sensor_msgs/NavSatFix.rb +215 -0
  66. data/lib/sensor_msgs/NavSatStatus.rb +115 -0
  67. data/lib/sensor_msgs/PointCloud.rb +222 -0
  68. data/lib/sensor_msgs/PointCloud2.rb +226 -0
  69. data/lib/sensor_msgs/PointField.rb +119 -0
  70. data/lib/sensor_msgs/Range.rb +157 -0
  71. data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
  72. data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
  73. data/lib/sensor_msgs/TimeReference.rb +140 -0
  74. data/lib/std_msgs/Bool.rb +83 -0
  75. data/lib/std_msgs/Byte.rb +83 -0
  76. data/lib/std_msgs/ByteMultiArray.rb +165 -0
  77. data/lib/std_msgs/Char.rb +82 -0
  78. data/lib/std_msgs/ColorRGBA.rb +89 -0
  79. data/lib/std_msgs/Duration.rb +87 -0
  80. data/lib/std_msgs/Empty.rb +75 -0
  81. data/lib/std_msgs/Float32.rb +82 -0
  82. data/lib/std_msgs/Float32MultiArray.rb +165 -0
  83. data/lib/std_msgs/Float64.rb +82 -0
  84. data/lib/std_msgs/Float64MultiArray.rb +165 -0
  85. data/lib/std_msgs/Header.rb +112 -0
  86. data/lib/std_msgs/Int16.rb +83 -0
  87. data/lib/std_msgs/Int16MultiArray.rb +165 -0
  88. data/lib/std_msgs/Int32.rb +82 -0
  89. data/lib/std_msgs/Int32MultiArray.rb +165 -0
  90. data/lib/std_msgs/Int64.rb +82 -0
  91. data/lib/std_msgs/Int64MultiArray.rb +165 -0
  92. data/lib/std_msgs/Int8.rb +83 -0
  93. data/lib/std_msgs/Int8MultiArray.rb +165 -0
  94. data/lib/std_msgs/MultiArrayDimension.rb +95 -0
  95. data/lib/std_msgs/MultiArrayLayout.rb +141 -0
  96. data/lib/std_msgs/String.rb +87 -0
  97. data/lib/std_msgs/Time.rb +87 -0
  98. data/lib/std_msgs/UInt16.rb +83 -0
  99. data/lib/std_msgs/UInt16MultiArray.rb +165 -0
  100. data/lib/std_msgs/UInt32.rb +81 -0
  101. data/lib/std_msgs/UInt32MultiArray.rb +165 -0
  102. data/lib/std_msgs/UInt64.rb +82 -0
  103. data/lib/std_msgs/UInt64MultiArray.rb +165 -0
  104. data/lib/std_msgs/UInt8.rb +83 -0
  105. data/lib/std_msgs/UInt8MultiArray.rb +168 -0
  106. data/lib/std_srvs/Empty.rb +166 -0
  107. data/lib/stereo_msgs/DisparityImage.rb +261 -0
  108. data/lib/tf/FrameGraph.rb +179 -0
  109. data/lib/tf/tfMessage.rb +202 -0
  110. data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
  111. data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
  112. data/lib/visualization_msgs/ImageMarker.rb +238 -0
  113. data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
  114. data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
  115. data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
  116. data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
  117. data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
  118. data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
  119. data/lib/visualization_msgs/Marker.rb +318 -0
  120. data/lib/visualization_msgs/MarkerArray.rb +349 -0
  121. data/lib/visualization_msgs/MenuEntry.rb +168 -0
  122. metadata +123 -2
@@ -0,0 +1,140 @@
1
+ # autogenerated by genmsg_ruby from TimeReference.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "ros/time"
6
+
7
+ module Sensor_msgs
8
+
9
+ class TimeReference <::ROS::Message
10
+ def self.md5sum
11
+ "fded64a0265108ba86c3d38fb11c0c16"
12
+ end
13
+
14
+ def self.type
15
+ "sensor_msgs/TimeReference"
16
+ end
17
+
18
+ def has_header?
19
+ true
20
+ end
21
+
22
+ def message_definition
23
+ "# Measurement from an external time source not actively synchronized with the system clock.
24
+
25
+ Header header # stamp is system time for which measurement was valid
26
+ # frame_id is not used
27
+
28
+ time time_ref # corresponding time from this external source
29
+ string source # (optional) name of time source
30
+
31
+ ================================================================================
32
+ MSG: std_msgs/Header
33
+ # Standard metadata for higher-level stamped data types.
34
+ # This is generally used to communicate timestamped data
35
+ # in a particular coordinate frame.
36
+ #
37
+ # sequence ID: consecutively increasing ID
38
+ uint32 seq
39
+ #Two-integer timestamp that is expressed as:
40
+ # * stamp.secs: seconds (stamp_secs) since epoch
41
+ # * stamp.nsecs: nanoseconds since stamp_secs
42
+ # time-handling sugar is provided by the client library
43
+ time stamp
44
+ #Frame this data is associated with
45
+ # 0: no frame
46
+ # 1: global frame
47
+ string frame_id
48
+
49
+ "
50
+ end
51
+ attr_accessor :header, :time_ref, :source
52
+
53
+ @@struct_L3 = ::ROS::Struct.new("L3")
54
+ @@struct_L2 = ::ROS::Struct.new("L2")
55
+
56
+ @@struct_L = ::ROS::Struct.new("L")
57
+ @@slot_types = ['Header','time','string']
58
+
59
+ def initialize
60
+ # Constructor. Any message fields that are implicitly/explicitly
61
+ # set to None will be assigned a default value. The recommend
62
+ # use is keyword arguments as this is more robust to future message
63
+ # changes. You cannot mix in-order arguments and keyword arguments.
64
+ #
65
+ # The available fields are:
66
+ # header,time_ref,source
67
+ #
68
+ # @param args: complete set of field values, in .msg order
69
+ # @param kwds: use keyword arguments corresponding to message field names
70
+ # to set specific fields.
71
+ #
72
+
73
+ # message fields cannot be None, assign default values for those that are
74
+ @header = Std_msgs::Header.new
75
+ @time_ref = ROS::Time.new
76
+ @source = ''
77
+ end
78
+
79
+ def _get_types
80
+ # internal API method
81
+ return @slot_types
82
+ end
83
+
84
+ def serialize(buff)
85
+ # serialize message into buffer
86
+ # @param buff: buffer
87
+ # @type buff: StringIO
88
+ begin
89
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
90
+ _x = @header.frame_id
91
+ length = _x.length
92
+ buff.write([length, _x].pack("La#{length}"))
93
+ buff.write(@@struct_L2.pack(@time_ref.secs, @time_ref.nsecs))
94
+ _x = @source
95
+ length = _x.length
96
+ buff.write([length, _x].pack("La#{length}"))
97
+ rescue => exception
98
+ raise "some erro in serialize: #{exception}"
99
+
100
+ end
101
+ end
102
+
103
+ def deserialize(str)
104
+ # unpack serialized message in str into this message instance
105
+ # @param str: byte array of serialized message
106
+ # @type str: str
107
+
108
+ begin
109
+ if @header == nil
110
+ @header = Std_msgs::Header.new
111
+ end
112
+ if @time_ref == nil
113
+ @time_ref = ROS::Time.new
114
+ end
115
+ end_point = 0
116
+ start = end_point
117
+ end_point += ROS::Struct::calc_size('L3')
118
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
119
+ start = end_point
120
+ end_point += 4
121
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
122
+ start = end_point
123
+ end_point += length
124
+ @header.frame_id = str[start..(end_point-1)]
125
+ start = end_point
126
+ end_point += ROS::Struct::calc_size('L2')
127
+ (@time_ref.secs, @time_ref.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
128
+ start = end_point
129
+ end_point += 4
130
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
131
+ start = end_point
132
+ end_point += length
133
+ @source = str[start..(end_point-1)]
134
+ return self
135
+ rescue => exception
136
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
137
+ end
138
+ end
139
+ end # end of class
140
+ end # end of module
@@ -0,0 +1,83 @@
1
+ # autogenerated by genmsg_ruby from Bool.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Std_msgs
6
+
7
+ class Bool <::ROS::Message
8
+ def self.md5sum
9
+ "8b94c1b53db61fb6aed406028ad6332a"
10
+ end
11
+
12
+ def self.type
13
+ "std_msgs/Bool"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "bool data
22
+ "
23
+ end
24
+ attr_accessor :data
25
+
26
+ @@struct_C = ::ROS::Struct.new("C")
27
+
28
+ @@struct_L = ::ROS::Struct.new("L")
29
+ @@slot_types = ['bool']
30
+
31
+ def initialize
32
+ # Constructor. Any message fields that are implicitly/explicitly
33
+ # set to None will be assigned a default value. The recommend
34
+ # use is keyword arguments as this is more robust to future message
35
+ # changes. You cannot mix in-order arguments and keyword arguments.
36
+ #
37
+ # The available fields are:
38
+ # data
39
+ #
40
+ # @param args: complete set of field values, in .msg order
41
+ # @param kwds: use keyword arguments corresponding to message field names
42
+ # to set specific fields.
43
+ #
44
+
45
+ # message fields cannot be None, assign default values for those that are
46
+ @data = false
47
+ end
48
+
49
+ def _get_types
50
+ # internal API method
51
+ return @slot_types
52
+ end
53
+
54
+ def serialize(buff)
55
+ # serialize message into buffer
56
+ # @param buff: buffer
57
+ # @type buff: StringIO
58
+ begin
59
+ buff.write(@@struct_C.pack(@data))
60
+ rescue => exception
61
+ raise "some erro in serialize: #{exception}"
62
+
63
+ end
64
+ end
65
+
66
+ def deserialize(str)
67
+ # unpack serialized message in str into this message instance
68
+ # @param str: byte array of serialized message
69
+ # @type str: str
70
+
71
+ begin
72
+ end_point = 0
73
+ start = end_point
74
+ end_point += ROS::Struct::calc_size('C')
75
+ (@data,) = @@struct_C.unpack(str[start..(end_point-1)])
76
+ @data = bool(@data)
77
+ return self
78
+ rescue => exception
79
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
80
+ end
81
+ end
82
+ end # end of class
83
+ end # end of module
@@ -0,0 +1,83 @@
1
+ # autogenerated by genmsg_ruby from Byte.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Std_msgs
6
+
7
+ class Byte <::ROS::Message
8
+ def self.md5sum
9
+ "ad736a2e8818154c487bb80fe42ce43b"
10
+ end
11
+
12
+ def self.type
13
+ "std_msgs/Byte"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "byte data
22
+
23
+ "
24
+ end
25
+ attr_accessor :data
26
+
27
+ @@struct_c = ::ROS::Struct.new("c")
28
+
29
+ @@struct_L = ::ROS::Struct.new("L")
30
+ @@slot_types = ['byte']
31
+
32
+ def initialize
33
+ # Constructor. Any message fields that are implicitly/explicitly
34
+ # set to None will be assigned a default value. The recommend
35
+ # use is keyword arguments as this is more robust to future message
36
+ # changes. You cannot mix in-order arguments and keyword arguments.
37
+ #
38
+ # The available fields are:
39
+ # data
40
+ #
41
+ # @param args: complete set of field values, in .msg order
42
+ # @param kwds: use keyword arguments corresponding to message field names
43
+ # to set specific fields.
44
+ #
45
+
46
+ # message fields cannot be None, assign default values for those that are
47
+ @data = 0
48
+ end
49
+
50
+ def _get_types
51
+ # internal API method
52
+ return @slot_types
53
+ end
54
+
55
+ def serialize(buff)
56
+ # serialize message into buffer
57
+ # @param buff: buffer
58
+ # @type buff: StringIO
59
+ begin
60
+ buff.write(@@struct_c.pack(@data))
61
+ rescue => exception
62
+ raise "some erro in serialize: #{exception}"
63
+
64
+ end
65
+ end
66
+
67
+ def deserialize(str)
68
+ # unpack serialized message in str into this message instance
69
+ # @param str: byte array of serialized message
70
+ # @type str: str
71
+
72
+ begin
73
+ end_point = 0
74
+ start = end_point
75
+ end_point += ROS::Struct::calc_size('c')
76
+ (@data,) = @@struct_c.unpack(str[start..(end_point-1)])
77
+ return self
78
+ rescue => exception
79
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
80
+ end
81
+ end
82
+ end # end of class
83
+ end # end of module
@@ -0,0 +1,165 @@
1
+ # autogenerated by genmsg_ruby from ByteMultiArray.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/MultiArrayDimension"
5
+ require "std_msgs/MultiArrayLayout"
6
+
7
+ module Std_msgs
8
+
9
+ class ByteMultiArray <::ROS::Message
10
+ def self.md5sum
11
+ "70ea476cbcfd65ac2f68f3cda1e891fe"
12
+ end
13
+
14
+ def self.type
15
+ "std_msgs/ByteMultiArray"
16
+ end
17
+
18
+ def has_header?
19
+ false
20
+ end
21
+
22
+ def message_definition
23
+ "# Please look at the MultiArrayLayout message definition for
24
+ # documentation on all multiarrays.
25
+
26
+ MultiArrayLayout layout # specification of data layout
27
+ byte[] data # array of data
28
+
29
+
30
+ ================================================================================
31
+ MSG: std_msgs/MultiArrayLayout
32
+ # The multiarray declares a generic multi-dimensional array of a
33
+ # particular data type. Dimensions are ordered from outer most
34
+ # to inner most.
35
+
36
+ MultiArrayDimension[] dim # Array of dimension properties
37
+ uint32 data_offset # padding bytes at front of data
38
+
39
+ # Accessors should ALWAYS be written in terms of dimension stride
40
+ # and specified outer-most dimension first.
41
+ #
42
+ # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]
43
+ #
44
+ # A standard, 3-channel 640x480 image with interleaved color channels
45
+ # would be specified as:
46
+ #
47
+ # dim[0].label = \"height\"
48
+ # dim[0].size = 480
49
+ # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)
50
+ # dim[1].label = \"width\"
51
+ # dim[1].size = 640
52
+ # dim[1].stride = 3*640 = 1920
53
+ # dim[2].label = \"channel\"
54
+ # dim[2].size = 3
55
+ # dim[2].stride = 3
56
+ #
57
+ # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.
58
+ ================================================================================
59
+ MSG: std_msgs/MultiArrayDimension
60
+ string label # label of given dimension
61
+ uint32 size # size of given dimension (in type units)
62
+ uint32 stride # stride of given dimension
63
+ "
64
+ end
65
+ attr_accessor :layout, :data
66
+
67
+ @@struct_L2 = ::ROS::Struct.new("L2")
68
+
69
+ @@struct_L = ::ROS::Struct.new("L")
70
+ @@slot_types = ['std_msgs/MultiArrayLayout','byte[]']
71
+
72
+ def initialize
73
+ # Constructor. Any message fields that are implicitly/explicitly
74
+ # set to None will be assigned a default value. The recommend
75
+ # use is keyword arguments as this is more robust to future message
76
+ # changes. You cannot mix in-order arguments and keyword arguments.
77
+ #
78
+ # The available fields are:
79
+ # layout,data
80
+ #
81
+ # @param args: complete set of field values, in .msg order
82
+ # @param kwds: use keyword arguments corresponding to message field names
83
+ # to set specific fields.
84
+ #
85
+
86
+ # message fields cannot be None, assign default values for those that are
87
+ @layout = Std_msgs::MultiArrayLayout.new
88
+ @data = []
89
+ end
90
+
91
+ def _get_types
92
+ # internal API method
93
+ return @slot_types
94
+ end
95
+
96
+ def serialize(buff)
97
+ # serialize message into buffer
98
+ # @param buff: buffer
99
+ # @type buff: StringIO
100
+ begin
101
+ length = @layout.dim.length
102
+ buff.write(@@struct_L.pack(length))
103
+ for val1 in @layout.dim
104
+ _x = val1.label
105
+ length = _x.length
106
+ buff.write([length, _x].pack("La#{length}"))
107
+ _x = val1
108
+ buff.write(@@struct_L2.pack(_x.size, _x.stride))
109
+ end
110
+ buff.write(@@struct_L.pack(@layout.data_offset))
111
+ length = @data.length
112
+ buff.write(@@struct_L.pack(length))
113
+ pattern = "c#{length}"
114
+ buff.write(*@data.pack(pattern))
115
+ rescue => exception
116
+ raise "some erro in serialize: #{exception}"
117
+
118
+ end
119
+ end
120
+
121
+ def deserialize(str)
122
+ # unpack serialized message in str into this message instance
123
+ # @param str: byte array of serialized message
124
+ # @type str: str
125
+
126
+ begin
127
+ if @layout == nil
128
+ @layout = Std_msgs::MultiArrayLayout.new
129
+ end
130
+ end_point = 0
131
+ start = end_point
132
+ end_point += 4
133
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
134
+ @layout.dim = []
135
+ length.times do
136
+ val1 = Std_msgs::MultiArrayDimension.new
137
+ start = end_point
138
+ end_point += 4
139
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
140
+ start = end_point
141
+ end_point += length
142
+ val1.label = str[start..(end_point-1)]
143
+ _x = val1
144
+ start = end_point
145
+ end_point += ROS::Struct::calc_size('L2')
146
+ (_x.size, _x.stride,) = @@struct_L2.unpack(str[start..(end_point-1)])
147
+ @layout.dim.push(val1)
148
+ end
149
+ start = end_point
150
+ end_point += ROS::Struct::calc_size('L')
151
+ (@layout.data_offset,) = @@struct_L.unpack(str[start..(end_point-1)])
152
+ start = end_point
153
+ end_point += 4
154
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
155
+ pattern = "c#{length}"
156
+ start = end_point
157
+ end_point += ROS::Struct::calc_size("#{pattern}")
158
+ @data = str[start..(end_point-1)].unpack(pattern)
159
+ return self
160
+ rescue => exception
161
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
162
+ end
163
+ end
164
+ end # end of class
165
+ end # end of module
@@ -0,0 +1,82 @@
1
+ # autogenerated by genmsg_ruby from Char.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Std_msgs
6
+
7
+ class Char <::ROS::Message
8
+ def self.md5sum
9
+ "1bf77f25acecdedba0e224b162199717"
10
+ end
11
+
12
+ def self.type
13
+ "std_msgs/Char"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "char data
22
+ "
23
+ end
24
+ attr_accessor :data
25
+
26
+ @@struct_C = ::ROS::Struct.new("C")
27
+
28
+ @@struct_L = ::ROS::Struct.new("L")
29
+ @@slot_types = ['char']
30
+
31
+ def initialize
32
+ # Constructor. Any message fields that are implicitly/explicitly
33
+ # set to None will be assigned a default value. The recommend
34
+ # use is keyword arguments as this is more robust to future message
35
+ # changes. You cannot mix in-order arguments and keyword arguments.
36
+ #
37
+ # The available fields are:
38
+ # data
39
+ #
40
+ # @param args: complete set of field values, in .msg order
41
+ # @param kwds: use keyword arguments corresponding to message field names
42
+ # to set specific fields.
43
+ #
44
+
45
+ # message fields cannot be None, assign default values for those that are
46
+ @data = 0
47
+ end
48
+
49
+ def _get_types
50
+ # internal API method
51
+ return @slot_types
52
+ end
53
+
54
+ def serialize(buff)
55
+ # serialize message into buffer
56
+ # @param buff: buffer
57
+ # @type buff: StringIO
58
+ begin
59
+ buff.write(@@struct_C.pack(@data))
60
+ rescue => exception
61
+ raise "some erro in serialize: #{exception}"
62
+
63
+ end
64
+ end
65
+
66
+ def deserialize(str)
67
+ # unpack serialized message in str into this message instance
68
+ # @param str: byte array of serialized message
69
+ # @type str: str
70
+
71
+ begin
72
+ end_point = 0
73
+ start = end_point
74
+ end_point += ROS::Struct::calc_size('C')
75
+ (@data,) = @@struct_C.unpack(str[start..(end_point-1)])
76
+ return self
77
+ rescue => exception
78
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
79
+ end
80
+ end
81
+ end # end of class
82
+ end # end of module
@@ -0,0 +1,89 @@
1
+ # autogenerated by genmsg_ruby from ColorRGBA.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Std_msgs
6
+
7
+ class ColorRGBA <::ROS::Message
8
+ def self.md5sum
9
+ "a29a96539573343b1310c73607334b00"
10
+ end
11
+
12
+ def self.type
13
+ "std_msgs/ColorRGBA"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "float32 r
22
+ float32 g
23
+ float32 b
24
+ float32 a
25
+
26
+ "
27
+ end
28
+ attr_accessor :r, :g, :b, :a
29
+
30
+ @@struct_f4 = ::ROS::Struct.new("f4")
31
+
32
+ @@struct_L = ::ROS::Struct.new("L")
33
+ @@slot_types = ['float32','float32','float32','float32']
34
+
35
+ def initialize
36
+ # Constructor. Any message fields that are implicitly/explicitly
37
+ # set to None will be assigned a default value. The recommend
38
+ # use is keyword arguments as this is more robust to future message
39
+ # changes. You cannot mix in-order arguments and keyword arguments.
40
+ #
41
+ # The available fields are:
42
+ # r,g,b,a
43
+ #
44
+ # @param args: complete set of field values, in .msg order
45
+ # @param kwds: use keyword arguments corresponding to message field names
46
+ # to set specific fields.
47
+ #
48
+
49
+ # message fields cannot be None, assign default values for those that are
50
+ @r = 0.0
51
+ @g = 0.0
52
+ @b = 0.0
53
+ @a = 0.0
54
+ end
55
+
56
+ def _get_types
57
+ # internal API method
58
+ return @slot_types
59
+ end
60
+
61
+ def serialize(buff)
62
+ # serialize message into buffer
63
+ # @param buff: buffer
64
+ # @type buff: StringIO
65
+ begin
66
+ buff.write(@@struct_f4.pack(@r, @g, @b, @a))
67
+ rescue => exception
68
+ raise "some erro in serialize: #{exception}"
69
+
70
+ end
71
+ end
72
+
73
+ def deserialize(str)
74
+ # unpack serialized message in str into this message instance
75
+ # @param str: byte array of serialized message
76
+ # @type str: str
77
+
78
+ begin
79
+ end_point = 0
80
+ start = end_point
81
+ end_point += ROS::Struct::calc_size('f4')
82
+ (@r, @g, @b, @a,) = @@struct_f4.unpack(str[start..(end_point-1)])
83
+ return self
84
+ rescue => exception
85
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
86
+ end
87
+ end
88
+ end # end of class
89
+ end # end of module