rosruby_msgs 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. data/{lib/actionlib_msgs → actionlib_msgs}/GoalID.rb +23 -24
  2. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatus.rb +29 -25
  3. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatusArray.rb +31 -32
  4. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingAction.rb +29 -25
  5. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionFeedback.rb +29 -25
  6. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionGoal.rb +29 -25
  7. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionResult.rb +29 -25
  8. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingFeedback.rb +35 -26
  9. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingGoal.rb +17 -23
  10. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingResult.rb +23 -24
  11. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciAction.rb +29 -25
  12. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionFeedback.rb +29 -25
  13. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionGoal.rb +29 -25
  14. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionResult.rb +29 -25
  15. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciFeedback.rb +17 -23
  16. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciGoal.rb +17 -23
  17. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciResult.rb +17 -23
  18. data/{lib/geometry_msgs → geometry_msgs}/Point.rb +29 -25
  19. data/{lib/geometry_msgs → geometry_msgs}/Point32.rb +29 -25
  20. data/{lib/geometry_msgs → geometry_msgs}/PointStamped.rb +23 -24
  21. data/{lib/geometry_msgs → geometry_msgs}/Polygon.rb +17 -23
  22. data/{lib/geometry_msgs → geometry_msgs}/PolygonStamped.rb +23 -24
  23. data/{lib/geometry_msgs → geometry_msgs}/Pose.rb +23 -24
  24. data/{lib/geometry_msgs → geometry_msgs}/Pose2D.rb +29 -25
  25. data/{lib/geometry_msgs → geometry_msgs}/PoseArray.rb +31 -32
  26. data/{lib/geometry_msgs → geometry_msgs}/PoseStamped.rb +23 -24
  27. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovariance.rb +23 -24
  28. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovarianceStamped.rb +23 -24
  29. data/{lib/geometry_msgs → geometry_msgs}/Quaternion.rb +35 -26
  30. data/{lib/geometry_msgs → geometry_msgs}/QuaternionStamped.rb +23 -24
  31. data/{lib/geometry_msgs → geometry_msgs}/Transform.rb +23 -24
  32. data/{lib/geometry_msgs → geometry_msgs}/TransformStamped.rb +29 -25
  33. data/{lib/geometry_msgs → geometry_msgs}/Twist.rb +23 -24
  34. data/{lib/geometry_msgs → geometry_msgs}/TwistStamped.rb +23 -24
  35. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovariance.rb +23 -24
  36. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovarianceStamped.rb +23 -24
  37. data/{lib/geometry_msgs → geometry_msgs}/Vector3.rb +29 -25
  38. data/{lib/geometry_msgs → geometry_msgs}/Vector3Stamped.rb +23 -24
  39. data/{lib/geometry_msgs → geometry_msgs}/Wrench.rb +23 -24
  40. data/{lib/geometry_msgs → geometry_msgs}/WrenchStamped.rb +23 -24
  41. data/{lib/nav_msgs → nav_msgs}/GetMap.rb +29 -45
  42. data/{lib/nav_msgs → nav_msgs}/GetPlan.rb +66 -68
  43. data/{lib/nav_msgs → nav_msgs}/GridCells.rb +35 -26
  44. data/{lib/nav_msgs → nav_msgs}/MapMetaData.rb +41 -27
  45. data/{lib/nav_msgs → nav_msgs}/OccupancyGrid.rb +29 -25
  46. data/{lib/nav_msgs → nav_msgs}/Odometry.rb +35 -26
  47. data/{lib/nav_msgs → nav_msgs}/Path.rb +43 -44
  48. data/pr2_controllers_msgs/JointTrajectoryAction.rb +409 -0
  49. data/pr2_controllers_msgs/JointTrajectoryActionFeedback.rb +206 -0
  50. data/pr2_controllers_msgs/JointTrajectoryActionGoal.rb +265 -0
  51. data/pr2_controllers_msgs/JointTrajectoryActionResult.rb +205 -0
  52. data/pr2_controllers_msgs/JointTrajectoryControllerState.rb +284 -0
  53. data/pr2_controllers_msgs/JointTrajectoryFeedback.rb +67 -0
  54. data/pr2_controllers_msgs/JointTrajectoryGoal.rb +196 -0
  55. data/pr2_controllers_msgs/JointTrajectoryResult.rb +66 -0
  56. data/pr2_controllers_msgs/PointHeadActionFeedback.rb +211 -0
  57. data/pr2_controllers_msgs/PointHeadActionGoal.rb +225 -0
  58. data/pr2_controllers_msgs/PointHeadActionResult.rb +205 -0
  59. data/pr2_controllers_msgs/PointHeadGoal.rb +186 -0
  60. data/pr2_controllers_msgs/Pr2GripperCommandAction.rb +334 -0
  61. data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
  62. data/pr2_controllers_msgs/Pr2GripperCommandActionResult.rb +216 -0
  63. data/pr2_controllers_msgs/Pr2GripperCommandFeedback.rb +102 -0
  64. data/pr2_controllers_msgs/Pr2GripperCommandGoal.rb +87 -0
  65. data/pr2_controllers_msgs/Pr2GripperCommandResult.rb +101 -0
  66. data/pr2_controllers_msgs/SingleJointPositionAction.rb +335 -0
  67. data/pr2_controllers_msgs/SingleJointPositionActionFeedback.rb +228 -0
  68. data/pr2_controllers_msgs/SingleJointPositionActionGoal.rb +173 -0
  69. data/pr2_controllers_msgs/SingleJointPositionActionResult.rb +205 -0
  70. data/pr2_controllers_msgs/SingleJointPositionGoal.rb +96 -0
  71. data/pr2_controllers_msgs/SingleJointPositionResult.rb +66 -0
  72. data/{lib/roscpp → roscpp}/Empty.rb +24 -44
  73. data/{lib/roscpp → roscpp}/GetLoggers.rb +29 -45
  74. data/{lib/roscpp → roscpp}/Logger.rb +23 -24
  75. data/{lib/roscpp → roscpp}/SetLoggerLevel.rb +35 -46
  76. data/{lib/roscpp_tutorials → roscpp_tutorials}/TwoInts.rb +40 -47
  77. data/{lib/rosgraph_msgs → rosgraph_msgs}/Clock.rb +17 -23
  78. data/{lib/rosgraph_msgs → rosgraph_msgs}/Log.rb +59 -30
  79. data/{lib/sensor_msgs → sensor_msgs}/CameraInfo.rb +77 -33
  80. data/{lib/sensor_msgs → sensor_msgs}/ChannelFloat32.rb +23 -24
  81. data/{lib/sensor_msgs → sensor_msgs}/CompressedImage.rb +30 -31
  82. data/{lib/sensor_msgs → sensor_msgs}/Image.rb +54 -35
  83. data/{lib/sensor_msgs → sensor_msgs}/Imu.rb +53 -29
  84. data/{lib/sensor_msgs → sensor_msgs}/JointState.rb +41 -27
  85. data/{lib/sensor_msgs → sensor_msgs}/Joy.rb +29 -25
  86. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedback.rb +29 -25
  87. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedbackArray.rb +17 -23
  88. data/{lib/sensor_msgs → sensor_msgs}/LaserScan.rb +71 -32
  89. data/{lib/sensor_msgs → sensor_msgs}/NavSatFix.rb +53 -29
  90. data/{lib/sensor_msgs → sensor_msgs}/NavSatStatus.rb +23 -24
  91. data/{lib/sensor_msgs → sensor_msgs}/PointCloud.rb +29 -25
  92. data/{lib/sensor_msgs → sensor_msgs}/PointCloud2.rb +66 -37
  93. data/{lib/sensor_msgs → sensor_msgs}/PointField.rb +35 -26
  94. data/{lib/sensor_msgs → sensor_msgs}/Range.rb +47 -28
  95. data/{lib/sensor_msgs → sensor_msgs}/RegionOfInterest.rb +41 -27
  96. data/{lib/sensor_msgs → sensor_msgs}/SetCameraInfo.rb +40 -47
  97. data/{lib/sensor_msgs → sensor_msgs}/TimeReference.rb +29 -25
  98. data/{lib/std_msgs → std_msgs}/Bool.rb +17 -23
  99. data/{lib/std_msgs → std_msgs}/Byte.rb +17 -23
  100. data/{lib/std_msgs → std_msgs}/ByteMultiArray.rb +23 -24
  101. data/{lib/std_msgs → std_msgs}/Char.rb +17 -23
  102. data/{lib/std_msgs → std_msgs}/ColorRGBA.rb +35 -26
  103. data/{lib/std_msgs → std_msgs}/Duration.rb +17 -23
  104. data/std_msgs/Empty.rb +65 -0
  105. data/{lib/std_msgs → std_msgs}/Float32.rb +17 -23
  106. data/{lib/std_msgs → std_msgs}/Float32MultiArray.rb +23 -24
  107. data/{lib/std_msgs → std_msgs}/Float64.rb +17 -23
  108. data/{lib/std_msgs → std_msgs}/Float64MultiArray.rb +23 -24
  109. data/{lib/std_msgs → std_msgs}/Header.rb +29 -25
  110. data/{lib/std_msgs → std_msgs}/Int16.rb +17 -23
  111. data/{lib/std_msgs → std_msgs}/Int16MultiArray.rb +23 -24
  112. data/{lib/std_msgs → std_msgs}/Int32.rb +17 -23
  113. data/{lib/std_msgs → std_msgs}/Int32MultiArray.rb +23 -24
  114. data/{lib/std_msgs → std_msgs}/Int64.rb +17 -23
  115. data/{lib/std_msgs → std_msgs}/Int64MultiArray.rb +23 -24
  116. data/{lib/std_msgs → std_msgs}/Int8.rb +17 -23
  117. data/{lib/std_msgs → std_msgs}/Int8MultiArray.rb +23 -24
  118. data/{lib/std_msgs → std_msgs}/MultiArrayDimension.rb +29 -25
  119. data/{lib/std_msgs → std_msgs}/MultiArrayLayout.rb +23 -24
  120. data/{lib/std_msgs → std_msgs}/String.rb +17 -23
  121. data/{lib/std_msgs → std_msgs}/Time.rb +17 -23
  122. data/{lib/std_msgs → std_msgs}/UInt16.rb +17 -23
  123. data/{lib/std_msgs → std_msgs}/UInt16MultiArray.rb +23 -24
  124. data/{lib/std_msgs → std_msgs}/UInt32.rb +17 -23
  125. data/{lib/std_msgs → std_msgs}/UInt32MultiArray.rb +23 -24
  126. data/{lib/std_msgs → std_msgs}/UInt64.rb +17 -23
  127. data/{lib/std_msgs → std_msgs}/UInt64MultiArray.rb +23 -24
  128. data/{lib/std_msgs → std_msgs}/UInt8.rb +17 -23
  129. data/{lib/std_msgs → std_msgs}/UInt8MultiArray.rb +24 -30
  130. data/{lib/std_srvs → std_srvs}/Empty.rb +24 -44
  131. data/{lib/stereo_msgs → stereo_msgs}/DisparityImage.rb +60 -36
  132. data/{lib/tf → tf}/FrameGraph.rb +29 -45
  133. data/{lib/tf → tf}/tfMessage.rb +37 -43
  134. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectory.rb +33 -29
  135. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectoryPoint.rb +35 -26
  136. data/{lib/visualization_msgs → visualization_msgs}/ImageMarker.rb +89 -35
  137. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarker.rb +89 -65
  138. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerControl.rb +91 -62
  139. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerFeedback.rb +65 -31
  140. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerInit.rb +85 -81
  141. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerPose.rb +29 -25
  142. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerUpdate.rb +123 -104
  143. data/{lib/visualization_msgs → visualization_msgs}/Marker.rb +101 -37
  144. data/{lib/visualization_msgs → visualization_msgs}/MarkerArray.rb +49 -55
  145. data/{lib/visualization_msgs → visualization_msgs}/MenuEntry.rb +41 -27
  146. metadata +149 -129
  147. data/lib/std_msgs/Empty.rb +0 -75
@@ -51,35 +51,40 @@ string frame_id
51
51
  @@struct_L = ::ROS::Struct.new("L")
52
52
  @@slot_types = ['Header','float32[]','int32[]']
53
53
 
54
- def initialize
55
- # Constructor. Any message fields that are implicitly/explicitly
56
- # set to None will be assigned a default value. The recommend
57
- # use is keyword arguments as this is more robust to future message
58
- # changes. You cannot mix in-order arguments and keyword arguments.
59
- #
60
- # The available fields are:
61
- # header,axes,buttons
62
- #
63
- # @param args: complete set of field values, in .msg order
64
- # @param kwds: use keyword arguments corresponding to message field names
65
- # to set specific fields.
66
- #
67
-
54
+ # Constructor. You can set the default values using keyword operators.
55
+ #
56
+ # @param [Hash] args keyword for initializing values
57
+ # @option args [Header] :header initialize value
58
+ # @option args [float32[]] :axes initialize value
59
+ # @option args [int32[]] :buttons initialize value
60
+ def initialize(args={})
68
61
  # message fields cannot be None, assign default values for those that are
69
- @header = Std_msgs::Header.new
70
- @axes = []
71
- @buttons = []
62
+ if args[:header]
63
+ @header = args[:header]
64
+ else
65
+ @header = Std_msgs::Header.new
66
+ end
67
+ if args[:axes]
68
+ @axes = args[:axes]
69
+ else
70
+ @axes = []
71
+ end
72
+ if args[:buttons]
73
+ @buttons = args[:buttons]
74
+ else
75
+ @buttons = []
76
+ end
72
77
  end
73
78
 
79
+ # internal API method
80
+ # @return [String] Message type string.
74
81
  def _get_types
75
- # internal API method
76
- return @slot_types
82
+ @slot_types
77
83
  end
78
84
 
85
+ # serialize message into buffer
86
+ # @param [IO] buff buffer
79
87
  def serialize(buff)
80
- # serialize message into buffer
81
- # @param buff: buffer
82
- # @type buff: StringIO
83
88
  begin
84
89
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
85
90
  _x = @header.frame_id
@@ -99,10 +104,9 @@ string frame_id
99
104
  end
100
105
  end
101
106
 
107
+ # unpack serialized message in str into this message instance
108
+ # @param [String] str: byte array of serialized message
102
109
  def deserialize(str)
103
- # unpack serialized message in str into this message instance
104
- # @param str: byte array of serialized message
105
- # @type str: str
106
110
 
107
111
  begin
108
112
  if @header == nil
@@ -48,35 +48,40 @@ float32 intensity
48
48
  @@struct_L = ::ROS::Struct.new("L")
49
49
  @@slot_types = ['uint8','uint8','float32']
50
50
 
51
- def initialize
52
- # Constructor. Any message fields that are implicitly/explicitly
53
- # set to None will be assigned a default value. The recommend
54
- # use is keyword arguments as this is more robust to future message
55
- # changes. You cannot mix in-order arguments and keyword arguments.
56
- #
57
- # The available fields are:
58
- # type,id,intensity
59
- #
60
- # @param args: complete set of field values, in .msg order
61
- # @param kwds: use keyword arguments corresponding to message field names
62
- # to set specific fields.
63
- #
64
-
51
+ # Constructor. You can set the default values using keyword operators.
52
+ #
53
+ # @param [Hash] args keyword for initializing values
54
+ # @option args [uint8] :type initialize value
55
+ # @option args [uint8] :id initialize value
56
+ # @option args [float32] :intensity initialize value
57
+ def initialize(args={})
65
58
  # message fields cannot be None, assign default values for those that are
66
- @type = 0
67
- @id = 0
68
- @intensity = 0.0
59
+ if args[:type]
60
+ @type = args[:type]
61
+ else
62
+ @type = 0
63
+ end
64
+ if args[:id]
65
+ @id = args[:id]
66
+ else
67
+ @id = 0
68
+ end
69
+ if args[:intensity]
70
+ @intensity = args[:intensity]
71
+ else
72
+ @intensity = 0.0
73
+ end
69
74
  end
70
75
 
76
+ # internal API method
77
+ # @return [String] Message type string.
71
78
  def _get_types
72
- # internal API method
73
- return @slot_types
79
+ @slot_types
74
80
  end
75
81
 
82
+ # serialize message into buffer
83
+ # @param [IO] buff buffer
76
84
  def serialize(buff)
77
- # serialize message into buffer
78
- # @param buff: buffer
79
- # @type buff: StringIO
80
85
  begin
81
86
  buff.write(@@struct_C2f.pack(@type, @id, @intensity))
82
87
  rescue => exception
@@ -85,10 +90,9 @@ float32 intensity
85
90
  end
86
91
  end
87
92
 
93
+ # unpack serialized message in str into this message instance
94
+ # @param [String] str: byte array of serialized message
88
95
  def deserialize(str)
89
- # unpack serialized message in str into this message instance
90
- # @param str: byte array of serialized message
91
- # @type str: str
92
96
 
93
97
  begin
94
98
  end_point = 0
@@ -48,33 +48,28 @@ float32 intensity
48
48
  @@struct_L = ::ROS::Struct.new("L")
49
49
  @@slot_types = ['sensor_msgs/JoyFeedback[]']
50
50
 
51
- def initialize
52
- # Constructor. Any message fields that are implicitly/explicitly
53
- # set to None will be assigned a default value. The recommend
54
- # use is keyword arguments as this is more robust to future message
55
- # changes. You cannot mix in-order arguments and keyword arguments.
56
- #
57
- # The available fields are:
58
- # array
59
- #
60
- # @param args: complete set of field values, in .msg order
61
- # @param kwds: use keyword arguments corresponding to message field names
62
- # to set specific fields.
63
- #
64
-
51
+ # Constructor. You can set the default values using keyword operators.
52
+ #
53
+ # @param [Hash] args keyword for initializing values
54
+ # @option args [sensor_msgs/JoyFeedback[]] :array initialize value
55
+ def initialize(args={})
65
56
  # message fields cannot be None, assign default values for those that are
66
- @array = []
57
+ if args[:array]
58
+ @array = args[:array]
59
+ else
60
+ @array = []
61
+ end
67
62
  end
68
63
 
64
+ # internal API method
65
+ # @return [String] Message type string.
69
66
  def _get_types
70
- # internal API method
71
- return @slot_types
67
+ @slot_types
72
68
  end
73
69
 
70
+ # serialize message into buffer
71
+ # @param [IO] buff buffer
74
72
  def serialize(buff)
75
- # serialize message into buffer
76
- # @param buff: buffer
77
- # @type buff: StringIO
78
73
  begin
79
74
  length = @array.length
80
75
  buff.write(@@struct_L.pack(length))
@@ -88,10 +83,9 @@ float32 intensity
88
83
  end
89
84
  end
90
85
 
86
+ # unpack serialized message in str into this message instance
87
+ # @param [String] str: byte array of serialized message
91
88
  def deserialize(str)
92
- # unpack serialized message in str into this message instance
93
- # @param str: byte array of serialized message
94
- # @type str: str
95
89
 
96
90
  begin
97
91
  end_point = 0
@@ -77,42 +77,82 @@ string frame_id
77
77
  @@struct_L = ::ROS::Struct.new("L")
78
78
  @@slot_types = ['Header','float32','float32','float32','float32','float32','float32','float32','float32[]','float32[]']
79
79
 
80
- def initialize
81
- # Constructor. Any message fields that are implicitly/explicitly
82
- # set to None will be assigned a default value. The recommend
83
- # use is keyword arguments as this is more robust to future message
84
- # changes. You cannot mix in-order arguments and keyword arguments.
85
- #
86
- # The available fields are:
87
- # header,angle_min,angle_max,angle_increment,time_increment,scan_time,range_min,range_max,ranges,intensities
88
- #
89
- # @param args: complete set of field values, in .msg order
90
- # @param kwds: use keyword arguments corresponding to message field names
91
- # to set specific fields.
92
- #
93
-
80
+ # Constructor. You can set the default values using keyword operators.
81
+ #
82
+ # @param [Hash] args keyword for initializing values
83
+ # @option args [Header] :header initialize value
84
+ # @option args [float32] :angle_min initialize value
85
+ # @option args [float32] :angle_max initialize value
86
+ # @option args [float32] :angle_increment initialize value
87
+ # @option args [float32] :time_increment initialize value
88
+ # @option args [float32] :scan_time initialize value
89
+ # @option args [float32] :range_min initialize value
90
+ # @option args [float32] :range_max initialize value
91
+ # @option args [float32[]] :ranges initialize value
92
+ # @option args [float32[]] :intensities initialize value
93
+ def initialize(args={})
94
94
  # message fields cannot be None, assign default values for those that are
95
- @header = Std_msgs::Header.new
96
- @angle_min = 0.0
97
- @angle_max = 0.0
98
- @angle_increment = 0.0
99
- @time_increment = 0.0
100
- @scan_time = 0.0
101
- @range_min = 0.0
102
- @range_max = 0.0
103
- @ranges = []
104
- @intensities = []
95
+ if args[:header]
96
+ @header = args[:header]
97
+ else
98
+ @header = Std_msgs::Header.new
99
+ end
100
+ if args[:angle_min]
101
+ @angle_min = args[:angle_min]
102
+ else
103
+ @angle_min = 0.0
104
+ end
105
+ if args[:angle_max]
106
+ @angle_max = args[:angle_max]
107
+ else
108
+ @angle_max = 0.0
109
+ end
110
+ if args[:angle_increment]
111
+ @angle_increment = args[:angle_increment]
112
+ else
113
+ @angle_increment = 0.0
114
+ end
115
+ if args[:time_increment]
116
+ @time_increment = args[:time_increment]
117
+ else
118
+ @time_increment = 0.0
119
+ end
120
+ if args[:scan_time]
121
+ @scan_time = args[:scan_time]
122
+ else
123
+ @scan_time = 0.0
124
+ end
125
+ if args[:range_min]
126
+ @range_min = args[:range_min]
127
+ else
128
+ @range_min = 0.0
129
+ end
130
+ if args[:range_max]
131
+ @range_max = args[:range_max]
132
+ else
133
+ @range_max = 0.0
134
+ end
135
+ if args[:ranges]
136
+ @ranges = args[:ranges]
137
+ else
138
+ @ranges = []
139
+ end
140
+ if args[:intensities]
141
+ @intensities = args[:intensities]
142
+ else
143
+ @intensities = []
144
+ end
105
145
  end
106
146
 
147
+ # internal API method
148
+ # @return [String] Message type string.
107
149
  def _get_types
108
- # internal API method
109
- return @slot_types
150
+ @slot_types
110
151
  end
111
152
 
153
+ # serialize message into buffer
154
+ # @param [IO] buff buffer
112
155
  def serialize(buff)
113
- # serialize message into buffer
114
- # @param buff: buffer
115
- # @type buff: StringIO
116
156
  begin
117
157
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
118
158
  _x = @header.frame_id
@@ -133,10 +173,9 @@ string frame_id
133
173
  end
134
174
  end
135
175
 
176
+ # unpack serialized message in str into this message instance
177
+ # @param [String] str: byte array of serialized message
136
178
  def deserialize(str)
137
- # unpack serialized message in str into this message instance
138
- # @param str: byte array of serialized message
139
- # @type str: str
140
179
 
141
180
  begin
142
181
  if @header == nil
@@ -128,39 +128,64 @@ uint16 service
128
128
  @@struct_L = ::ROS::Struct.new("L")
129
129
  @@slot_types = ['Header','sensor_msgs/NavSatStatus','float64','float64','float64','float64[9]','uint8']
130
130
 
131
- def initialize
132
- # Constructor. Any message fields that are implicitly/explicitly
133
- # set to None will be assigned a default value. The recommend
134
- # use is keyword arguments as this is more robust to future message
135
- # changes. You cannot mix in-order arguments and keyword arguments.
136
- #
137
- # The available fields are:
138
- # header,status,latitude,longitude,altitude,position_covariance,position_covariance_type
139
- #
140
- # @param args: complete set of field values, in .msg order
141
- # @param kwds: use keyword arguments corresponding to message field names
142
- # to set specific fields.
143
- #
144
-
131
+ # Constructor. You can set the default values using keyword operators.
132
+ #
133
+ # @param [Hash] args keyword for initializing values
134
+ # @option args [Header] :header initialize value
135
+ # @option args [sensor_msgs/NavSatStatus] :status initialize value
136
+ # @option args [float64] :latitude initialize value
137
+ # @option args [float64] :longitude initialize value
138
+ # @option args [float64] :altitude initialize value
139
+ # @option args [float64[9]] :position_covariance initialize value
140
+ # @option args [uint8] :position_covariance_type initialize value
141
+ def initialize(args={})
145
142
  # message fields cannot be None, assign default values for those that are
146
- @header = Std_msgs::Header.new
147
- @status = Sensor_msgs::NavSatStatus.new
148
- @latitude = 0.0
149
- @longitude = 0.0
150
- @altitude = 0.0
151
- @position_covariance = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
152
- @position_covariance_type = 0
143
+ if args[:header]
144
+ @header = args[:header]
145
+ else
146
+ @header = Std_msgs::Header.new
147
+ end
148
+ if args[:status]
149
+ @status = args[:status]
150
+ else
151
+ @status = Sensor_msgs::NavSatStatus.new
152
+ end
153
+ if args[:latitude]
154
+ @latitude = args[:latitude]
155
+ else
156
+ @latitude = 0.0
157
+ end
158
+ if args[:longitude]
159
+ @longitude = args[:longitude]
160
+ else
161
+ @longitude = 0.0
162
+ end
163
+ if args[:altitude]
164
+ @altitude = args[:altitude]
165
+ else
166
+ @altitude = 0.0
167
+ end
168
+ if args[:position_covariance]
169
+ @position_covariance = args[:position_covariance]
170
+ else
171
+ @position_covariance = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
172
+ end
173
+ if args[:position_covariance_type]
174
+ @position_covariance_type = args[:position_covariance_type]
175
+ else
176
+ @position_covariance_type = 0
177
+ end
153
178
  end
154
179
 
180
+ # internal API method
181
+ # @return [String] Message type string.
155
182
  def _get_types
156
- # internal API method
157
- return @slot_types
183
+ @slot_types
158
184
  end
159
185
 
186
+ # serialize message into buffer
187
+ # @param [IO] buff buffer
160
188
  def serialize(buff)
161
- # serialize message into buffer
162
- # @param buff: buffer
163
- # @type buff: StringIO
164
189
  begin
165
190
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
166
191
  _x = @header.frame_id
@@ -175,10 +200,9 @@ uint16 service
175
200
  end
176
201
  end
177
202
 
203
+ # unpack serialized message in str into this message instance
204
+ # @param [String] str: byte array of serialized message
178
205
  def deserialize(str)
179
- # unpack serialized message in str into this message instance
180
- # @param str: byte array of serialized message
181
- # @type str: str
182
206
 
183
207
  begin
184
208
  if @header == nil
@@ -60,34 +60,34 @@ uint16 service
60
60
  @@struct_L = ::ROS::Struct.new("L")
61
61
  @@slot_types = ['int8','uint16']
62
62
 
63
- def initialize
64
- # Constructor. Any message fields that are implicitly/explicitly
65
- # set to None will be assigned a default value. The recommend
66
- # use is keyword arguments as this is more robust to future message
67
- # changes. You cannot mix in-order arguments and keyword arguments.
68
- #
69
- # The available fields are:
70
- # status,service
71
- #
72
- # @param args: complete set of field values, in .msg order
73
- # @param kwds: use keyword arguments corresponding to message field names
74
- # to set specific fields.
75
- #
76
-
63
+ # Constructor. You can set the default values using keyword operators.
64
+ #
65
+ # @param [Hash] args keyword for initializing values
66
+ # @option args [int8] :status initialize value
67
+ # @option args [uint16] :service initialize value
68
+ def initialize(args={})
77
69
  # message fields cannot be None, assign default values for those that are
78
- @status = 0
79
- @service = 0
70
+ if args[:status]
71
+ @status = args[:status]
72
+ else
73
+ @status = 0
74
+ end
75
+ if args[:service]
76
+ @service = args[:service]
77
+ else
78
+ @service = 0
79
+ end
80
80
  end
81
81
 
82
+ # internal API method
83
+ # @return [String] Message type string.
82
84
  def _get_types
83
- # internal API method
84
- return @slot_types
85
+ @slot_types
85
86
  end
86
87
 
88
+ # serialize message into buffer
89
+ # @param [IO] buff buffer
87
90
  def serialize(buff)
88
- # serialize message into buffer
89
- # @param buff: buffer
90
- # @type buff: StringIO
91
91
  begin
92
92
  buff.write(@@struct_cS.pack(@status, @service))
93
93
  rescue => exception
@@ -96,10 +96,9 @@ uint16 service
96
96
  end
97
97
  end
98
98
 
99
+ # unpack serialized message in str into this message instance
100
+ # @param [String] str: byte array of serialized message
99
101
  def deserialize(str)
100
- # unpack serialized message in str into this message instance
101
- # @param str: byte array of serialized message
102
- # @type str: str
103
102
 
104
103
  begin
105
104
  end_point = 0