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.
- data/lib/actionlib_msgs/GoalID.rb +106 -0
- data/lib/actionlib_msgs/GoalStatus.rb +160 -0
- data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
- data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
- data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
- data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
- data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
- data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
- data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
- data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
- data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
- data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
- data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
- data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
- data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
- data/lib/geometry_msgs/Point.rb +88 -0
- data/lib/geometry_msgs/Point32.rb +94 -0
- data/lib/geometry_msgs/PointStamped.rb +133 -0
- data/lib/geometry_msgs/Polygon.rb +112 -0
- data/lib/geometry_msgs/PolygonStamped.rb +159 -0
- data/lib/geometry_msgs/Pose.rb +110 -0
- data/lib/geometry_msgs/Pose2D.rb +88 -0
- data/lib/geometry_msgs/PoseArray.rb +174 -0
- data/lib/geometry_msgs/PoseStamped.rb +150 -0
- data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
- data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
- data/lib/geometry_msgs/Quaternion.rb +91 -0
- data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
- data/lib/geometry_msgs/Transform.rb +111 -0
- data/lib/geometry_msgs/TransformStamped.rb +168 -0
- data/lib/geometry_msgs/Twist.rb +100 -0
- data/lib/geometry_msgs/TwistStamped.rb +140 -0
- data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
- data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
- data/lib/geometry_msgs/Vector3.rb +88 -0
- data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
- data/lib/geometry_msgs/Wrench.rb +101 -0
- data/lib/geometry_msgs/WrenchStamped.rb +141 -0
- data/lib/nav_msgs/GetMap.rb +280 -0
- data/lib/nav_msgs/GetPlan.rb +406 -0
- data/lib/nav_msgs/GridCells.rb +153 -0
- data/lib/nav_msgs/MapMetaData.rb +130 -0
- data/lib/nav_msgs/OccupancyGrid.rb +187 -0
- data/lib/nav_msgs/Odometry.rb +223 -0
- data/lib/nav_msgs/Path.rb +205 -0
- data/lib/roscpp/Empty.rb +166 -0
- data/lib/roscpp/GetLoggers.rb +205 -0
- data/lib/roscpp/Logger.rb +98 -0
- data/lib/roscpp/SetLoggerLevel.rb +189 -0
- data/lib/roscpp_tutorials/TwoInts.rb +185 -0
- data/lib/rosgraph_msgs/Clock.rb +90 -0
- data/lib/rosgraph_msgs/Log.rb +210 -0
- data/lib/sensor_msgs/CameraInfo.rb +325 -0
- data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
- data/lib/sensor_msgs/CompressedImage.rb +151 -0
- data/lib/sensor_msgs/Image.rb +179 -0
- data/lib/sensor_msgs/Imu.rb +193 -0
- data/lib/sensor_msgs/JointState.rb +195 -0
- data/lib/sensor_msgs/Joy.rb +141 -0
- data/lib/sensor_msgs/JoyFeedback.rb +104 -0
- data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
- data/lib/sensor_msgs/LaserScan.rb +178 -0
- data/lib/sensor_msgs/NavSatFix.rb +215 -0
- data/lib/sensor_msgs/NavSatStatus.rb +115 -0
- data/lib/sensor_msgs/PointCloud.rb +222 -0
- data/lib/sensor_msgs/PointCloud2.rb +226 -0
- data/lib/sensor_msgs/PointField.rb +119 -0
- data/lib/sensor_msgs/Range.rb +157 -0
- data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
- data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
- data/lib/sensor_msgs/TimeReference.rb +140 -0
- data/lib/std_msgs/Bool.rb +83 -0
- data/lib/std_msgs/Byte.rb +83 -0
- data/lib/std_msgs/ByteMultiArray.rb +165 -0
- data/lib/std_msgs/Char.rb +82 -0
- data/lib/std_msgs/ColorRGBA.rb +89 -0
- data/lib/std_msgs/Duration.rb +87 -0
- data/lib/std_msgs/Empty.rb +75 -0
- data/lib/std_msgs/Float32.rb +82 -0
- data/lib/std_msgs/Float32MultiArray.rb +165 -0
- data/lib/std_msgs/Float64.rb +82 -0
- data/lib/std_msgs/Float64MultiArray.rb +165 -0
- data/lib/std_msgs/Header.rb +112 -0
- data/lib/std_msgs/Int16.rb +83 -0
- data/lib/std_msgs/Int16MultiArray.rb +165 -0
- data/lib/std_msgs/Int32.rb +82 -0
- data/lib/std_msgs/Int32MultiArray.rb +165 -0
- data/lib/std_msgs/Int64.rb +82 -0
- data/lib/std_msgs/Int64MultiArray.rb +165 -0
- data/lib/std_msgs/Int8.rb +83 -0
- data/lib/std_msgs/Int8MultiArray.rb +165 -0
- data/lib/std_msgs/MultiArrayDimension.rb +95 -0
- data/lib/std_msgs/MultiArrayLayout.rb +141 -0
- data/lib/std_msgs/String.rb +87 -0
- data/lib/std_msgs/Time.rb +87 -0
- data/lib/std_msgs/UInt16.rb +83 -0
- data/lib/std_msgs/UInt16MultiArray.rb +165 -0
- data/lib/std_msgs/UInt32.rb +81 -0
- data/lib/std_msgs/UInt32MultiArray.rb +165 -0
- data/lib/std_msgs/UInt64.rb +82 -0
- data/lib/std_msgs/UInt64MultiArray.rb +165 -0
- data/lib/std_msgs/UInt8.rb +83 -0
- data/lib/std_msgs/UInt8MultiArray.rb +168 -0
- data/lib/std_srvs/Empty.rb +166 -0
- data/lib/stereo_msgs/DisparityImage.rb +261 -0
- data/lib/tf/FrameGraph.rb +179 -0
- data/lib/tf/tfMessage.rb +202 -0
- data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
- data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
- data/lib/visualization_msgs/ImageMarker.rb +238 -0
- data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
- data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
- data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
- data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
- data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
- data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
- data/lib/visualization_msgs/Marker.rb +318 -0
- data/lib/visualization_msgs/MarkerArray.rb +349 -0
- data/lib/visualization_msgs/MenuEntry.rb +168 -0
- metadata +123 -2
@@ -0,0 +1,91 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from Quaternion.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
|
5
|
+
module Geometry_msgs
|
6
|
+
|
7
|
+
class Quaternion <::ROS::Message
|
8
|
+
def self.md5sum
|
9
|
+
"a779879fadf0160734f906b8c19c7004"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.type
|
13
|
+
"geometry_msgs/Quaternion"
|
14
|
+
end
|
15
|
+
|
16
|
+
def has_header?
|
17
|
+
false
|
18
|
+
end
|
19
|
+
|
20
|
+
def message_definition
|
21
|
+
"# This represents an orientation in free space in quaternion form.
|
22
|
+
|
23
|
+
float64 x
|
24
|
+
float64 y
|
25
|
+
float64 z
|
26
|
+
float64 w
|
27
|
+
|
28
|
+
"
|
29
|
+
end
|
30
|
+
attr_accessor :x, :y, :z, :w
|
31
|
+
|
32
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
33
|
+
|
34
|
+
@@struct_L = ::ROS::Struct.new("L")
|
35
|
+
@@slot_types = ['float64','float64','float64','float64']
|
36
|
+
|
37
|
+
def initialize
|
38
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
39
|
+
# set to None will be assigned a default value. The recommend
|
40
|
+
# use is keyword arguments as this is more robust to future message
|
41
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
42
|
+
#
|
43
|
+
# The available fields are:
|
44
|
+
# x,y,z,w
|
45
|
+
#
|
46
|
+
# @param args: complete set of field values, in .msg order
|
47
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
48
|
+
# to set specific fields.
|
49
|
+
#
|
50
|
+
|
51
|
+
# message fields cannot be None, assign default values for those that are
|
52
|
+
@x = 0.0
|
53
|
+
@y = 0.0
|
54
|
+
@z = 0.0
|
55
|
+
@w = 0.0
|
56
|
+
end
|
57
|
+
|
58
|
+
def _get_types
|
59
|
+
# internal API method
|
60
|
+
return @slot_types
|
61
|
+
end
|
62
|
+
|
63
|
+
def serialize(buff)
|
64
|
+
# serialize message into buffer
|
65
|
+
# @param buff: buffer
|
66
|
+
# @type buff: StringIO
|
67
|
+
begin
|
68
|
+
buff.write(@@struct_d4.pack(@x, @y, @z, @w))
|
69
|
+
rescue => exception
|
70
|
+
raise "some erro in serialize: #{exception}"
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def deserialize(str)
|
76
|
+
# unpack serialized message in str into this message instance
|
77
|
+
# @param str: byte array of serialized message
|
78
|
+
# @type str: str
|
79
|
+
|
80
|
+
begin
|
81
|
+
end_point = 0
|
82
|
+
start = end_point
|
83
|
+
end_point += ROS::Struct::calc_size('d4')
|
84
|
+
(@x, @y, @z, @w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
85
|
+
return self
|
86
|
+
rescue => exception
|
87
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end # end of class
|
91
|
+
end # end of module
|
@@ -0,0 +1,136 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from QuaternionStamped.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "std_msgs/Header"
|
5
|
+
require "geometry_msgs/Quaternion"
|
6
|
+
|
7
|
+
module Geometry_msgs
|
8
|
+
|
9
|
+
class QuaternionStamped <::ROS::Message
|
10
|
+
def self.md5sum
|
11
|
+
"e57f1e547e0e1fd13504588ffc8334e2"
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.type
|
15
|
+
"geometry_msgs/QuaternionStamped"
|
16
|
+
end
|
17
|
+
|
18
|
+
def has_header?
|
19
|
+
true
|
20
|
+
end
|
21
|
+
|
22
|
+
def message_definition
|
23
|
+
"# This represents an orientation with reference coordinate frame and timestamp.
|
24
|
+
|
25
|
+
Header header
|
26
|
+
Quaternion quaternion
|
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/Quaternion
|
48
|
+
# This represents an orientation in free space in quaternion form.
|
49
|
+
|
50
|
+
float64 x
|
51
|
+
float64 y
|
52
|
+
float64 z
|
53
|
+
float64 w
|
54
|
+
|
55
|
+
"
|
56
|
+
end
|
57
|
+
attr_accessor :header, :quaternion
|
58
|
+
|
59
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
60
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
61
|
+
|
62
|
+
@@struct_L = ::ROS::Struct.new("L")
|
63
|
+
@@slot_types = ['Header','geometry_msgs/Quaternion']
|
64
|
+
|
65
|
+
def initialize
|
66
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
67
|
+
# set to None will be assigned a default value. The recommend
|
68
|
+
# use is keyword arguments as this is more robust to future message
|
69
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
70
|
+
#
|
71
|
+
# The available fields are:
|
72
|
+
# header,quaternion
|
73
|
+
#
|
74
|
+
# @param args: complete set of field values, in .msg order
|
75
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
76
|
+
# to set specific fields.
|
77
|
+
#
|
78
|
+
|
79
|
+
# message fields cannot be None, assign default values for those that are
|
80
|
+
@header = Std_msgs::Header.new
|
81
|
+
@quaternion = Geometry_msgs::Quaternion.new
|
82
|
+
end
|
83
|
+
|
84
|
+
def _get_types
|
85
|
+
# internal API method
|
86
|
+
return @slot_types
|
87
|
+
end
|
88
|
+
|
89
|
+
def serialize(buff)
|
90
|
+
# serialize message into buffer
|
91
|
+
# @param buff: buffer
|
92
|
+
# @type buff: StringIO
|
93
|
+
begin
|
94
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
95
|
+
_x = @header.frame_id
|
96
|
+
length = _x.length
|
97
|
+
buff.write([length, _x].pack("La#{length}"))
|
98
|
+
buff.write(@@struct_d4.pack(@quaternion.x, @quaternion.y, @quaternion.z, @quaternion.w))
|
99
|
+
rescue => exception
|
100
|
+
raise "some erro in serialize: #{exception}"
|
101
|
+
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def deserialize(str)
|
106
|
+
# unpack serialized message in str into this message instance
|
107
|
+
# @param str: byte array of serialized message
|
108
|
+
# @type str: str
|
109
|
+
|
110
|
+
begin
|
111
|
+
if @header == nil
|
112
|
+
@header = Std_msgs::Header.new
|
113
|
+
end
|
114
|
+
if @quaternion == nil
|
115
|
+
@quaternion = Geometry_msgs::Quaternion.new
|
116
|
+
end
|
117
|
+
end_point = 0
|
118
|
+
start = end_point
|
119
|
+
end_point += ROS::Struct::calc_size('L3')
|
120
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
121
|
+
start = end_point
|
122
|
+
end_point += 4
|
123
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
124
|
+
start = end_point
|
125
|
+
end_point += length
|
126
|
+
@header.frame_id = str[start..(end_point-1)]
|
127
|
+
start = end_point
|
128
|
+
end_point += ROS::Struct::calc_size('d4')
|
129
|
+
(@quaternion.x, @quaternion.y, @quaternion.z, @quaternion.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
130
|
+
return self
|
131
|
+
rescue => exception
|
132
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end # end of class
|
136
|
+
end # end of module
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from Transform.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "geometry_msgs/Quaternion"
|
5
|
+
require "geometry_msgs/Vector3"
|
6
|
+
|
7
|
+
module Geometry_msgs
|
8
|
+
|
9
|
+
class Transform <::ROS::Message
|
10
|
+
def self.md5sum
|
11
|
+
"ac9eff44abf714214112b05d54a3cf9b"
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.type
|
15
|
+
"geometry_msgs/Transform"
|
16
|
+
end
|
17
|
+
|
18
|
+
def has_header?
|
19
|
+
false
|
20
|
+
end
|
21
|
+
|
22
|
+
def message_definition
|
23
|
+
"# This represents the transform between two coordinate frames in free space.
|
24
|
+
|
25
|
+
Vector3 translation
|
26
|
+
Quaternion rotation
|
27
|
+
|
28
|
+
================================================================================
|
29
|
+
MSG: geometry_msgs/Vector3
|
30
|
+
# This represents a vector in free space.
|
31
|
+
|
32
|
+
float64 x
|
33
|
+
float64 y
|
34
|
+
float64 z
|
35
|
+
================================================================================
|
36
|
+
MSG: geometry_msgs/Quaternion
|
37
|
+
# This represents an orientation in free space in quaternion form.
|
38
|
+
|
39
|
+
float64 x
|
40
|
+
float64 y
|
41
|
+
float64 z
|
42
|
+
float64 w
|
43
|
+
|
44
|
+
"
|
45
|
+
end
|
46
|
+
attr_accessor :translation, :rotation
|
47
|
+
|
48
|
+
@@struct_d7 = ::ROS::Struct.new("d7")
|
49
|
+
|
50
|
+
@@struct_L = ::ROS::Struct.new("L")
|
51
|
+
@@slot_types = ['geometry_msgs/Vector3','geometry_msgs/Quaternion']
|
52
|
+
|
53
|
+
def initialize
|
54
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
55
|
+
# set to None will be assigned a default value. The recommend
|
56
|
+
# use is keyword arguments as this is more robust to future message
|
57
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
58
|
+
#
|
59
|
+
# The available fields are:
|
60
|
+
# translation,rotation
|
61
|
+
#
|
62
|
+
# @param args: complete set of field values, in .msg order
|
63
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
64
|
+
# to set specific fields.
|
65
|
+
#
|
66
|
+
|
67
|
+
# message fields cannot be None, assign default values for those that are
|
68
|
+
@translation = Geometry_msgs::Vector3.new
|
69
|
+
@rotation = Geometry_msgs::Quaternion.new
|
70
|
+
end
|
71
|
+
|
72
|
+
def _get_types
|
73
|
+
# internal API method
|
74
|
+
return @slot_types
|
75
|
+
end
|
76
|
+
|
77
|
+
def serialize(buff)
|
78
|
+
# serialize message into buffer
|
79
|
+
# @param buff: buffer
|
80
|
+
# @type buff: StringIO
|
81
|
+
begin
|
82
|
+
buff.write(@@struct_d7.pack(@translation.x, @translation.y, @translation.z, @rotation.x, @rotation.y, @rotation.z, @rotation.w))
|
83
|
+
rescue => exception
|
84
|
+
raise "some erro in serialize: #{exception}"
|
85
|
+
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def deserialize(str)
|
90
|
+
# unpack serialized message in str into this message instance
|
91
|
+
# @param str: byte array of serialized message
|
92
|
+
# @type str: str
|
93
|
+
|
94
|
+
begin
|
95
|
+
if @translation == nil
|
96
|
+
@translation = Geometry_msgs::Vector3.new
|
97
|
+
end
|
98
|
+
if @rotation == nil
|
99
|
+
@rotation = Geometry_msgs::Quaternion.new
|
100
|
+
end
|
101
|
+
end_point = 0
|
102
|
+
start = end_point
|
103
|
+
end_point += ROS::Struct::calc_size('d7')
|
104
|
+
(@translation.x, @translation.y, @translation.z, @rotation.x, @rotation.y, @rotation.z, @rotation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
|
105
|
+
return self
|
106
|
+
rescue => exception
|
107
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end # end of class
|
111
|
+
end # end of module
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from TransformStamped.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "std_msgs/Header"
|
5
|
+
require "geometry_msgs/Quaternion"
|
6
|
+
require "geometry_msgs/Vector3"
|
7
|
+
require "geometry_msgs/Transform"
|
8
|
+
|
9
|
+
module Geometry_msgs
|
10
|
+
|
11
|
+
class TransformStamped <::ROS::Message
|
12
|
+
def self.md5sum
|
13
|
+
"b5764a33bfeb3588febc2682852579b0"
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.type
|
17
|
+
"geometry_msgs/TransformStamped"
|
18
|
+
end
|
19
|
+
|
20
|
+
def has_header?
|
21
|
+
true
|
22
|
+
end
|
23
|
+
|
24
|
+
def message_definition
|
25
|
+
"# This expresses a transform from coordinate frame header.frame_id
|
26
|
+
# to the coordinate frame child_frame_id
|
27
|
+
#
|
28
|
+
# This message is mostly used by the
|
29
|
+
# <a href=\"http://www.ros.org/wiki/tf\">tf</a> package.
|
30
|
+
# See it's documentation for more information.
|
31
|
+
|
32
|
+
Header header
|
33
|
+
string child_frame_id # the frame id of the child frame
|
34
|
+
Transform transform
|
35
|
+
|
36
|
+
================================================================================
|
37
|
+
MSG: std_msgs/Header
|
38
|
+
# Standard metadata for higher-level stamped data types.
|
39
|
+
# This is generally used to communicate timestamped data
|
40
|
+
# in a particular coordinate frame.
|
41
|
+
#
|
42
|
+
# sequence ID: consecutively increasing ID
|
43
|
+
uint32 seq
|
44
|
+
#Two-integer timestamp that is expressed as:
|
45
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
46
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
47
|
+
# time-handling sugar is provided by the client library
|
48
|
+
time stamp
|
49
|
+
#Frame this data is associated with
|
50
|
+
# 0: no frame
|
51
|
+
# 1: global frame
|
52
|
+
string frame_id
|
53
|
+
|
54
|
+
================================================================================
|
55
|
+
MSG: geometry_msgs/Transform
|
56
|
+
# This represents the transform between two coordinate frames in free space.
|
57
|
+
|
58
|
+
Vector3 translation
|
59
|
+
Quaternion rotation
|
60
|
+
|
61
|
+
================================================================================
|
62
|
+
MSG: geometry_msgs/Vector3
|
63
|
+
# This represents a vector in free space.
|
64
|
+
|
65
|
+
float64 x
|
66
|
+
float64 y
|
67
|
+
float64 z
|
68
|
+
================================================================================
|
69
|
+
MSG: geometry_msgs/Quaternion
|
70
|
+
# This represents an orientation in free space in quaternion form.
|
71
|
+
|
72
|
+
float64 x
|
73
|
+
float64 y
|
74
|
+
float64 z
|
75
|
+
float64 w
|
76
|
+
|
77
|
+
"
|
78
|
+
end
|
79
|
+
attr_accessor :header, :child_frame_id, :transform
|
80
|
+
|
81
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
82
|
+
@@struct_d7 = ::ROS::Struct.new("d7")
|
83
|
+
|
84
|
+
@@struct_L = ::ROS::Struct.new("L")
|
85
|
+
@@slot_types = ['Header','string','geometry_msgs/Transform']
|
86
|
+
|
87
|
+
def initialize
|
88
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
89
|
+
# set to None will be assigned a default value. The recommend
|
90
|
+
# use is keyword arguments as this is more robust to future message
|
91
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
92
|
+
#
|
93
|
+
# The available fields are:
|
94
|
+
# header,child_frame_id,transform
|
95
|
+
#
|
96
|
+
# @param args: complete set of field values, in .msg order
|
97
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
98
|
+
# to set specific fields.
|
99
|
+
#
|
100
|
+
|
101
|
+
# message fields cannot be None, assign default values for those that are
|
102
|
+
@header = Std_msgs::Header.new
|
103
|
+
@child_frame_id = ''
|
104
|
+
@transform = Geometry_msgs::Transform.new
|
105
|
+
end
|
106
|
+
|
107
|
+
def _get_types
|
108
|
+
# internal API method
|
109
|
+
return @slot_types
|
110
|
+
end
|
111
|
+
|
112
|
+
def serialize(buff)
|
113
|
+
# serialize message into buffer
|
114
|
+
# @param buff: buffer
|
115
|
+
# @type buff: StringIO
|
116
|
+
begin
|
117
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
118
|
+
_x = @header.frame_id
|
119
|
+
length = _x.length
|
120
|
+
buff.write([length, _x].pack("La#{length}"))
|
121
|
+
_x = @child_frame_id
|
122
|
+
length = _x.length
|
123
|
+
buff.write([length, _x].pack("La#{length}"))
|
124
|
+
buff.write(@@struct_d7.pack(@transform.translation.x, @transform.translation.y, @transform.translation.z, @transform.rotation.x, @transform.rotation.y, @transform.rotation.z, @transform.rotation.w))
|
125
|
+
rescue => exception
|
126
|
+
raise "some erro in serialize: #{exception}"
|
127
|
+
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
def deserialize(str)
|
132
|
+
# unpack serialized message in str into this message instance
|
133
|
+
# @param str: byte array of serialized message
|
134
|
+
# @type str: str
|
135
|
+
|
136
|
+
begin
|
137
|
+
if @header == nil
|
138
|
+
@header = Std_msgs::Header.new
|
139
|
+
end
|
140
|
+
if @transform == nil
|
141
|
+
@transform = Geometry_msgs::Transform.new
|
142
|
+
end
|
143
|
+
end_point = 0
|
144
|
+
start = end_point
|
145
|
+
end_point += ROS::Struct::calc_size('L3')
|
146
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
147
|
+
start = end_point
|
148
|
+
end_point += 4
|
149
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
150
|
+
start = end_point
|
151
|
+
end_point += length
|
152
|
+
@header.frame_id = str[start..(end_point-1)]
|
153
|
+
start = end_point
|
154
|
+
end_point += 4
|
155
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
156
|
+
start = end_point
|
157
|
+
end_point += length
|
158
|
+
@child_frame_id = str[start..(end_point-1)]
|
159
|
+
start = end_point
|
160
|
+
end_point += ROS::Struct::calc_size('d7')
|
161
|
+
(@transform.translation.x, @transform.translation.y, @transform.translation.z, @transform.rotation.x, @transform.rotation.y, @transform.rotation.z, @transform.rotation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
|
162
|
+
return self
|
163
|
+
rescue => exception
|
164
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end # end of class
|
168
|
+
end # end of module
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from Twist.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "geometry_msgs/Vector3"
|
5
|
+
|
6
|
+
module Geometry_msgs
|
7
|
+
|
8
|
+
class Twist <::ROS::Message
|
9
|
+
def self.md5sum
|
10
|
+
"9f195f881246fdfa2798d1d3eebca84a"
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.type
|
14
|
+
"geometry_msgs/Twist"
|
15
|
+
end
|
16
|
+
|
17
|
+
def has_header?
|
18
|
+
false
|
19
|
+
end
|
20
|
+
|
21
|
+
def message_definition
|
22
|
+
"# This expresses velocity in free space broken into it's linear and angular parts.
|
23
|
+
Vector3 linear
|
24
|
+
Vector3 angular
|
25
|
+
|
26
|
+
================================================================================
|
27
|
+
MSG: geometry_msgs/Vector3
|
28
|
+
# This represents a vector in free space.
|
29
|
+
|
30
|
+
float64 x
|
31
|
+
float64 y
|
32
|
+
float64 z
|
33
|
+
"
|
34
|
+
end
|
35
|
+
attr_accessor :linear, :angular
|
36
|
+
|
37
|
+
@@struct_d6 = ::ROS::Struct.new("d6")
|
38
|
+
|
39
|
+
@@struct_L = ::ROS::Struct.new("L")
|
40
|
+
@@slot_types = ['geometry_msgs/Vector3','geometry_msgs/Vector3']
|
41
|
+
|
42
|
+
def initialize
|
43
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
44
|
+
# set to None will be assigned a default value. The recommend
|
45
|
+
# use is keyword arguments as this is more robust to future message
|
46
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
47
|
+
#
|
48
|
+
# The available fields are:
|
49
|
+
# linear,angular
|
50
|
+
#
|
51
|
+
# @param args: complete set of field values, in .msg order
|
52
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
53
|
+
# to set specific fields.
|
54
|
+
#
|
55
|
+
|
56
|
+
# message fields cannot be None, assign default values for those that are
|
57
|
+
@linear = Geometry_msgs::Vector3.new
|
58
|
+
@angular = Geometry_msgs::Vector3.new
|
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_d6.pack(@linear.x, @linear.y, @linear.z, @angular.x, @angular.y, @angular.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
|
+
if @linear == nil
|
85
|
+
@linear = Geometry_msgs::Vector3.new
|
86
|
+
end
|
87
|
+
if @angular == nil
|
88
|
+
@angular = Geometry_msgs::Vector3.new
|
89
|
+
end
|
90
|
+
end_point = 0
|
91
|
+
start = end_point
|
92
|
+
end_point += ROS::Struct::calc_size('d6')
|
93
|
+
(@linear.x, @linear.y, @linear.z, @angular.x, @angular.y, @angular.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
|
94
|
+
return self
|
95
|
+
rescue => exception
|
96
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end # end of class
|
100
|
+
end # end of module
|