Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BoundingBox Msg #165

Merged
merged 5 commits into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions proto/ignition/msgs/annotated_axis_aligned_2d_box.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "AnnotatedAxisAligned2DBoxProtos";

/// \ingroup ignition.msgs
/// \interface AnnotatedAxisAligned2DBox
/// \brief A 2D axis aligned box with label

import "ignition/msgs/header.proto";
import "ignition/msgs/axis_aligned_2d_box.proto";

message AnnotatedAxisAligned2DBox
{
/// \brief Optional header data
Header header = 1;

/// \brief Axis aligned 2d bounding box
AxisAligned2DBox box = 2;

/// \brief Label (class) of the box's object
uint32 label = 3;
}
37 changes: 37 additions & 0 deletions proto/ignition/msgs/annotated_axis_aligned_2d_box_v.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "AnnotatedAxisAligned2DBox_VProtos";

/// \ingroup ignition.msgs
/// \interface AnnotatedAxisAligned2DBox_V
/// \brief A message for a vector of annotated axis aligned 2d boxes

import "ignition/msgs/header.proto";
import "ignition/msgs/annotated_axis_aligned_2d_box.proto";

message AnnotatedAxisAligned2DBox_V
{
/// \brief Optional header data
Header header = 1;

/// \brief vector of 2d annotated boxes
repeated AnnotatedAxisAligned2DBox annotated_box = 2;
}
40 changes: 40 additions & 0 deletions proto/ignition/msgs/annotated_oriented_3d_box.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "AnnotatedOriented3DBoxProtos";

/// \ingroup ignition.msgs
/// \interface AnnotatedOriented3DBox
/// \brief A 3D oriented bounding box with label

import "ignition/msgs/header.proto";
import "ignition/msgs/oriented_3d_box.proto";

message AnnotatedOriented3DBox
{
/// \brief Optional header data
Header header = 1;

/// \brief oreinted 3d box
Oriented3DBox box = 2;

/// \brief Label (class) of the box's object
uint32 label = 3;
}
37 changes: 37 additions & 0 deletions proto/ignition/msgs/annotated_oriented_3d_box_v.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "AnnotatedOriented3DBox_VProtos";

/// \ingroup ignition.msgs
/// \interface AnnotatedOriented3DBox_V
/// \brief A message for a vector of annotated oriented 3d boxes

import "ignition/msgs/header.proto";
import "ignition/msgs/annotated_oriented_3d_box.proto";

message AnnotatedOriented3DBox_V
{
/// \brief Optional header data
Header header = 1;

/// \brief vector of 3d annotated oreinted boxes
repeated AnnotatedOriented3DBox annotated_box = 2;
}
40 changes: 40 additions & 0 deletions proto/ignition/msgs/axis_aligned_2d_box.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "AxisAligned2DBoxProtos";

/// \ingroup ignition.msgs
/// \interface AxisAligned2DBox
/// \brief A 2D axis aligned box

import "ignition/msgs/header.proto";
import "ignition/msgs/vector2d.proto";

message AxisAligned2DBox
{
/// \brief Optional header data
Header header = 1;

/// \brief Minimum corner of the axis aligned bound box in image coord.
Vector2d min_corner = 2;

/// \brief Maximum corner of the axis aligned bound box in the image coord.
Vector2d max_corner = 3;
}
44 changes: 44 additions & 0 deletions proto/ignition/msgs/oriented_3d_box.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "Oriented3DBoxProtos";

/// \ingroup ignition.msgs
/// \interface Oriented3DBox
/// \brief A 3D oreinted bounding box

import "ignition/msgs/header.proto";
import "ignition/msgs/vector3d.proto";
import "ignition/msgs/quaternion.proto";

message Oriented3DBox
{
/// \brief Optional header data
Header header = 1;

/// \brief Center of the bounding box in 3d camera coordinates
Vector3d center = 2;

/// \brief Orientation of the bounding box in 3d camera coordinates
Quaternion orientation = 3;

/// \brief The size of the bounding box on XYZ (width/height/depth)
Vector3d boxSize = 4;
}