rosruby_msgs 0.0.1 → 0.0.2

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 (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,88 @@
1
+ # autogenerated by genmsg_ruby from Point.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Geometry_msgs
6
+
7
+ class Point <::ROS::Message
8
+ def self.md5sum
9
+ "4a842b65f413084dc2b10fb484ea7f17"
10
+ end
11
+
12
+ def self.type
13
+ "geometry_msgs/Point"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "# This contains the position of a point in free space
22
+ float64 x
23
+ float64 y
24
+ float64 z
25
+
26
+ "
27
+ end
28
+ attr_accessor :x, :y, :z
29
+
30
+ @@struct_d3 = ::ROS::Struct.new("d3")
31
+
32
+ @@struct_L = ::ROS::Struct.new("L")
33
+ @@slot_types = ['float64','float64','float64']
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
+ # x,y,z
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
+ @x = 0.0
51
+ @y = 0.0
52
+ @z = 0.0
53
+ end
54
+
55
+ def _get_types
56
+ # internal API method
57
+ return @slot_types
58
+ end
59
+
60
+ def serialize(buff)
61
+ # serialize message into buffer
62
+ # @param buff: buffer
63
+ # @type buff: StringIO
64
+ begin
65
+ buff.write(@@struct_d3.pack(@x, @y, @z))
66
+ rescue => exception
67
+ raise "some erro in serialize: #{exception}"
68
+
69
+ end
70
+ end
71
+
72
+ def deserialize(str)
73
+ # unpack serialized message in str into this message instance
74
+ # @param str: byte array of serialized message
75
+ # @type str: str
76
+
77
+ begin
78
+ end_point = 0
79
+ start = end_point
80
+ end_point += ROS::Struct::calc_size('d3')
81
+ (@x, @y, @z,) = @@struct_d3.unpack(str[start..(end_point-1)])
82
+ return self
83
+ rescue => exception
84
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
85
+ end
86
+ end
87
+ end # end of class
88
+ end # end of module
@@ -0,0 +1,94 @@
1
+ # autogenerated by genmsg_ruby from Point32.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Geometry_msgs
6
+
7
+ class Point32 <::ROS::Message
8
+ def self.md5sum
9
+ "cc153912f1453b708d221682bc23d9ac"
10
+ end
11
+
12
+ def self.type
13
+ "geometry_msgs/Point32"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "# This contains the position of a point in free space(with 32 bits of precision).
22
+ # It is recommeded to use Point wherever possible instead of Point32.
23
+ #
24
+ # This recommendation is to promote interoperability.
25
+ #
26
+ # This message is designed to take up less space when sending
27
+ # lots of points at once, as in the case of a PointCloud.
28
+
29
+ float32 x
30
+ float32 y
31
+ float32 z
32
+ "
33
+ end
34
+ attr_accessor :x, :y, :z
35
+
36
+ @@struct_f3 = ::ROS::Struct.new("f3")
37
+
38
+ @@struct_L = ::ROS::Struct.new("L")
39
+ @@slot_types = ['float32','float32','float32']
40
+
41
+ def initialize
42
+ # Constructor. Any message fields that are implicitly/explicitly
43
+ # set to None will be assigned a default value. The recommend
44
+ # use is keyword arguments as this is more robust to future message
45
+ # changes. You cannot mix in-order arguments and keyword arguments.
46
+ #
47
+ # The available fields are:
48
+ # x,y,z
49
+ #
50
+ # @param args: complete set of field values, in .msg order
51
+ # @param kwds: use keyword arguments corresponding to message field names
52
+ # to set specific fields.
53
+ #
54
+
55
+ # message fields cannot be None, assign default values for those that are
56
+ @x = 0.0
57
+ @y = 0.0
58
+ @z = 0.0
59
+ end
60
+
61
+ def _get_types
62
+ # internal API method
63
+ return @slot_types
64
+ end
65
+
66
+ def serialize(buff)
67
+ # serialize message into buffer
68
+ # @param buff: buffer
69
+ # @type buff: StringIO
70
+ begin
71
+ buff.write(@@struct_f3.pack(@x, @y, @z))
72
+ rescue => exception
73
+ raise "some erro in serialize: #{exception}"
74
+
75
+ end
76
+ end
77
+
78
+ def deserialize(str)
79
+ # unpack serialized message in str into this message instance
80
+ # @param str: byte array of serialized message
81
+ # @type str: str
82
+
83
+ begin
84
+ end_point = 0
85
+ start = end_point
86
+ end_point += ROS::Struct::calc_size('f3')
87
+ (@x, @y, @z,) = @@struct_f3.unpack(str[start..(end_point-1)])
88
+ return self
89
+ rescue => exception
90
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
91
+ end
92
+ end
93
+ end # end of class
94
+ end # end of module
@@ -0,0 +1,133 @@
1
+ # autogenerated by genmsg_ruby from PointStamped.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "geometry_msgs/Point"
6
+
7
+ module Geometry_msgs
8
+
9
+ class PointStamped <::ROS::Message
10
+ def self.md5sum
11
+ "c63aecb41bfdfd6b7e1fac37c7cbe7bf"
12
+ end
13
+
14
+ def self.type
15
+ "geometry_msgs/PointStamped"
16
+ end
17
+
18
+ def has_header?
19
+ true
20
+ end
21
+
22
+ def message_definition
23
+ "# This represents a Point with reference coordinate frame and timestamp
24
+ Header header
25
+ Point point
26
+
27
+ ================================================================================
28
+ MSG: std_msgs/Header
29
+ # Standard metadata for higher-level stamped data types.
30
+ # This is generally used to communicate timestamped data
31
+ # in a particular coordinate frame.
32
+ #
33
+ # sequence ID: consecutively increasing ID
34
+ uint32 seq
35
+ #Two-integer timestamp that is expressed as:
36
+ # * stamp.secs: seconds (stamp_secs) since epoch
37
+ # * stamp.nsecs: nanoseconds since stamp_secs
38
+ # time-handling sugar is provided by the client library
39
+ time stamp
40
+ #Frame this data is associated with
41
+ # 0: no frame
42
+ # 1: global frame
43
+ string frame_id
44
+
45
+ ================================================================================
46
+ MSG: geometry_msgs/Point
47
+ # This contains the position of a point in free space
48
+ float64 x
49
+ float64 y
50
+ float64 z
51
+
52
+ "
53
+ end
54
+ attr_accessor :header, :point
55
+
56
+ @@struct_L3 = ::ROS::Struct.new("L3")
57
+ @@struct_d3 = ::ROS::Struct.new("d3")
58
+
59
+ @@struct_L = ::ROS::Struct.new("L")
60
+ @@slot_types = ['Header','geometry_msgs/Point']
61
+
62
+ def initialize
63
+ # Constructor. Any message fields that are implicitly/explicitly
64
+ # set to None will be assigned a default value. The recommend
65
+ # use is keyword arguments as this is more robust to future message
66
+ # changes. You cannot mix in-order arguments and keyword arguments.
67
+ #
68
+ # The available fields are:
69
+ # header,point
70
+ #
71
+ # @param args: complete set of field values, in .msg order
72
+ # @param kwds: use keyword arguments corresponding to message field names
73
+ # to set specific fields.
74
+ #
75
+
76
+ # message fields cannot be None, assign default values for those that are
77
+ @header = Std_msgs::Header.new
78
+ @point = Geometry_msgs::Point.new
79
+ end
80
+
81
+ def _get_types
82
+ # internal API method
83
+ return @slot_types
84
+ end
85
+
86
+ def serialize(buff)
87
+ # serialize message into buffer
88
+ # @param buff: buffer
89
+ # @type buff: StringIO
90
+ begin
91
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
92
+ _x = @header.frame_id
93
+ length = _x.length
94
+ buff.write([length, _x].pack("La#{length}"))
95
+ buff.write(@@struct_d3.pack(@point.x, @point.y, @point.z))
96
+ rescue => exception
97
+ raise "some erro in serialize: #{exception}"
98
+
99
+ end
100
+ end
101
+
102
+ 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
+
107
+ begin
108
+ if @header == nil
109
+ @header = Std_msgs::Header.new
110
+ end
111
+ if @point == nil
112
+ @point = Geometry_msgs::Point.new
113
+ end
114
+ end_point = 0
115
+ start = end_point
116
+ end_point += ROS::Struct::calc_size('L3')
117
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
118
+ start = end_point
119
+ end_point += 4
120
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
121
+ start = end_point
122
+ end_point += length
123
+ @header.frame_id = str[start..(end_point-1)]
124
+ start = end_point
125
+ end_point += ROS::Struct::calc_size('d3')
126
+ (@point.x, @point.y, @point.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
127
+ return self
128
+ rescue => exception
129
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
130
+ end
131
+ end
132
+ end # end of class
133
+ end # end of module
@@ -0,0 +1,112 @@
1
+ # autogenerated by genmsg_ruby from Polygon.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "geometry_msgs/Point32"
5
+
6
+ module Geometry_msgs
7
+
8
+ class Polygon <::ROS::Message
9
+ def self.md5sum
10
+ "cd60a26494a087f577976f0329fa120e"
11
+ end
12
+
13
+ def self.type
14
+ "geometry_msgs/Polygon"
15
+ end
16
+
17
+ def has_header?
18
+ false
19
+ end
20
+
21
+ def message_definition
22
+ "#A specification of a polygon where the first and last points are assumed to be connected
23
+ Point32[] points
24
+
25
+ ================================================================================
26
+ MSG: geometry_msgs/Point32
27
+ # This contains the position of a point in free space(with 32 bits of precision).
28
+ # It is recommeded to use Point wherever possible instead of Point32.
29
+ #
30
+ # This recommendation is to promote interoperability.
31
+ #
32
+ # This message is designed to take up less space when sending
33
+ # lots of points at once, as in the case of a PointCloud.
34
+
35
+ float32 x
36
+ float32 y
37
+ float32 z
38
+ "
39
+ end
40
+ attr_accessor :points
41
+
42
+ @@struct_f3 = ::ROS::Struct.new("f3")
43
+
44
+ @@struct_L = ::ROS::Struct.new("L")
45
+ @@slot_types = ['geometry_msgs/Point32[]']
46
+
47
+ def initialize
48
+ # Constructor. Any message fields that are implicitly/explicitly
49
+ # set to None will be assigned a default value. The recommend
50
+ # use is keyword arguments as this is more robust to future message
51
+ # changes. You cannot mix in-order arguments and keyword arguments.
52
+ #
53
+ # The available fields are:
54
+ # points
55
+ #
56
+ # @param args: complete set of field values, in .msg order
57
+ # @param kwds: use keyword arguments corresponding to message field names
58
+ # to set specific fields.
59
+ #
60
+
61
+ # message fields cannot be None, assign default values for those that are
62
+ @points = []
63
+ end
64
+
65
+ def _get_types
66
+ # internal API method
67
+ return @slot_types
68
+ end
69
+
70
+ def serialize(buff)
71
+ # serialize message into buffer
72
+ # @param buff: buffer
73
+ # @type buff: StringIO
74
+ begin
75
+ length = @points.length
76
+ buff.write(@@struct_L.pack(length))
77
+ for val1 in @points
78
+ _x = val1
79
+ buff.write(@@struct_f3.pack(_x.x, _x.y, _x.z))
80
+ end
81
+ rescue => exception
82
+ raise "some erro in serialize: #{exception}"
83
+
84
+ end
85
+ end
86
+
87
+ def deserialize(str)
88
+ # unpack serialized message in str into this message instance
89
+ # @param str: byte array of serialized message
90
+ # @type str: str
91
+
92
+ begin
93
+ end_point = 0
94
+ start = end_point
95
+ end_point += 4
96
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
97
+ @points = []
98
+ length.times do
99
+ val1 = Geometry_msgs::Point32.new
100
+ _x = val1
101
+ start = end_point
102
+ end_point += ROS::Struct::calc_size('f3')
103
+ (_x.x, _x.y, _x.z,) = @@struct_f3.unpack(str[start..(end_point-1)])
104
+ @points.push(val1)
105
+ end
106
+ return self
107
+ rescue => exception
108
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
109
+ end
110
+ end
111
+ end # end of class
112
+ end # end of module
@@ -0,0 +1,159 @@
1
+ # autogenerated by genmsg_ruby from PolygonStamped.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "geometry_msgs/Polygon"
6
+ require "geometry_msgs/Point32"
7
+
8
+ module Geometry_msgs
9
+
10
+ class PolygonStamped <::ROS::Message
11
+ def self.md5sum
12
+ "c6be8f7dc3bee7fe9e8d296070f53340"
13
+ end
14
+
15
+ def self.type
16
+ "geometry_msgs/PolygonStamped"
17
+ end
18
+
19
+ def has_header?
20
+ true
21
+ end
22
+
23
+ def message_definition
24
+ "# This represents a Polygon with reference coordinate frame and timestamp
25
+ Header header
26
+ Polygon polygon
27
+
28
+ ================================================================================
29
+ MSG: std_msgs/Header
30
+ # Standard metadata for higher-level stamped data types.
31
+ # This is generally used to communicate timestamped data
32
+ # in a particular coordinate frame.
33
+ #
34
+ # sequence ID: consecutively increasing ID
35
+ uint32 seq
36
+ #Two-integer timestamp that is expressed as:
37
+ # * stamp.secs: seconds (stamp_secs) since epoch
38
+ # * stamp.nsecs: nanoseconds since stamp_secs
39
+ # time-handling sugar is provided by the client library
40
+ time stamp
41
+ #Frame this data is associated with
42
+ # 0: no frame
43
+ # 1: global frame
44
+ string frame_id
45
+
46
+ ================================================================================
47
+ MSG: geometry_msgs/Polygon
48
+ #A specification of a polygon where the first and last points are assumed to be connected
49
+ Point32[] points
50
+
51
+ ================================================================================
52
+ MSG: geometry_msgs/Point32
53
+ # This contains the position of a point in free space(with 32 bits of precision).
54
+ # It is recommeded to use Point wherever possible instead of Point32.
55
+ #
56
+ # This recommendation is to promote interoperability.
57
+ #
58
+ # This message is designed to take up less space when sending
59
+ # lots of points at once, as in the case of a PointCloud.
60
+
61
+ float32 x
62
+ float32 y
63
+ float32 z
64
+ "
65
+ end
66
+ attr_accessor :header, :polygon
67
+
68
+ @@struct_L3 = ::ROS::Struct.new("L3")
69
+ @@struct_f3 = ::ROS::Struct.new("f3")
70
+
71
+ @@struct_L = ::ROS::Struct.new("L")
72
+ @@slot_types = ['Header','geometry_msgs/Polygon']
73
+
74
+ def initialize
75
+ # Constructor. Any message fields that are implicitly/explicitly
76
+ # set to None will be assigned a default value. The recommend
77
+ # use is keyword arguments as this is more robust to future message
78
+ # changes. You cannot mix in-order arguments and keyword arguments.
79
+ #
80
+ # The available fields are:
81
+ # header,polygon
82
+ #
83
+ # @param args: complete set of field values, in .msg order
84
+ # @param kwds: use keyword arguments corresponding to message field names
85
+ # to set specific fields.
86
+ #
87
+
88
+ # message fields cannot be None, assign default values for those that are
89
+ @header = Std_msgs::Header.new
90
+ @polygon = Geometry_msgs::Polygon.new
91
+ end
92
+
93
+ def _get_types
94
+ # internal API method
95
+ return @slot_types
96
+ end
97
+
98
+ def serialize(buff)
99
+ # serialize message into buffer
100
+ # @param buff: buffer
101
+ # @type buff: StringIO
102
+ begin
103
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
104
+ _x = @header.frame_id
105
+ length = _x.length
106
+ buff.write([length, _x].pack("La#{length}"))
107
+ length = @polygon.points.length
108
+ buff.write(@@struct_L.pack(length))
109
+ for val1 in @polygon.points
110
+ _x = val1
111
+ buff.write(@@struct_f3.pack(_x.x, _x.y, _x.z))
112
+ end
113
+ rescue => exception
114
+ raise "some erro in serialize: #{exception}"
115
+
116
+ end
117
+ end
118
+
119
+ def deserialize(str)
120
+ # unpack serialized message in str into this message instance
121
+ # @param str: byte array of serialized message
122
+ # @type str: str
123
+
124
+ begin
125
+ if @header == nil
126
+ @header = Std_msgs::Header.new
127
+ end
128
+ if @polygon == nil
129
+ @polygon = Geometry_msgs::Polygon.new
130
+ end
131
+ end_point = 0
132
+ start = end_point
133
+ end_point += ROS::Struct::calc_size('L3')
134
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
135
+ start = end_point
136
+ end_point += 4
137
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
138
+ start = end_point
139
+ end_point += length
140
+ @header.frame_id = str[start..(end_point-1)]
141
+ start = end_point
142
+ end_point += 4
143
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
144
+ @polygon.points = []
145
+ length.times do
146
+ val1 = Geometry_msgs::Point32.new
147
+ _x = val1
148
+ start = end_point
149
+ end_point += ROS::Struct::calc_size('f3')
150
+ (_x.x, _x.y, _x.z,) = @@struct_f3.unpack(str[start..(end_point-1)])
151
+ @polygon.points.push(val1)
152
+ end
153
+ return self
154
+ rescue => exception
155
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
156
+ end
157
+ end
158
+ end # end of class
159
+ end # end of module
@@ -0,0 +1,110 @@
1
+ # autogenerated by genmsg_ruby from Pose.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "geometry_msgs/Quaternion"
5
+ require "geometry_msgs/Point"
6
+
7
+ module Geometry_msgs
8
+
9
+ class Pose <::ROS::Message
10
+ def self.md5sum
11
+ "e45d45a5a1ce597b249e23fb30fc871f"
12
+ end
13
+
14
+ def self.type
15
+ "geometry_msgs/Pose"
16
+ end
17
+
18
+ def has_header?
19
+ false
20
+ end
21
+
22
+ def message_definition
23
+ "# A representation of pose in free space, composed of postion and orientation.
24
+ Point position
25
+ Quaternion orientation
26
+
27
+ ================================================================================
28
+ MSG: geometry_msgs/Point
29
+ # This contains the position of a point in free space
30
+ float64 x
31
+ float64 y
32
+ float64 z
33
+
34
+ ================================================================================
35
+ MSG: geometry_msgs/Quaternion
36
+ # This represents an orientation in free space in quaternion form.
37
+
38
+ float64 x
39
+ float64 y
40
+ float64 z
41
+ float64 w
42
+
43
+ "
44
+ end
45
+ attr_accessor :position, :orientation
46
+
47
+ @@struct_d7 = ::ROS::Struct.new("d7")
48
+
49
+ @@struct_L = ::ROS::Struct.new("L")
50
+ @@slot_types = ['geometry_msgs/Point','geometry_msgs/Quaternion']
51
+
52
+ def initialize
53
+ # Constructor. Any message fields that are implicitly/explicitly
54
+ # set to None will be assigned a default value. The recommend
55
+ # use is keyword arguments as this is more robust to future message
56
+ # changes. You cannot mix in-order arguments and keyword arguments.
57
+ #
58
+ # The available fields are:
59
+ # position,orientation
60
+ #
61
+ # @param args: complete set of field values, in .msg order
62
+ # @param kwds: use keyword arguments corresponding to message field names
63
+ # to set specific fields.
64
+ #
65
+
66
+ # message fields cannot be None, assign default values for those that are
67
+ @position = Geometry_msgs::Point.new
68
+ @orientation = Geometry_msgs::Quaternion.new
69
+ end
70
+
71
+ def _get_types
72
+ # internal API method
73
+ return @slot_types
74
+ end
75
+
76
+ def serialize(buff)
77
+ # serialize message into buffer
78
+ # @param buff: buffer
79
+ # @type buff: StringIO
80
+ begin
81
+ buff.write(@@struct_d7.pack(@position.x, @position.y, @position.z, @orientation.x, @orientation.y, @orientation.z, @orientation.w))
82
+ rescue => exception
83
+ raise "some erro in serialize: #{exception}"
84
+
85
+ end
86
+ end
87
+
88
+ 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
+
93
+ begin
94
+ if @position == nil
95
+ @position = Geometry_msgs::Point.new
96
+ end
97
+ if @orientation == nil
98
+ @orientation = Geometry_msgs::Quaternion.new
99
+ end
100
+ end_point = 0
101
+ start = end_point
102
+ end_point += ROS::Struct::calc_size('d7')
103
+ (@position.x, @position.y, @position.z, @orientation.x, @orientation.y, @orientation.z, @orientation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
104
+ return self
105
+ rescue => exception
106
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
107
+ end
108
+ end
109
+ end # end of class
110
+ end # end of module