-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface Parameter | ||
/// \brief Representation of a parameter, used to request to set a parameter. | ||
|
||
import "google/protobuf/any.proto"; | ||
|
||
message Parameter | ||
{ | ||
/// \brief Parameter name. | ||
string name = 1; | ||
|
||
/// \brief Serialized parameter value. | ||
google.protobuf.Any value = 2; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterDeclarationProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface ParameterDeclaration | ||
/// \brief Representation of a parameter declaration. | ||
|
||
message ParameterDeclaration | ||
{ | ||
/// \brief Parameter name. | ||
string name = 1; | ||
|
||
/// \brief Parameter type, i.e. the associated protobuf type. | ||
string type = 2; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterDeclarationsProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface ParameterDeclarations | ||
/// \brief Collection of parameter declarations. | ||
|
||
import "ignition/msgs/parameter_declaration.proto"; | ||
|
||
message ParameterDeclarations | ||
{ | ||
/// \brief Parameter declarations. | ||
repeated ParameterDeclaration parameter_declarations = 1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterErrorProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface ParameterError | ||
/// \brief Parameter server errors for declare or set parameter. | ||
|
||
message ParameterError | ||
{ | ||
enum Type { | ||
NO_ERROR = 0; | ||
ALREADY_DECLARED = 1; | ||
INVALID_TYPE = 2; | ||
NOT_DECLARED = 3; | ||
} | ||
Type data = 1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterNameProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface ParameterName | ||
/// \brief Parameter name, used as a request to get a parameter. | ||
|
||
message ParameterName | ||
{ | ||
/// \brief Parameter name. | ||
string name = 1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (C) 2022 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 = "ParameterValueProtos"; | ||
|
||
/// \ingroup ignition.msgs | ||
/// \interface ParameterValue | ||
/// \brief Representation of a parameter value, used as a response to get a parameter. | ||
|
||
import "google/protobuf/any.proto"; | ||
|
||
message ParameterValue | ||
{ | ||
/// \brief Serialized protobuf message. | ||
google.protobuf.Any data = 1; | ||
}; |