pick.proto (v2.99.9)
The pick.proto file exactly as Pick v2.99.9 released it. It has no imports, so this one file is all you need to generate a client. See the v2.99.9 reference for what each RPC does.
syntax = "proto3";
package fizyr.pick;
service Pick {
// Ping the pick server to see if communication is working properly.
rpc Ping (Empty) returns (Empty);
// Get the version of the pick interface being used by this server.
rpc GetApiVersion (GetApiVersionRequest) returns (GetApiVersionResponse);
// Get more detailed information about the interface and software (including the version numbers).
rpc GetServerInfo (GetServerInfoRequest) returns (GetServerInfoResponse);
// Start a new pick cycle.
//
// The server will trigger the camera system attached to the software and process the content of the image to detect pickable objects,
// filter them, and compute pick poses for each detection.
//
// Various results and properties of the pick cycle are accessible via the other services of this interface.
//
// This service will return immediately once the pick cycle has been created.
// It does not wait for camera acquisition to start or for processing to finish.
//
// You should ensure that the robot is not in view of the camera when you call this service,
// and that it remains out of view until the pick cycle reaches the [`CycleStatus::Processing`] state.
// You can use the [`get_cycle_status`] service to wait for this event.
rpc StartPickCycle (StartPickCycleRequest) returns (StartPickCycleResponse);
// Close a pick cycle.
//
// This call will stop processing and communication for this cycle.
// Future requests for this pick cycle are invalid and will return an error.
//
// You must close a pick cycle when done to free up resources on the server.
rpc ClosePickCycle (ClosePickCycleRequest) returns (ClosePickCycleResponse);
// List all open pick cycles.
rpc ListPickCycles (ListPickCyclesRequest) returns (ListPickCyclesResponse);
// Add tags to the pick cycle.
//
// Tags are arbitrary key-value pairs that are placed into the cycle logs.
// They can be used to find the pick cycle in the review tool later.
//
// Providing useful tags can also help to gather training data.
//
// Tag keys may only use letters (upper and lowercase), digits and underscores.
// They may not start with a digit.
//
// Tag values can be anything.
rpc AddTags (AddTagsRequest) returns (AddTagsResponse);
// Add feedback to a pick cycle.
//
// You should always add feedback for attempted picks.
// This will allow the server to collect performance statistics.
// If you reject pick plans on your end, it is also useful to add feedback with the [`Feedback::Ignored`] value.
//
// If you set the `close_cycle` parameter to `true`, the pick cycle will also be closed.
rpc AddFeedback (AddFeedbackRequest) returns (AddFeedbackResponse);
// Get or wait for the status of a pick cycle.
//
// This service can be used to determine when acquisition is complete so that the robot can move in front of the camera.
// It can also be used to indicate when a pick cycle has completely finished processing all objects in the scene.
//
// You do not need to wait for a specific status before using other services.
// Other services will simply delay their response if needed.
rpc GetCycleStatus (GetCycleStatusRequest) returns (GetCycleStatusResponse);
// Get the next pick plans(s) of a pick cycle.
//
// These plans indicate robot poses and gripper information to grasp a set of objects detected in the scene.
//
// Plans are provided in order of quality, so the first plans are most likely to succeed.
// The first plans are also more likely to pick multiple objects when that functionality is supported by the gripper.
//
// If you do not wish to execute the received pick plan(s), you can request the next plan(s) by calling the service again.
// Subsequent requests will consistently yield new pick plans until all plans have been exhausted.
//
// You can retrieve additional information about objects referenced in the pick plan with the [`get_object_info2`] service.
rpc GetPickPlans (GetPickPlansRequest) returns (GetPickPlansResponse);
// Get 2D information about detected objects of a pick cycle.
//
// This service can be used to get additional information about detected objects.
// Because it only provides 2D information, this information is usually available before any pick plans are computed.
//
// The detected objects returned by this service are also referenced by the same ID in the pick plans returned by [`get_pick_plans`].
rpc GetObjectInfo2 (GetObjectInfo2Request) returns (GetObjectInfo2Response);
// Get 3D information about detected objects of a pick cycle.
//
// This service can be used to get 3D information about detected objects,
// even when they do not appear in a pick plan.
//
// Note that the reported object pose and dimensions may be different from the pose and dimensions for the same object in a pick plan.
// This is because the pick plan reports information relative to the (sub)surface of the object being used to pick it.
//
// The detected objects returned by this service are also referenced by the same ID in the pick plans returned by [`get_pick_plans`].
rpc GetObjectInfo3 (GetObjectInfo3Request) returns (GetObjectInfo3Response);
// Check the container layout for a pick cycle.
//
// This service checks whether or not the expected container was found in the scene.
rpc CheckContainerLayout (CheckContainerLayoutRequest) returns (CheckContainerLayoutResponse);
// Check to see if the container is completely empty.
//
// This service checks whether or not the container in the scene is completely empty using point cloud data.
// It is possible that the object detection algorithm misses some objects.
// If it is important that the container is truly empty, this service allows you to verify this more rigorously.
//
// Note that the server needs a proper container configuration in order to run this check.
rpc CheckContainerEmpty (CheckContainerEmptyRequest) returns (CheckContainerEmptyResponse);
// Get the bounds in 3D of the observed scene for a pick cycle.
//
// The computed bounds are based on the 3D data from the camera.
// Importantly, this means that the bounds returned by this call include detected objects,
// but also filtered-out objects as well as anything that doesn't classify as an object.
//
// The returned bounding box does not include anything the camera cannot see.
// This also means if objects are occluded from the perspective of the camera,
// they are not included in the returned bounding box.
rpc GetSceneBounds (GetSceneBoundsRequest) returns (GetSceneBoundsResponse);
// Get a 3D mesh of the observed scene for a pick cycle.
//
// The computed mesh is based on the 3D data from the camera.
// Importantly, this means that the mesh returned by this call includes detected objects,
// but also filtered-out objects as well as anything that doesn't classify as an object.
//
// The returned mesh does not include anything the camera cannot see.
// This also means if objects are occluded from the perspective of the camera,
// they are not included in the returned mesh.
rpc GetSceneMesh (GetSceneMeshRequest) returns (GetSceneMeshResponse);
// Get the available pick profiles.
rpc GetPickProfiles (GetPickProfilesRequest) returns (GetPickProfilesResponse);
}
// Request body for the `get_api_version` request.
message GetApiVersionRequest {
}
// Response body for the `get_api_version` request.
message GetApiVersionResponse {
// The pick interface version.
Version version = 1;
}
// Request body for the `get_server_info` request.
message GetServerInfoRequest {
}
// Response body for the `get_server_info` request.
message GetServerInfoResponse {
// The information about the serde.
ServerInformation info = 1;
}
// Request for the `start_pick_cycle` service.
message StartPickCycleRequest {
// Select a 2D region of interest by ID.
//
// Only objects within the 2D (pixel based) region of interest are considered for picking.
//
// The available region of interests are specified in the server configuration.
optional uint32 region_of_interest_2d_id = 1;
// Select a 3D region of interest by ID.
//
// Only objects within the 3D (point cloud based) region of interest are considered for picking.
//
// The available region of interests are specified in the server configuration.
optional uint32 region_of_interest_3d_id = 2;
// Select a container by ID to be used for this cycle.
//
// The selected container influences collision avoidance and the container layout check.
//
// The available containers are specified in the server configuration.
optional uint32 container_id = 3;
// Select a gripper by ID to be used for this cycle.
//
// The gripper influences pick plan computation and collision avoidance.
//
// The available grippers are specified in the server configuration.
optional uint32 gripper_id = 4;
// Select dynamic virtual walls by ID to be added to the collision model.
//
// The available virtual walls are specified in the server configuration.
repeated uint32 virtual_wall_ids = 5;
// A list of pick profile IDs to use for this cycle.
//
// If not specified, a default pick profile will be used.
// This default is defined in the server configuration.
//
// The available pick profiles can be requested via the [`get_pick_profiles`] service.
repeated uint32 pick_profile_ids = 6;
}
// Response for the `start_pick_cycle` service.
message StartPickCycleResponse {
// The ID of the newly started pick cycle.
uint32 cycle_id = 1;
}
// Close a pick cycle.
message ClosePickCycleRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
}
// Response body for the `close_pick_cycle` service.
message ClosePickCycleResponse {
}
// List open pick cycles.
message ListPickCyclesRequest {
}
// Response body for the `list_pick_cycles` service.
message ListPickCyclesResponse {
// The IDs of all open pick cycles.
repeated uint32 cycle_ids = 1;
}
// A request to add tags to a cycle.
message AddTagsRequest {
// The cycle ID.
uint32 cycle_id = 1;
// Add tags to the pick cycle.
repeated Tag tags = 2;
}
// The response to the add tags service.
message AddTagsResponse {
}
// Feedback about a pick cycle.
message AddFeedbackRequest {
// The cycle ID.
uint32 cycle_id = 1;
// The high level feedback code.
Feedback feedback = 2;
// Optional ID of the `PickPlan`.
//
// This is only necessary if providing feedback about a particular pick plan, rather than the entire pick cycle.
optional uint32 pick_plan_id = 3;
// Optional ID of the detection.
//
// If specified together with `pick_plan_id`, then the feedback is about a particular object in a pick plan.
// For example: one object from a pick plan was not picked successfully.
//
// If specified without a `pick_plan_id`, the feedback is about the object detection itself.
// For example: the classification of a detected object must be wrong based on application knowledge.
optional uint32 object_id = 4;
// An optional code associated with the provided feedback.
//
// The code can be chosen freely by the application.
// It can be used to generate more detailed performance statistics.
optional int32 code = 5;
// An optional message associated with the provided feedback.
//
// The message can be chosen freely by the application.
optional string message = 6;
// If `true`, close the pick cycle.
bool close_cycle = 7;
}
// The response to a `FeedbackRequest`.
message AddFeedbackResponse {
}
// Request for the `get_cycle_status` service.
message GetCycleStatusRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
// Wait for the cycle to reach the given status before returning.
//
// Also returns when the cycle progresses past this status.
optional CycleStatus wait_for = 2;
}
// Get the current status of the pick cycle.
message GetCycleStatusResponse {
// The status of the pick cycle.
CycleStatus status = 1;
}
// Get the next pick plans(s) of a pick cycle.
message GetPickPlansRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
// The maximum number of pick plans to return.
//
// The service call will delay it's response until either this number of pick plans are available,
// or until the computation has finished and no more pick plans are available.
//
// If not specified, no limit is applied and this call will return only when the whole scene has been fully analyzed.
optional uint32 limit = 2;
// Request that all 3D rotations in the response use the specified format.
optional RotationFormat rotation_format = 3;
}
// A number of ordered pick plans for a pick cycle.
message GetPickPlansResponse {
// The pick plans.
repeated PickPlan plans = 1;
}
// Get 2D information about the detected objects of a pick cycle.
message GetObjectInfo2Request {
// The ID of the pick cycle.
uint32 cycle_id = 1;
// Limit the response to specific objects (by object ID).
//
// The response will only contain information about the detections with the corresponding IDs.
// This can be useful for querying information about objects from a particular pick plan.
//
// If this list is empty or not specified, then information about all available detections will be included in the response.
repeated uint32 object_ids = 2;
// Report the ID of the predicted class for the requested descriptors.
//
// This is an easy way to receive information about classification descriptors, like `shape` or `material`.
// Only the ID of the highest-scoring class in the descriptor is reported.
//
// The provided `u32` values indicate which descriptors should be included in the report.
//
// For example:
// - `request.report_class_ids: [0, 1]` where 0 indicates "shape" and 1 indicates "material"
// - `response.class_ids: [0, 3]` where 0 indicates "box" and 3 indicates "plastic"
//
// Note that the available descriptors and the meaning of their values depend on the installation.
// These are not covered by this document.
//
// The information reported is identical to `report_class_names`, except that this field uses numerical IDs rather than string names.
repeated uint32 report_class_ids = 4;
// Report the name of the predicted class for the requested descriptors.
//
// This is an easy way to receive information about classification descriptors, like `shape` or `material`.
// Only the name of the highest-scoring class in the descriptor is reported.
//
// The provided `String` values indicate which descriptors should be included in the report.
//
// For example:
// - `request.report_class_names: ["shapes", "materials"]`
// - `response.class_names: ["box", "plastic"]`
//
// Note that the available descriptors and the meaning of their values depend on the installation.
//
// The information reported is identical to `report_class_ids`, except that this field uses string names rather than numerical IDs.
repeated string report_class_names = 5;
// Report the scores of the requested descriptors.
//
// This will report the scores of all possible classes for a descriptor.
//
// The provided `u32` values indicate which descriptors should be included in the report.
//
// For example:
// - `request.report_class_scores_by_id: [0, 1]`
// - `response.class_scores_by_id: [[0.97, 0.01, 0.0, 0.0], [0.07, 0.02, 0.98]]`
//
// Note that the available descriptors and the meaning of their values depend on the installation.
// These are not covered by this document.
repeated uint32 report_class_scores_by_id = 6;
// Report the scores of the requested descriptors.
//
// This will report the scores of all possible classes for a descriptor.
//
// The provided `String` values indicate which descriptors should be included in the report.
//
// For example:
// - `request.report_class_scores_by_name: ["shapes", "materials"]`
// - `response.class_scores_by_name: [[0.97, 0.01, 0.0, 0.0], [0.07, 0.02, 0.98]]`
//
// Note that the available descriptors and the meaning of their values depend on the installation.
// These are not covered by this document.
repeated string report_class_scores_by_name = 7;
}
// 2D information about the detected objects of a pick cycle.
message GetObjectInfo2Response {
// The requested detections.
//
// The detections included depend on the `object_ids` field of the request.
repeated ObjectInfo2 objects = 1;
}
// Get 3D information about the detected objects of a pick cycle.
message GetObjectInfo3Request {
// The ID of the pick cycle.
uint32 cycle_id = 1;
// Limit the response to specific objects (by object ID).
//
// The response will only contain information about the detections with the corresponding IDs.
// This can be useful for querying information about objects from a particular pick plan.
//
// If this list is empty or not specified, then information about all available detections will be included in the response.
repeated uint32 object_ids = 2;
// Request that all 3D rotations in the response use the specified format.
optional RotationFormat rotation_format = 3;
}
// 3D information about the detected objects of a pick cycle.
message GetObjectInfo3Response {
// The requested detections.
//
// The detections included depend on the `object_ids` field of the request.
repeated ObjectInfo3 objects = 1;
}
// The request for container layout check.
message CheckContainerLayoutRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
}
// The response of container layout check.
message CheckContainerLayoutResponse {
// The result of the layout check.
//
// True if the detected container matches the expected container.
// The expected container can be specified in the `container_id` field of the [`start_pick_cycle`] request.
bool passed = 1;
}
// The request to check whether the container is completely empty.
message CheckContainerEmptyRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
}
// The response that indicates whether or not the container is completely empty.
message CheckContainerEmptyResponse {
// True if the container appears to be empty, false otherwise.
bool is_empty = 1;
}
// Request body for `get_scene_bounds()`.
message GetSceneBoundsRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
}
// Response body for `get_scene_bounds()`.
message GetSceneBoundsResponse {
// The 3D bounding box of the scene.
//
// The box is aligned with the reference frame of the camera.
AlignedBox3 bounding_box_3d = 1;
}
// Request body for `get_scene_mesh()`.
message GetSceneMeshRequest {
// The ID of the pick cycle.
uint32 cycle_id = 1;
}
// Response body for `get_scene_mesh()`.
message GetSceneMeshResponse {
// The vertices of the 3D mesh.
//
// The vertices are represented as a flat list of points, and are referenced by id in `faces`.
repeated Point3 vertices = 1;
// The faces of the 3D mesh.
//
// Each face is represented by a triplet of vertex indices.
repeated MeshFace faces = 2;
}
// Request body for the `get_pick_profiles` request.
message GetPickProfilesRequest {
}
// Response body for the `get_pick_profiles` request.
message GetPickProfilesResponse {
// The available pick profiles.
repeated PickProfileInfo pick_profiles = 1;
}
// An axis-aligned box in three dimensional space.
//
// The box is described by its minimum and maximum points.
message AlignedBox3 {
// The minimum corner point.
Point3 min = 1;
// The maximum corner point.
Point3 max = 2;
}
// A rotation of a specific angle around a specific axis.
message AngleAxis {
// The angle of rotation in radians.
float angle = 1;
// The axis of rotation.
Vector3 axis = 2;
}
// The scores of all classes of a single descriptor.
message ClassScoresById {
// The class scores by ID.
//
// The first element corresponds to class ID 0, then 1, etc..
repeated float scores = 1;
}
// The scores of all classes of a single descriptor, as named scores.
message ClassScoresByName {
// The class scores by name.
repeated NamedClassScore scores = 1;
}
// The status of a pick cycle.
//
// This update is sent whenever the server status changes.
enum CycleStatus {
// Unspecified value.
//
// If used, the server will act as if no value has been specified.
CYCLE_STATUS_UNSPECIFIED = 0;
// The server is waiting for recording or processing of a previous cycle to complete.
//
// The robot should not move into view of the camera as the recording phase may start at any moment.
CYCLE_STATUS_WAITING = 1;
// The server is still recording data.
//
// The robot should not move into view of the camera while the server is recording data.
CYCLE_STATUS_RECORDING = 2;
// The server has finished recording data and is computing pick plans.
//
// The robot may now move into view of the camera.
CYCLE_STATUS_PROCESSING = 3;
// The server is done processing data.
//
// You can still use the pick cycle with any of the available services.
CYCLE_STATUS_DONE = 4;
}
// An empty message
message Empty {
}
// Euler rotation representation
message EulerRotation {
// The format of the Euler angles.
//
// This determines the order in which the rotations are applied.
EulerRotationFormat format = 1;
// An array containing the angles of rotation for each axis.
//
// The order of the angles is the order as per the variant of the `format` field.
//
// This field needs exactly 3 values
repeated float angles = 2;
}
// The type of Euler (Tait-Bryan) angles and the sequence of the rotation.
enum EulerRotationFormat {
// Unspecified value.
//
// If used, the server will act as if no value has been specified.
EULER_ROTATION_FORMAT_UNSPECIFIED = 0;
// The angles represent intrinsic rotations in XYZ order.
//
// See [`RotationFormat::EulerIntrinsicXyz`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_XYZ = 1;
// The angles represent intrinsic rotations in XZY order.
//
// See [`RotationFormat::EulerIntrinsicXzy`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_XZY = 2;
// The angles represent intrinsic rotations in YXZ order.
//
// See [`RotationFormat::EulerIntrinsicYxz`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_YXZ = 3;
// The angles represent intrinsic rotations in YZX order.
//
// See [`RotationFormat::EulerIntrinsicYzx`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_YZX = 4;
// The angles represent intrinsic rotations in ZXY order.
//
// See [`RotationFormat::EulerIntrinsicZxy`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_ZXY = 5;
// The angles represent intrinsic rotations in ZYX order.
//
// See [`RotationFormat::EulerIntrinsicZyx`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_ZYX = 6;
// The angles represent extrinsic rotations in XYZ order.
//
// See [`RotationFormat::EulerExtrinsicXyz`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_XYZ = 7;
// The angles represent extrinsic rotations in XZY order.
//
// See [`RotationFormat::EulerExtrinsicXzy`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_XZY = 8;
// The angles represent extrinsic rotations in YXZ order.
//
// See [`RotationFormat::EulerExtrinsicYxz`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_YXZ = 9;
// The angles represent extrinsic rotations in YZX order.
//
// See [`RotationFormat::EulerExtrinsicYzx`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_YZX = 10;
// The angles represent extrinsic rotations in ZXY order.
//
// See [`RotationFormat::EulerExtrinsicZxy`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_ZXY = 11;
// The angles represent extrinsic rotations in ZYX order.
//
// See [`RotationFormat::EulerExtrinsicZyx`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_ZYX = 12;
}
// High level classification of feedback: success, failed or ignored.
//
// This struct does not include specific error codes or messages.
// Such information should be added to the extensible `FeedbackRequest` struct.
enum Feedback {
// No action occurred.
//
// This can be used when you decide not to attempt a pick plan or a specific object from a pick plan.
//
// You are encouraged to add `code` and `message` to your feedback to provide more information.
FEEDBACK_IGNORED = 0;
// An action failed.
//
// This could refer to an entire pick cycle, a pick plan, or a detection.
//
// You are encouraged to add `code` and `message` to your feedback to provide more information on why the action failed.
FEEDBACK_FAILED = -1;
// An action succeeded.
//
// This could refer to an entire pick cycle, a pick plan, or a detection.
FEEDBACK_SUCCEEDED = 1;
}
// Inverse kinematics for the attached gripper.
message InverseKinematics {
// The pose to move the base of the gripper to.
//
// This will usually correspond with the flange of a robot to which the gripper is attached.
Pose3 base_pose = 1;
// The joint values to set on the gripper.
repeated float joint_values = 2;
}
// A single triangular face in the 3D mesh, represented by the indices of its three vertices.
message MeshFace {
// The index of the first vertex of the face.
uint32 vertex_a = 1;
// The index of the second vertex of the face.
uint32 vertex_b = 2;
// The index of the third vertex of the face.
uint32 vertex_c = 3;
}
// The score of a class.
message NamedClassScore {
// The name of the class.
string name = 1;
// The score assigned to the class for this object.
float score = 2;
}
// 2D information about the detected objects of a pick cycle.
message ObjectInfo2 {
// The ID of this detection.
uint32 object_id = 1;
// The size of the detection in number of pixels.
uint32 pixel_size = 2;
// The IDs of the top values for the descriptors specified in the `report_class_ids` request field.
repeated uint32 class_ids = 4;
// The names of the top values for the descriptors specified in the `report_class_names` request field.
repeated string class_names = 5;
// The scores of all classes of the descriptors specified in the `report_class_scores_by_id` request field.
repeated ClassScoresById class_scores_by_id = 6;
// The scores of all classes of the descriptors specified in the `report_class_scores_by_name` request field.
repeated ClassScoresByName class_scores_by_name = 7;
}
// An object detected in the scene, after filtering and prioritization.
message ObjectInfo3 {
// The ID of this detection.
uint32 object_id = 1;
// The pose of the object in 3D space.
Pose3 pose = 2;
// The size of the object in meters.
//
// Note: the Z information is included, but in most cases it is not meaningful,
// since the camera can usually only see the top surface of the object.
Vector3 dimensions = 3;
}
// A single object in a pick plan.
message PickObject {
// The detection ID.
//
// Multiple pick plans may try to pick the same objects.
// In such cases, the `detection_id` will be the same for the object in both pick plans.
//
// However, `suction_groups`, `object_pose`, and `bounding_box` can still be different in each pick plan.
//
// More information about the detected object can be queried using the [`get_object_info2`] service.
uint32 object_id = 1;
// The suction groups that must be used to pick this object.
repeated uint32 suction_groups = 2;
// The estimated pose of the object in 3D space.
//
// This pose represents the estimated position and orientation of the face of the object being picked.
// It should not be used as a position for picking, but only as an estimation on how the object is held in the gripper.
Pose3 object_pose = 3;
// The dimensions of the object on the XY plane of the object pose.
//
// The x component of the dimensions is aligned along the x axis of the object pose.
Vector2 dimensions = 4;
}
// A pick plan describing how to pick one or more objects.
message PickPlan {
// The ID of the pick plan.
uint32 pick_plan_id = 1;
// The ID of the gripper to use for this pick.
uint32 gripper_id = 4;
// The pose of the gripper for this pick.
//
// Normally, the robot should move the gripper to this pose to perform the pick.
//
// If inverse kinematics are computed, you should use the information from that instead.
Pose3 pose = 2;
// The objects that will be picked.
repeated PickObject objects = 3;
// Inverse kinematics for gripper with movable joints.
//
// This will automatically be added to the pick plan if configured on the selected gripper.
optional InverseKinematics inverse_kinematics = 5;
}
// Information about a pick profile.
message PickProfileInfo {
// The unique ID of the pick profile.
uint32 id = 1;
// The name of the pick profile.
string name = 2;
}
// A three dimensional point in space.
message Point3 {
// The X component of the point.
float x = 1;
// The Y component of the point.
float y = 2;
// The Z component of the point.
float z = 3;
}
// A pose in three dimensional space.
//
// A pose combines a position and an orientation.
message Pose3 {
// The position in 3D space.
Point3 position = 1;
// The orientation in 3D space.
Rotation3 orientation = 2;
}
// This struct represents a quaternion.
//
// The quaternion w+xi+yj+zk is a convenient representation of orientations
// and rotations of objects in three dimensions.
// Operations interpreting the quaternion as rotation have undefined behavior
// if the quaternion is not normalized.
message Quaternion {
// X component of the quaternion.
float x = 1;
// Y component of the quaternion.
float y = 2;
// Z component of the quaternion.
float z = 3;
// W component of the quaternion.
float w = 4;
}
// A rotation in one of several possible formats.
message Rotation3 {
oneof value {
// An angle-axis rotation.
AngleAxis AngleAxis = 1;
// A rotation represented as quaternion.
Quaternion Quaternion = 2;
// A rotation represented as three separate rotations around the major axes.
EulerRotation Euler = 3;
}
}
// The format of a 3D rotation.
enum RotationFormat {
// Unspecified value.
//
// If used, the server will act as if no value has been specified.
ROTATION_FORMAT_UNSPECIFIED = 0;
// The rotation is represented as an axis and an angle of rotation.
ROTATION_FORMAT_ANGLE_AXIS = 1;
// The rotation is represented as a quaternion.
ROTATION_FORMAT_QUATERNION = 2;
// The rotation is represented as three intrinsic rotations: around the X axis, then the Y axis and then the Z axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots manufacturers that use this representation:
// - Staubli (NOTE: uses degrees rather than radians)
ROTATION_FORMAT_EULER_INTRINSIC_XYZ = 3;
// The rotation is represented as three intrinsic rotations: around the X axis, then the Z axis and then the Y axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_XZY = 4;
// The rotation is represented as three intrinsic rotations: around the Y axis, then the X axis and then the Z axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_YXZ = 5;
// The rotation is represented as three intrinsic rotations: around the Y axis, then the Z axis and then the X axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_YZX = 6;
// The rotation is represented as three intrinsic rotations: around the Z axis, then the X axis and then the Y axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_ZXY = 7;
// The rotation is represented as three intrinsic rotations: around the Z axis, then the Y axis and then the X axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots models that use intrinsic Euler ZYX:
// - Mitsubishi Industrial Robot CR750/CR751 Series
// - Kawasaki (NOTE: uses degrees rather than radians)
// - Kuka (NOTE: uses degrees rather than radians)
// - Yaskawa (NOTE: uses degrees rather than radians)
ROTATION_FORMAT_EULER_INTRINSIC_ZYX = 8;
// The rotation is represented as three extrinsic rotations: around the X axis, then the Y axis and then the Z axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots models that use intrinsic Euler ZYX:
// - Fanuc (NOTE: Fanuc calls them `W`, `P`, and `R` instead of `X`, `Y` and `Z`, and they use degrees rather than radians).
ROTATION_FORMAT_EULER_EXTRINSIC_XYZ = 9;
// The rotation is represented as three extrinsic rotations: around the X axis, then the Z axis and then the Y axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_XZY = 10;
// The rotation is represented as three extrinsic rotations: around the Y axis, then the X axis and then the Z axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_YXZ = 11;
// The rotation is represented as three extrinsic rotations: around the Y axis, then the Z axis and then the X axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_YZX = 12;
// The rotation is represented as three extrinsic rotations: around the Z axis, then the X axis and then the Y axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_ZXY = 13;
// The rotation is represented as three extrinsic rotations: around the Z axis, then the Y axis and then the X axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_ZYX = 14;
}
// Information about a server, including software and API versions.
message ServerInformation {
// The name of the interface.
string interface_name = 1;
// The version of the server's interface.
Version interface_version = 2;
// The name of the application.
//
// This is important for interfaces that are implemented by multiple applications, (eg: cameras).
string application_name = 3;
// The version of the application.
//
// This can be useful for logging purposes.
// However, for checking compatibility with an interface you should always look at the interface name and version, not at the application name or version.
Version application_version = 4;
// The name of this particular instance of the application.
//
// This can be used to distinguish between different instances of a service if there is more than one instance of the same application running on the system.
string service_name = 5;
}
// A tag that can be used for logging purposes.
message Tag {
// The key of the tag.
//
// This will be used for advanced analysis of the logs.
// Examples of keys: `pallet_number`, `sku_number` and `shift`.
//
// Tag keys may only use letters (upper and lowercase), digits and underscores.
// They may not start with a digit.
string key = 1;
// The value of the tag.
//
// Examples of values: `23`, `SN05942BL` and `resorting_shift`.
//
// Tag values can be any string value.
string value = 2;
}
// A two dimensional vector.
message Vector2 {
// The X component of the vector.
float x = 1;
// The Y component of the vector.
float y = 2;
}
// A three dimensional vector.
message Vector3 {
// The X component of the vector.
float x = 1;
// The Y component of the vector.
float y = 2;
// The Z component of the vector.
float z = 3;
}
// A version with major, minor and patch number.
message Version {
// The major version.
//
// A change to this value indicates a backwards-incompatible change to the public interface.
uint32 major = 1;
// The minor version.
//
// A change to this value indicates a backwards-compatible change to the public interface.
uint32 minor = 2;
// The patch version.
//
// A change to this value indicates an internal change with no impact on the public interface.
uint32 patch = 3;
}