rosruby_msgs 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/{actionlib_msgs → lib/actionlib_msgs}/GoalID.rb +0 -0
- data/{actionlib_msgs → lib/actionlib_msgs}/GoalStatus.rb +0 -0
- data/{actionlib_msgs → lib/actionlib_msgs}/GoalStatusArray.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingAction.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionFeedback.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionGoal.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionResult.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingFeedback.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingGoal.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingResult.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciAction.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionFeedback.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionGoal.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionResult.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciFeedback.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciGoal.rb +0 -0
- data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciResult.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Point.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Point32.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/PointStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Polygon.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/PolygonStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Pose.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Pose2D.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/PoseArray.rb +8 -8
- data/{geometry_msgs → lib/geometry_msgs}/PoseStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/PoseWithCovariance.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/PoseWithCovarianceStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Quaternion.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/QuaternionStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Transform.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/TransformStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Twist.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/TwistStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/TwistWithCovariance.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/TwistWithCovarianceStamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Vector3.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Vector3Stamped.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/Wrench.rb +0 -0
- data/{geometry_msgs → lib/geometry_msgs}/WrenchStamped.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/GetMap.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/GetPlan.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/GridCells.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/MapMetaData.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/OccupancyGrid.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/Odometry.rb +0 -0
- data/{nav_msgs → lib/nav_msgs}/Path.rb +0 -0
- data/lib/pr2_controllers_msgs/JointControllerState.rb +184 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryAction.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionFeedback.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionResult.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryControllerState.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryFeedback.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryResult.rb +0 -0
- data/lib/pr2_controllers_msgs/PointHeadAction.rb +370 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionFeedback.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionResult.rb +0 -0
- data/lib/pr2_controllers_msgs/PointHeadFeedback.rb +78 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadGoal.rb +0 -0
- data/lib/pr2_controllers_msgs/PointHeadResult.rb +66 -0
- data/lib/pr2_controllers_msgs/Pr2GripperCommand.rb +84 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandAction.rb +0 -0
- data/lib/pr2_controllers_msgs/Pr2GripperCommandActionFeedback.rb +217 -0
- data/lib/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +176 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandActionResult.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandFeedback.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandResult.rb +0 -0
- data/lib/pr2_controllers_msgs/QueryCalibrationState.rb +159 -0
- data/lib/pr2_controllers_msgs/QueryTrajectoryState.rb +243 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionAction.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionFeedback.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionResult.rb +0 -0
- data/lib/pr2_controllers_msgs/SingleJointPositionFeedback.rb +136 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionGoal.rb +0 -0
- data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionResult.rb +0 -0
- data/{roscpp → lib/roscpp}/Empty.rb +0 -0
- data/{roscpp → lib/roscpp}/GetLoggers.rb +0 -0
- data/{roscpp → lib/roscpp}/Logger.rb +0 -0
- data/{roscpp → lib/roscpp}/SetLoggerLevel.rb +0 -0
- data/{roscpp_tutorials → lib/roscpp_tutorials}/TwoInts.rb +0 -0
- data/{rosgraph_msgs → lib/rosgraph_msgs}/Clock.rb +0 -0
- data/{rosgraph_msgs → lib/rosgraph_msgs}/Log.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/CameraInfo.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/ChannelFloat32.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/CompressedImage.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/Image.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/Imu.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/JointState.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/Joy.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/JoyFeedback.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/JoyFeedbackArray.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/LaserScan.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/NavSatFix.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/NavSatStatus.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/PointCloud.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/PointCloud2.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/PointField.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/Range.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/RegionOfInterest.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/SetCameraInfo.rb +0 -0
- data/{sensor_msgs → lib/sensor_msgs}/TimeReference.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Bool.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Byte.rb +0 -0
- data/{std_msgs → lib/std_msgs}/ByteMultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Char.rb +0 -0
- data/{std_msgs → lib/std_msgs}/ColorRGBA.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Duration.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Empty.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Float32.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Float32MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Float64.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Float64MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Header.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int16.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int16MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int32.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int32MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int64.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int64MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int8.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Int8MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/MultiArrayDimension.rb +0 -0
- data/{std_msgs → lib/std_msgs}/MultiArrayLayout.rb +0 -0
- data/{std_msgs → lib/std_msgs}/String.rb +0 -0
- data/{std_msgs → lib/std_msgs}/Time.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt16.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt16MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt32.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt32MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt64.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt64MultiArray.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt8.rb +0 -0
- data/{std_msgs → lib/std_msgs}/UInt8MultiArray.rb +0 -0
- data/{std_srvs → lib/std_srvs}/Empty.rb +0 -0
- data/{stereo_msgs → lib/stereo_msgs}/DisparityImage.rb +0 -0
- data/{tf → lib/tf}/FrameGraph.rb +0 -0
- data/{tf → lib/tf}/tfMessage.rb +0 -0
- data/{trajectory_msgs → lib/trajectory_msgs}/JointTrajectory.rb +0 -0
- data/{trajectory_msgs → lib/trajectory_msgs}/JointTrajectoryPoint.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/ImageMarker.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarker.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerControl.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerFeedback.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerInit.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerPose.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerUpdate.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/Marker.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/MarkerArray.rb +0 -0
- data/{visualization_msgs → lib/visualization_msgs}/MenuEntry.rb +0 -0
- metadata +155 -146
- data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
@@ -0,0 +1,176 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from Pr2GripperCommandActionGoal.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "std_msgs/Header"
|
5
|
+
require "actionlib_msgs/GoalID"
|
6
|
+
require "pr2_controllers_msgs/Pr2GripperCommandGoal"
|
7
|
+
require "pr2_controllers_msgs/Pr2GripperCommand"
|
8
|
+
require "ros/time"
|
9
|
+
|
10
|
+
module Pr2_controllers_msgs
|
11
|
+
|
12
|
+
class Pr2GripperCommandActionGoal <::ROS::Message
|
13
|
+
def self.md5sum
|
14
|
+
"aa581f648a35ed681db2ec0bf7a82bea"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.type
|
18
|
+
"pr2_controllers_msgs/Pr2GripperCommandActionGoal"
|
19
|
+
end
|
20
|
+
|
21
|
+
def has_header?
|
22
|
+
true
|
23
|
+
end
|
24
|
+
|
25
|
+
def message_definition
|
26
|
+
"# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
27
|
+
|
28
|
+
Header header
|
29
|
+
actionlib_msgs/GoalID goal_id
|
30
|
+
Pr2GripperCommandGoal goal
|
31
|
+
|
32
|
+
================================================================================
|
33
|
+
MSG: std_msgs/Header
|
34
|
+
# Standard metadata for higher-level stamped data types.
|
35
|
+
# This is generally used to communicate timestamped data
|
36
|
+
# in a particular coordinate frame.
|
37
|
+
#
|
38
|
+
# sequence ID: consecutively increasing ID
|
39
|
+
uint32 seq
|
40
|
+
#Two-integer timestamp that is expressed as:
|
41
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
42
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
43
|
+
# time-handling sugar is provided by the client library
|
44
|
+
time stamp
|
45
|
+
#Frame this data is associated with
|
46
|
+
# 0: no frame
|
47
|
+
# 1: global frame
|
48
|
+
string frame_id
|
49
|
+
|
50
|
+
================================================================================
|
51
|
+
MSG: actionlib_msgs/GoalID
|
52
|
+
# The stamp should store the time at which this goal was requested.
|
53
|
+
# It is used by an action server when it tries to preempt all
|
54
|
+
# goals that were requested before a certain time
|
55
|
+
time stamp
|
56
|
+
|
57
|
+
# The id provides a way to associate feedback and
|
58
|
+
# result message with specific goal requests. The id
|
59
|
+
# specified must be unique.
|
60
|
+
string id
|
61
|
+
|
62
|
+
|
63
|
+
================================================================================
|
64
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandGoal
|
65
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
66
|
+
pr2_controllers_msgs/Pr2GripperCommand command
|
67
|
+
|
68
|
+
================================================================================
|
69
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommand
|
70
|
+
float64 position
|
71
|
+
float64 max_effort
|
72
|
+
|
73
|
+
"
|
74
|
+
end
|
75
|
+
attr_accessor :header, :goal_id, :goal
|
76
|
+
|
77
|
+
@@struct_d2 = ::ROS::Struct.new("d2")
|
78
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
79
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
80
|
+
|
81
|
+
@@struct_L = ::ROS::Struct.new("L")
|
82
|
+
@@slot_types = ['Header','actionlib_msgs/GoalID','pr2_controllers_msgs/Pr2GripperCommandGoal']
|
83
|
+
|
84
|
+
# Constructor. You can set the default values using keyword operators.
|
85
|
+
#
|
86
|
+
# @param [Hash] args keyword for initializing values
|
87
|
+
# @option args [Header] :header initialize value
|
88
|
+
# @option args [actionlib_msgs/GoalID] :goal_id initialize value
|
89
|
+
# @option args [pr2_controllers_msgs/Pr2GripperCommandGoal] :goal initialize value
|
90
|
+
def initialize(args={})
|
91
|
+
# message fields cannot be None, assign default values for those that are
|
92
|
+
if args[:header]
|
93
|
+
@header = args[:header]
|
94
|
+
else
|
95
|
+
@header = Std_msgs::Header.new
|
96
|
+
end
|
97
|
+
if args[:goal_id]
|
98
|
+
@goal_id = args[:goal_id]
|
99
|
+
else
|
100
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
101
|
+
end
|
102
|
+
if args[:goal]
|
103
|
+
@goal = args[:goal]
|
104
|
+
else
|
105
|
+
@goal = Pr2_controllers_msgs::Pr2GripperCommandGoal.new
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# internal API method
|
110
|
+
# @return [String] Message type string.
|
111
|
+
def _get_types
|
112
|
+
@slot_types
|
113
|
+
end
|
114
|
+
|
115
|
+
# serialize message into buffer
|
116
|
+
# @param [IO] buff buffer
|
117
|
+
def serialize(buff)
|
118
|
+
begin
|
119
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
120
|
+
_x = @header.frame_id
|
121
|
+
length = _x.length
|
122
|
+
buff.write([length, _x].pack("La#{length}"))
|
123
|
+
buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
|
124
|
+
_x = @goal_id.id
|
125
|
+
length = _x.length
|
126
|
+
buff.write([length, _x].pack("La#{length}"))
|
127
|
+
buff.write(@@struct_d2.pack(@goal.command.position, @goal.command.max_effort))
|
128
|
+
rescue => exception
|
129
|
+
raise "some erro in serialize: #{exception}"
|
130
|
+
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# unpack serialized message in str into this message instance
|
135
|
+
# @param [String] str: byte array of serialized message
|
136
|
+
def deserialize(str)
|
137
|
+
|
138
|
+
begin
|
139
|
+
if @header == nil
|
140
|
+
@header = Std_msgs::Header.new
|
141
|
+
end
|
142
|
+
if @goal_id == nil
|
143
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
144
|
+
end
|
145
|
+
if @goal == nil
|
146
|
+
@goal = Pr2_controllers_msgs::Pr2GripperCommandGoal.new
|
147
|
+
end
|
148
|
+
end_point = 0
|
149
|
+
start = end_point
|
150
|
+
end_point += ROS::Struct::calc_size('L3')
|
151
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
152
|
+
start = end_point
|
153
|
+
end_point += 4
|
154
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
155
|
+
start = end_point
|
156
|
+
end_point += length
|
157
|
+
@header.frame_id = str[start..(end_point-1)]
|
158
|
+
start = end_point
|
159
|
+
end_point += ROS::Struct::calc_size('L2')
|
160
|
+
(@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
161
|
+
start = end_point
|
162
|
+
end_point += 4
|
163
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
164
|
+
start = end_point
|
165
|
+
end_point += length
|
166
|
+
@goal_id.id = str[start..(end_point-1)]
|
167
|
+
start = end_point
|
168
|
+
end_point += ROS::Struct::calc_size('d2')
|
169
|
+
(@goal.command.position, @goal.command.max_effort,) = @@struct_d2.unpack(str[start..(end_point-1)])
|
170
|
+
return self
|
171
|
+
rescue => exception
|
172
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end # end of class
|
176
|
+
end # end of module
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,159 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from QueryCalibrationStateRequest.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
|
5
|
+
module Pr2_controllers_msgs
|
6
|
+
|
7
|
+
class QueryCalibrationStateRequest <::ROS::Message
|
8
|
+
def self.md5sum
|
9
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.type
|
13
|
+
"pr2_controllers_msgs/QueryCalibrationStateRequest"
|
14
|
+
end
|
15
|
+
|
16
|
+
def has_header?
|
17
|
+
false
|
18
|
+
end
|
19
|
+
|
20
|
+
def message_definition
|
21
|
+
"
|
22
|
+
"
|
23
|
+
end
|
24
|
+
attr_accessor
|
25
|
+
|
26
|
+
|
27
|
+
@@struct_L = ::ROS::Struct.new("L")
|
28
|
+
@@slot_types = []
|
29
|
+
|
30
|
+
# Constructor. You can set the default values using keyword operators.
|
31
|
+
#
|
32
|
+
# @param [Hash] args keyword for initializing values
|
33
|
+
def initialize(args={})
|
34
|
+
end
|
35
|
+
|
36
|
+
# internal API method
|
37
|
+
# @return [String] Message type string.
|
38
|
+
def _get_types
|
39
|
+
@slot_types
|
40
|
+
end
|
41
|
+
|
42
|
+
# serialize message into buffer
|
43
|
+
# @param [IO] buff buffer
|
44
|
+
def serialize(buff)
|
45
|
+
begin
|
46
|
+
pass
|
47
|
+
rescue => exception
|
48
|
+
raise "some erro in serialize: #{exception}"
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# unpack serialized message in str into this message instance
|
54
|
+
# @param [String] str: byte array of serialized message
|
55
|
+
def deserialize(str)
|
56
|
+
|
57
|
+
begin
|
58
|
+
end_point = 0
|
59
|
+
return self
|
60
|
+
rescue => exception
|
61
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end # end of class
|
65
|
+
end # end of module
|
66
|
+
# autogenerated by genmsg_ruby from QueryCalibrationStateResponse.msg. Do not edit.
|
67
|
+
require 'ros/message'
|
68
|
+
|
69
|
+
|
70
|
+
module Pr2_controllers_msgs
|
71
|
+
|
72
|
+
class QueryCalibrationStateResponse <::ROS::Message
|
73
|
+
def self.md5sum
|
74
|
+
"28af3beedcb84986b8e470dc5470507d"
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.type
|
78
|
+
"pr2_controllers_msgs/QueryCalibrationStateResponse"
|
79
|
+
end
|
80
|
+
|
81
|
+
def has_header?
|
82
|
+
false
|
83
|
+
end
|
84
|
+
|
85
|
+
def message_definition
|
86
|
+
"bool is_calibrated
|
87
|
+
|
88
|
+
"
|
89
|
+
end
|
90
|
+
attr_accessor :is_calibrated
|
91
|
+
|
92
|
+
@@struct_C = ::ROS::Struct.new("C")
|
93
|
+
|
94
|
+
@@struct_L = ::ROS::Struct.new("L")
|
95
|
+
@@slot_types = ['bool']
|
96
|
+
|
97
|
+
# Constructor. You can set the default values using keyword operators.
|
98
|
+
#
|
99
|
+
# @param [Hash] args keyword for initializing values
|
100
|
+
# @option args [bool] :is_calibrated initialize value
|
101
|
+
def initialize(args={})
|
102
|
+
# message fields cannot be None, assign default values for those that are
|
103
|
+
if args[:is_calibrated]
|
104
|
+
@is_calibrated = args[:is_calibrated]
|
105
|
+
else
|
106
|
+
@is_calibrated = false
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# internal API method
|
111
|
+
# @return [String] Message type string.
|
112
|
+
def _get_types
|
113
|
+
@slot_types
|
114
|
+
end
|
115
|
+
|
116
|
+
# serialize message into buffer
|
117
|
+
# @param [IO] buff buffer
|
118
|
+
def serialize(buff)
|
119
|
+
begin
|
120
|
+
buff.write(@@struct_C.pack(@is_calibrated))
|
121
|
+
rescue => exception
|
122
|
+
raise "some erro in serialize: #{exception}"
|
123
|
+
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# unpack serialized message in str into this message instance
|
128
|
+
# @param [String] str: byte array of serialized message
|
129
|
+
def deserialize(str)
|
130
|
+
|
131
|
+
begin
|
132
|
+
end_point = 0
|
133
|
+
start = end_point
|
134
|
+
end_point += ROS::Struct::calc_size('C')
|
135
|
+
(@is_calibrated,) = @@struct_C.unpack(str[start..(end_point-1)])
|
136
|
+
@is_calibrated = bool(@is_calibrated)
|
137
|
+
return self
|
138
|
+
rescue => exception
|
139
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end # end of class
|
143
|
+
end # end of module
|
144
|
+
module Pr2_controllers_msgs
|
145
|
+
class QueryCalibrationState
|
146
|
+
def self.type
|
147
|
+
'pr2_controllers_msgs/QueryCalibrationState'
|
148
|
+
end
|
149
|
+
def self.md5sum
|
150
|
+
'28af3beedcb84986b8e470dc5470507d'
|
151
|
+
end
|
152
|
+
def self.request_class
|
153
|
+
QueryCalibrationStateRequest
|
154
|
+
end
|
155
|
+
def self.response_class
|
156
|
+
QueryCalibrationStateResponse
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,243 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from QueryTrajectoryStateRequest.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "ros/time"
|
5
|
+
|
6
|
+
module Pr2_controllers_msgs
|
7
|
+
|
8
|
+
class QueryTrajectoryStateRequest <::ROS::Message
|
9
|
+
def self.md5sum
|
10
|
+
"556a4fb76023a469987922359d08a844"
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.type
|
14
|
+
"pr2_controllers_msgs/QueryTrajectoryStateRequest"
|
15
|
+
end
|
16
|
+
|
17
|
+
def has_header?
|
18
|
+
false
|
19
|
+
end
|
20
|
+
|
21
|
+
def message_definition
|
22
|
+
"time time
|
23
|
+
|
24
|
+
"
|
25
|
+
end
|
26
|
+
attr_accessor :time
|
27
|
+
|
28
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
29
|
+
|
30
|
+
@@struct_L = ::ROS::Struct.new("L")
|
31
|
+
@@slot_types = ['time']
|
32
|
+
|
33
|
+
# Constructor. You can set the default values using keyword operators.
|
34
|
+
#
|
35
|
+
# @param [Hash] args keyword for initializing values
|
36
|
+
# @option args [time] :time initialize value
|
37
|
+
def initialize(args={})
|
38
|
+
# message fields cannot be None, assign default values for those that are
|
39
|
+
if args[:time]
|
40
|
+
@time = args[:time]
|
41
|
+
else
|
42
|
+
@time = ROS::Time.new
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# internal API method
|
47
|
+
# @return [String] Message type string.
|
48
|
+
def _get_types
|
49
|
+
@slot_types
|
50
|
+
end
|
51
|
+
|
52
|
+
# serialize message into buffer
|
53
|
+
# @param [IO] buff buffer
|
54
|
+
def serialize(buff)
|
55
|
+
begin
|
56
|
+
buff.write(@@struct_L2.pack(@time.secs, @time.nsecs))
|
57
|
+
rescue => exception
|
58
|
+
raise "some erro in serialize: #{exception}"
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unpack serialized message in str into this message instance
|
64
|
+
# @param [String] str: byte array of serialized message
|
65
|
+
def deserialize(str)
|
66
|
+
|
67
|
+
begin
|
68
|
+
if @time == nil
|
69
|
+
@time = ROS::Time.new
|
70
|
+
end
|
71
|
+
end_point = 0
|
72
|
+
start = end_point
|
73
|
+
end_point += ROS::Struct::calc_size('L2')
|
74
|
+
(@time.secs, @time.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
75
|
+
return self
|
76
|
+
rescue => exception
|
77
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end # end of class
|
81
|
+
end # end of module
|
82
|
+
# autogenerated by genmsg_ruby from QueryTrajectoryStateResponse.msg. Do not edit.
|
83
|
+
require 'ros/message'
|
84
|
+
|
85
|
+
|
86
|
+
module Pr2_controllers_msgs
|
87
|
+
|
88
|
+
class QueryTrajectoryStateResponse <::ROS::Message
|
89
|
+
def self.md5sum
|
90
|
+
"1f1a6554ad060f44d013e71868403c1a"
|
91
|
+
end
|
92
|
+
|
93
|
+
def self.type
|
94
|
+
"pr2_controllers_msgs/QueryTrajectoryStateResponse"
|
95
|
+
end
|
96
|
+
|
97
|
+
def has_header?
|
98
|
+
false
|
99
|
+
end
|
100
|
+
|
101
|
+
def message_definition
|
102
|
+
"string[] name
|
103
|
+
float64[] position
|
104
|
+
float64[] velocity
|
105
|
+
float64[] acceleration
|
106
|
+
|
107
|
+
|
108
|
+
"
|
109
|
+
end
|
110
|
+
attr_accessor :name, :position, :velocity, :acceleration
|
111
|
+
|
112
|
+
|
113
|
+
@@struct_L = ::ROS::Struct.new("L")
|
114
|
+
@@slot_types = ['string[]','float64[]','float64[]','float64[]']
|
115
|
+
|
116
|
+
# Constructor. You can set the default values using keyword operators.
|
117
|
+
#
|
118
|
+
# @param [Hash] args keyword for initializing values
|
119
|
+
# @option args [string[]] :name initialize value
|
120
|
+
# @option args [float64[]] :position initialize value
|
121
|
+
# @option args [float64[]] :velocity initialize value
|
122
|
+
# @option args [float64[]] :acceleration initialize value
|
123
|
+
def initialize(args={})
|
124
|
+
# message fields cannot be None, assign default values for those that are
|
125
|
+
if args[:name]
|
126
|
+
@name = args[:name]
|
127
|
+
else
|
128
|
+
@name = []
|
129
|
+
end
|
130
|
+
if args[:position]
|
131
|
+
@position = args[:position]
|
132
|
+
else
|
133
|
+
@position = []
|
134
|
+
end
|
135
|
+
if args[:velocity]
|
136
|
+
@velocity = args[:velocity]
|
137
|
+
else
|
138
|
+
@velocity = []
|
139
|
+
end
|
140
|
+
if args[:acceleration]
|
141
|
+
@acceleration = args[:acceleration]
|
142
|
+
else
|
143
|
+
@acceleration = []
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# internal API method
|
148
|
+
# @return [String] Message type string.
|
149
|
+
def _get_types
|
150
|
+
@slot_types
|
151
|
+
end
|
152
|
+
|
153
|
+
# serialize message into buffer
|
154
|
+
# @param [IO] buff buffer
|
155
|
+
def serialize(buff)
|
156
|
+
begin
|
157
|
+
length = @name.length
|
158
|
+
buff.write(@@struct_L.pack(length))
|
159
|
+
for val1 in @name
|
160
|
+
length = val1.length
|
161
|
+
buff.write([length, val1].pack("La#{length}"))
|
162
|
+
end
|
163
|
+
length = @position.length
|
164
|
+
buff.write(@@struct_L.pack(length))
|
165
|
+
pattern = "d#{length}"
|
166
|
+
buff.write(*@position.pack(pattern))
|
167
|
+
length = @velocity.length
|
168
|
+
buff.write(@@struct_L.pack(length))
|
169
|
+
pattern = "d#{length}"
|
170
|
+
buff.write(*@velocity.pack(pattern))
|
171
|
+
length = @acceleration.length
|
172
|
+
buff.write(@@struct_L.pack(length))
|
173
|
+
pattern = "d#{length}"
|
174
|
+
buff.write(*@acceleration.pack(pattern))
|
175
|
+
rescue => exception
|
176
|
+
raise "some erro in serialize: #{exception}"
|
177
|
+
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# unpack serialized message in str into this message instance
|
182
|
+
# @param [String] str: byte array of serialized message
|
183
|
+
def deserialize(str)
|
184
|
+
|
185
|
+
begin
|
186
|
+
end_point = 0
|
187
|
+
start = end_point
|
188
|
+
end_point += 4
|
189
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
190
|
+
@name = []
|
191
|
+
length.times do
|
192
|
+
start = end_point
|
193
|
+
end_point += 4
|
194
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
195
|
+
start = end_point
|
196
|
+
end_point += length
|
197
|
+
val1 = str[start..(end_point-1)]
|
198
|
+
@name.push(val1)
|
199
|
+
end
|
200
|
+
start = end_point
|
201
|
+
end_point += 4
|
202
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
203
|
+
pattern = "d#{length}"
|
204
|
+
start = end_point
|
205
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
206
|
+
@position = str[start..(end_point-1)].unpack(pattern)
|
207
|
+
start = end_point
|
208
|
+
end_point += 4
|
209
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
210
|
+
pattern = "d#{length}"
|
211
|
+
start = end_point
|
212
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
213
|
+
@velocity = str[start..(end_point-1)].unpack(pattern)
|
214
|
+
start = end_point
|
215
|
+
end_point += 4
|
216
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
217
|
+
pattern = "d#{length}"
|
218
|
+
start = end_point
|
219
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
220
|
+
@acceleration = str[start..(end_point-1)].unpack(pattern)
|
221
|
+
return self
|
222
|
+
rescue => exception
|
223
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end # end of class
|
227
|
+
end # end of module
|
228
|
+
module Pr2_controllers_msgs
|
229
|
+
class QueryTrajectoryState
|
230
|
+
def self.type
|
231
|
+
'pr2_controllers_msgs/QueryTrajectoryState'
|
232
|
+
end
|
233
|
+
def self.md5sum
|
234
|
+
'ec93cdecbd8062d761aa52b7c90cd44b'
|
235
|
+
end
|
236
|
+
def self.request_class
|
237
|
+
QueryTrajectoryStateRequest
|
238
|
+
end
|
239
|
+
def self.response_class
|
240
|
+
QueryTrajectoryStateResponse
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|