rosruby_msgs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -29,34 +29,34 @@ string level
29
29
  @@struct_L = ::ROS::Struct.new("L")
30
30
  @@slot_types = ['string','string']
31
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
- # logger,level
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
-
32
+ # Constructor. You can set the default values using keyword operators.
33
+ #
34
+ # @param [Hash] args keyword for initializing values
35
+ # @option args [string] :logger initialize value
36
+ # @option args [string] :level initialize value
37
+ def initialize(args={})
46
38
  # message fields cannot be None, assign default values for those that are
47
- @logger = ''
48
- @level = ''
39
+ if args[:logger]
40
+ @logger = args[:logger]
41
+ else
42
+ @logger = ''
43
+ end
44
+ if args[:level]
45
+ @level = args[:level]
46
+ else
47
+ @level = ''
48
+ end
49
49
  end
50
50
 
51
+ # internal API method
52
+ # @return [String] Message type string.
51
53
  def _get_types
52
- # internal API method
53
- return @slot_types
54
+ @slot_types
54
55
  end
55
56
 
57
+ # serialize message into buffer
58
+ # @param [IO] buff buffer
56
59
  def serialize(buff)
57
- # serialize message into buffer
58
- # @param buff: buffer
59
- # @type buff: StringIO
60
60
  begin
61
61
  _x = @logger
62
62
  length = _x.length
@@ -70,10 +70,9 @@ string level
70
70
  end
71
71
  end
72
72
 
73
+ # unpack serialized message in str into this message instance
74
+ # @param [String] str: byte array of serialized message
73
75
  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
76
 
78
77
  begin
79
78
  end_point = 0
@@ -125,30 +124,21 @@ class SetLoggerLevelResponse <::ROS::Message
125
124
  @@struct_L = ::ROS::Struct.new("L")
126
125
  @@slot_types = []
127
126
 
128
- def initialize
129
- # Constructor. Any message fields that are implicitly/explicitly
130
- # set to None will be assigned a default value. The recommend
131
- # use is keyword arguments as this is more robust to future message
132
- # changes. You cannot mix in-order arguments and keyword arguments.
133
- #
134
- # The available fields are:
135
- #
136
- #
137
- # @param args: complete set of field values, in .msg order
138
- # @param kwds: use keyword arguments corresponding to message field names
139
- # to set specific fields.
140
- #
141
-
127
+ # Constructor. You can set the default values using keyword operators.
128
+ #
129
+ # @param [Hash] args keyword for initializing values
130
+ def initialize(args={})
131
+ end
142
132
 
133
+ # internal API method
134
+ # @return [String] Message type string.
143
135
  def _get_types
144
- # internal API method
145
- return @slot_types
136
+ @slot_types
146
137
  end
147
138
 
139
+ # serialize message into buffer
140
+ # @param [IO] buff buffer
148
141
  def serialize(buff)
149
- # serialize message into buffer
150
- # @param buff: buffer
151
- # @type buff: StringIO
152
142
  begin
153
143
  pass
154
144
  rescue => exception
@@ -157,10 +147,9 @@ class SetLoggerLevelResponse <::ROS::Message
157
147
  end
158
148
  end
159
149
 
150
+ # unpack serialized message in str into this message instance
151
+ # @param [String] str: byte array of serialized message
160
152
  def deserialize(str)
161
- # unpack serialized message in str into this message instance
162
- # @param str: byte array of serialized message
163
- # @type str: str
164
153
 
165
154
  begin
166
155
  end_point = 0
@@ -30,34 +30,34 @@ int64 b
30
30
  @@struct_L = ::ROS::Struct.new("L")
31
31
  @@slot_types = ['int64','int64']
32
32
 
33
- def initialize
34
- # Constructor. Any message fields that are implicitly/explicitly
35
- # set to None will be assigned a default value. The recommend
36
- # use is keyword arguments as this is more robust to future message
37
- # changes. You cannot mix in-order arguments and keyword arguments.
38
- #
39
- # The available fields are:
40
- # a,b
41
- #
42
- # @param args: complete set of field values, in .msg order
43
- # @param kwds: use keyword arguments corresponding to message field names
44
- # to set specific fields.
45
- #
46
-
33
+ # Constructor. You can set the default values using keyword operators.
34
+ #
35
+ # @param [Hash] args keyword for initializing values
36
+ # @option args [int64] :a initialize value
37
+ # @option args [int64] :b initialize value
38
+ def initialize(args={})
47
39
  # message fields cannot be None, assign default values for those that are
48
- @a = 0
49
- @b = 0
40
+ if args[:a]
41
+ @a = args[:a]
42
+ else
43
+ @a = 0
44
+ end
45
+ if args[:b]
46
+ @b = args[:b]
47
+ else
48
+ @b = 0
49
+ end
50
50
  end
51
51
 
52
+ # internal API method
53
+ # @return [String] Message type string.
52
54
  def _get_types
53
- # internal API method
54
- return @slot_types
55
+ @slot_types
55
56
  end
56
57
 
58
+ # serialize message into buffer
59
+ # @param [IO] buff buffer
57
60
  def serialize(buff)
58
- # serialize message into buffer
59
- # @param buff: buffer
60
- # @type buff: StringIO
61
61
  begin
62
62
  buff.write(@@struct_q2.pack(@a, @b))
63
63
  rescue => exception
@@ -66,10 +66,9 @@ int64 b
66
66
  end
67
67
  end
68
68
 
69
+ # unpack serialized message in str into this message instance
70
+ # @param [String] str: byte array of serialized message
69
71
  def deserialize(str)
70
- # unpack serialized message in str into this message instance
71
- # @param str: byte array of serialized message
72
- # @type str: str
73
72
 
74
73
  begin
75
74
  end_point = 0
@@ -115,33 +114,28 @@ class TwoIntsResponse <::ROS::Message
115
114
  @@struct_L = ::ROS::Struct.new("L")
116
115
  @@slot_types = ['int64']
117
116
 
118
- def initialize
119
- # Constructor. Any message fields that are implicitly/explicitly
120
- # set to None will be assigned a default value. The recommend
121
- # use is keyword arguments as this is more robust to future message
122
- # changes. You cannot mix in-order arguments and keyword arguments.
123
- #
124
- # The available fields are:
125
- # sum
126
- #
127
- # @param args: complete set of field values, in .msg order
128
- # @param kwds: use keyword arguments corresponding to message field names
129
- # to set specific fields.
130
- #
131
-
117
+ # Constructor. You can set the default values using keyword operators.
118
+ #
119
+ # @param [Hash] args keyword for initializing values
120
+ # @option args [int64] :sum initialize value
121
+ def initialize(args={})
132
122
  # message fields cannot be None, assign default values for those that are
133
- @sum = 0
123
+ if args[:sum]
124
+ @sum = args[:sum]
125
+ else
126
+ @sum = 0
127
+ end
134
128
  end
135
129
 
130
+ # internal API method
131
+ # @return [String] Message type string.
136
132
  def _get_types
137
- # internal API method
138
- return @slot_types
133
+ @slot_types
139
134
  end
140
135
 
136
+ # serialize message into buffer
137
+ # @param [IO] buff buffer
141
138
  def serialize(buff)
142
- # serialize message into buffer
143
- # @param buff: buffer
144
- # @type buff: StringIO
145
139
  begin
146
140
  buff.write(@@struct_q.pack(@sum))
147
141
  rescue => exception
@@ -150,10 +144,9 @@ class TwoIntsResponse <::ROS::Message
150
144
  end
151
145
  end
152
146
 
147
+ # unpack serialized message in str into this message instance
148
+ # @param [String] str: byte array of serialized message
153
149
  def deserialize(str)
154
- # unpack serialized message in str into this message instance
155
- # @param str: byte array of serialized message
156
- # @type str: str
157
150
 
158
151
  begin
159
152
  end_point = 0
@@ -33,33 +33,28 @@ time clock
33
33
  @@struct_L = ::ROS::Struct.new("L")
34
34
  @@slot_types = ['time']
35
35
 
36
- def initialize
37
- # Constructor. Any message fields that are implicitly/explicitly
38
- # set to None will be assigned a default value. The recommend
39
- # use is keyword arguments as this is more robust to future message
40
- # changes. You cannot mix in-order arguments and keyword arguments.
41
- #
42
- # The available fields are:
43
- # clock
44
- #
45
- # @param args: complete set of field values, in .msg order
46
- # @param kwds: use keyword arguments corresponding to message field names
47
- # to set specific fields.
48
- #
49
-
36
+ # Constructor. You can set the default values using keyword operators.
37
+ #
38
+ # @param [Hash] args keyword for initializing values
39
+ # @option args [time] :clock initialize value
40
+ def initialize(args={})
50
41
  # message fields cannot be None, assign default values for those that are
51
- @clock = ROS::Time.new
42
+ if args[:clock]
43
+ @clock = args[:clock]
44
+ else
45
+ @clock = ROS::Time.new
46
+ end
52
47
  end
53
48
 
49
+ # internal API method
50
+ # @return [String] Message type string.
54
51
  def _get_types
55
- # internal API method
56
- return @slot_types
52
+ @slot_types
57
53
  end
58
54
 
55
+ # serialize message into buffer
56
+ # @param [IO] buff buffer
59
57
  def serialize(buff)
60
- # serialize message into buffer
61
- # @param buff: buffer
62
- # @type buff: StringIO
63
58
  begin
64
59
  buff.write(@@struct_L2.pack(@clock.secs, @clock.nsecs))
65
60
  rescue => exception
@@ -68,10 +63,9 @@ time clock
68
63
  end
69
64
  end
70
65
 
66
+ # unpack serialized message in str into this message instance
67
+ # @param [String] str: byte array of serialized message
71
68
  def deserialize(str)
72
- # unpack serialized message in str into this message instance
73
- # @param str: byte array of serialized message
74
- # @type str: str
75
69
 
76
70
  begin
77
71
  if @clock == nil
@@ -74,40 +74,70 @@ string frame_id
74
74
  @@struct_L = ::ROS::Struct.new("L")
75
75
  @@slot_types = ['Header','byte','string','string','string','string','uint32','string[]']
76
76
 
77
- def initialize
78
- # Constructor. Any message fields that are implicitly/explicitly
79
- # set to None will be assigned a default value. The recommend
80
- # use is keyword arguments as this is more robust to future message
81
- # changes. You cannot mix in-order arguments and keyword arguments.
82
- #
83
- # The available fields are:
84
- # header,level,name,msg,file,function,line,topics
85
- #
86
- # @param args: complete set of field values, in .msg order
87
- # @param kwds: use keyword arguments corresponding to message field names
88
- # to set specific fields.
89
- #
90
-
77
+ # Constructor. You can set the default values using keyword operators.
78
+ #
79
+ # @param [Hash] args keyword for initializing values
80
+ # @option args [Header] :header initialize value
81
+ # @option args [byte] :level initialize value
82
+ # @option args [string] :name initialize value
83
+ # @option args [string] :msg initialize value
84
+ # @option args [string] :file initialize value
85
+ # @option args [string] :function initialize value
86
+ # @option args [uint32] :line initialize value
87
+ # @option args [string[]] :topics initialize value
88
+ def initialize(args={})
91
89
  # message fields cannot be None, assign default values for those that are
92
- @header = Std_msgs::Header.new
93
- @level = 0
94
- @name = ''
95
- @msg = ''
96
- @file = ''
97
- @function = ''
98
- @line = 0
99
- @topics = []
90
+ if args[:header]
91
+ @header = args[:header]
92
+ else
93
+ @header = Std_msgs::Header.new
94
+ end
95
+ if args[:level]
96
+ @level = args[:level]
97
+ else
98
+ @level = 0
99
+ end
100
+ if args[:name]
101
+ @name = args[:name]
102
+ else
103
+ @name = ''
104
+ end
105
+ if args[:msg]
106
+ @msg = args[:msg]
107
+ else
108
+ @msg = ''
109
+ end
110
+ if args[:file]
111
+ @file = args[:file]
112
+ else
113
+ @file = ''
114
+ end
115
+ if args[:function]
116
+ @function = args[:function]
117
+ else
118
+ @function = ''
119
+ end
120
+ if args[:line]
121
+ @line = args[:line]
122
+ else
123
+ @line = 0
124
+ end
125
+ if args[:topics]
126
+ @topics = args[:topics]
127
+ else
128
+ @topics = []
129
+ end
100
130
  end
101
131
 
132
+ # internal API method
133
+ # @return [String] Message type string.
102
134
  def _get_types
103
- # internal API method
104
- return @slot_types
135
+ @slot_types
105
136
  end
106
137
 
138
+ # serialize message into buffer
139
+ # @param [IO] buff buffer
107
140
  def serialize(buff)
108
- # serialize message into buffer
109
- # @param buff: buffer
110
- # @type buff: StringIO
111
141
  begin
112
142
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
113
143
  _x = @header.frame_id
@@ -139,10 +169,9 @@ string frame_id
139
169
  end
140
170
  end
141
171
 
172
+ # unpack serialized message in str into this message instance
173
+ # @param [String] str: byte array of serialized message
142
174
  def deserialize(str)
143
- # unpack serialized message in str into this message instance
144
- # @param str: byte array of serialized message
145
- # @type str: str
146
175
 
147
176
  begin
148
177
  if @header == nil
@@ -205,43 +205,88 @@ bool do_rectify
205
205
  @@struct_L = ::ROS::Struct.new("L")
206
206
  @@slot_types = ['Header','uint32','uint32','string','float64[]','float64[9]','float64[9]','float64[12]','uint32','uint32','sensor_msgs/RegionOfInterest']
207
207
 
208
- def initialize
209
- # Constructor. Any message fields that are implicitly/explicitly
210
- # set to None will be assigned a default value. The recommend
211
- # use is keyword arguments as this is more robust to future message
212
- # changes. You cannot mix in-order arguments and keyword arguments.
213
- #
214
- # The available fields are:
215
- # header,height,width,distortion_model,D,K,R,P,binning_x,binning_y,roi
216
- #
217
- # @param args: complete set of field values, in .msg order
218
- # @param kwds: use keyword arguments corresponding to message field names
219
- # to set specific fields.
220
- #
221
-
208
+ # Constructor. You can set the default values using keyword operators.
209
+ #
210
+ # @param [Hash] args keyword for initializing values
211
+ # @option args [Header] :header initialize value
212
+ # @option args [uint32] :height initialize value
213
+ # @option args [uint32] :width initialize value
214
+ # @option args [string] :distortion_model initialize value
215
+ # @option args [float64[]] :D initialize value
216
+ # @option args [float64[9]] :K initialize value
217
+ # @option args [float64[9]] :R initialize value
218
+ # @option args [float64[12]] :P initialize value
219
+ # @option args [uint32] :binning_x initialize value
220
+ # @option args [uint32] :binning_y initialize value
221
+ # @option args [sensor_msgs/RegionOfInterest] :roi initialize value
222
+ def initialize(args={})
222
223
  # message fields cannot be None, assign default values for those that are
223
- @header = Std_msgs::Header.new
224
- @height = 0
225
- @width = 0
226
- @distortion_model = ''
227
- @D = []
228
- @K = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
229
- @R = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
230
- @P = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
231
- @binning_x = 0
232
- @binning_y = 0
233
- @roi = Sensor_msgs::RegionOfInterest.new
224
+ if args[:header]
225
+ @header = args[:header]
226
+ else
227
+ @header = Std_msgs::Header.new
228
+ end
229
+ if args[:height]
230
+ @height = args[:height]
231
+ else
232
+ @height = 0
233
+ end
234
+ if args[:width]
235
+ @width = args[:width]
236
+ else
237
+ @width = 0
238
+ end
239
+ if args[:distortion_model]
240
+ @distortion_model = args[:distortion_model]
241
+ else
242
+ @distortion_model = ''
243
+ end
244
+ if args[:D]
245
+ @D = args[:D]
246
+ else
247
+ @D = []
248
+ end
249
+ if args[:K]
250
+ @K = args[:K]
251
+ else
252
+ @K = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
253
+ end
254
+ if args[:R]
255
+ @R = args[:R]
256
+ else
257
+ @R = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
258
+ end
259
+ if args[:P]
260
+ @P = args[:P]
261
+ else
262
+ @P = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
263
+ end
264
+ if args[:binning_x]
265
+ @binning_x = args[:binning_x]
266
+ else
267
+ @binning_x = 0
268
+ end
269
+ if args[:binning_y]
270
+ @binning_y = args[:binning_y]
271
+ else
272
+ @binning_y = 0
273
+ end
274
+ if args[:roi]
275
+ @roi = args[:roi]
276
+ else
277
+ @roi = Sensor_msgs::RegionOfInterest.new
278
+ end
234
279
  end
235
280
 
281
+ # internal API method
282
+ # @return [String] Message type string.
236
283
  def _get_types
237
- # internal API method
238
- return @slot_types
284
+ @slot_types
239
285
  end
240
286
 
287
+ # serialize message into buffer
288
+ # @param [IO] buff buffer
241
289
  def serialize(buff)
242
- # serialize message into buffer
243
- # @param buff: buffer
244
- # @type buff: StringIO
245
290
  begin
246
291
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
247
292
  _x = @header.frame_id
@@ -265,10 +310,9 @@ bool do_rectify
265
310
  end
266
311
  end
267
312
 
313
+ # unpack serialized message in str into this message instance
314
+ # @param [String] str: byte array of serialized message
268
315
  def deserialize(str)
269
- # unpack serialized message in str into this message instance
270
- # @param str: byte array of serialized message
271
- # @type str: str
272
316
 
273
317
  begin
274
318
  if @header == nil