-
Notifications
You must be signed in to change notification settings - Fork 44
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 message library generation to gui #558
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,17 @@ | ||
file(GLOB proto_files | ||
${PROJECT_SOURCE_DIR}/proto/gz/msgs/*.proto | ||
) | ||
|
||
gz_msgs_generate_messages( | ||
TARGET msgs | ||
PROTO_PACKAGE "gz.msgs" | ||
MSGS_PATH ${PROJECT_SOURCE_DIR}/proto | ||
MSGS_PROTOS ${proto_files} | ||
DEPENDENCIES gz-msgs${GZ_MSGS_VER}::gz-msgs${GZ_MSGS_VER}-msgs gz-sensors${GZ_SENSORS_VER}::gz-sensors${GZ_SENSORS_VER}-msgs | ||
) | ||
|
||
install( | ||
DIRECTORY gz | ||
DESTINATION share/protos | ||
COMPONENT proto | ||
FILES_MATCHING PATTERN "*.proto") |
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,45 @@ | ||
/* | ||
* Copyright (C) 2019 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 gz.msgs; | ||
option java_package = "com.gz.msgs"; | ||
option java_outer_classname = "AirPressureSensorProtos"; | ||
|
||
/// \ingroup gz.msgs | ||
/// \interface AirPressureSensor | ||
/// \brief Definition of an air pressure sensor | ||
|
||
import "gz/msgs/header.proto"; | ||
import "gz/msgs/sensor_noise.proto"; | ||
|
||
/// \brief Message that describes an air pressure sensor. | ||
message AirPressureSensor | ||
{ | ||
/// \brief Optional header data | ||
Header header = 1; | ||
|
||
/// \brief Reference altitude in meters. This value can be used by a sensor | ||
/// implementation to augment the altitude of the sensor. For example, if | ||
/// you are using simulation, instead of creating a 1000 m mountain model on | ||
/// which to place your sensor, you could instead set this value to 1000 and | ||
/// place your model on a ground plane with a Z height of zero. | ||
double reference_altitude = 2; | ||
|
||
/// \brief Sensor pressure noise. | ||
SensorNoise pressure_noise = 3; | ||
} |
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,41 @@ | ||
/* | ||
* Copyright (C) 2019 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 gz.msgs; | ||
option java_package = "com.gz.msgs"; | ||
option java_outer_classname = "AltimeterSensorProtos"; | ||
|
||
/// \ingroup gz.msgs | ||
/// \interface AltimeterSensor | ||
/// \brief Definition of an altimeter sensor | ||
|
||
import "gz/msgs/header.proto"; | ||
import "gz/msgs/sensor_noise.proto"; | ||
|
||
/// \brief Message that describes an altimeter sensor. | ||
message AltimeterSensor | ||
{ | ||
/// \brief Optional header data | ||
Header header = 1; | ||
|
||
/// \brief Noise parameters for the vertical position. | ||
SensorNoise vertical_position_noise = 2; | ||
|
||
/// \brief Noise parameters for the vertical velocity. | ||
SensorNoise vertical_velocity_noise = 3; | ||
} |
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,80 @@ | ||
/* | ||
* Copyright (C) 2017 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 gz.msgs; | ||
option java_package = "com.gz.msgs"; | ||
option java_outer_classname = "AxisProtos"; | ||
|
||
/// \ingroup gz.msgs | ||
/// \interface Axis | ||
/// \brief msgs::Joint axis message | ||
|
||
import "gz/msgs/vector3d.proto"; | ||
import "gz/msgs/header.proto"; | ||
|
||
message Axis | ||
{ | ||
/// \brief Optional header data | ||
Header header = 1; | ||
|
||
/// \brief The x,y,z components of the axis unit vector. | ||
Vector3d xyz = 2; | ||
|
||
/// \brief The lower joint axis limit (radians for revolute joints, | ||
/// meters for prismatic joints). Not valid if the joint that uses this | ||
/// axis is continuous. | ||
double limit_lower = 3; | ||
|
||
/// \brief The upper joint axis limit (radians for revolute joints, | ||
/// meters for prismatic joints). Not valid if the joint that uses this | ||
/// axis is continuous. | ||
double limit_upper = 4; | ||
|
||
/// \brief Value for enforcing the maximum joint effort applied. | ||
/// Limit is not enforced if value is negative. | ||
double limit_effort = 5; | ||
|
||
/// \brief Value for enforcing the maximum joint velocity. | ||
double limit_velocity = 6; | ||
|
||
/// \brief The physical velocity dependent viscous damping coefficient | ||
/// of the joint axis. | ||
double damping = 7; | ||
|
||
/// \brief The physical static friction value of the joint. | ||
double friction = 8; | ||
|
||
/// \brief Position of the joint. For angular joints, such as revolute | ||
/// joints, the units are radians. For linear joints, such as prismatic | ||
/// joints, the units are meters. | ||
double position = 10; | ||
|
||
/// \brief Velocity of the joint in SI units (meter/second). | ||
double velocity = 11; | ||
|
||
/// \brief Force applied to the joint in SI units (Newton). | ||
double force = 12; | ||
|
||
/// \brief Acceleration of the joint is SI units (meter/second^2). | ||
double acceleration = 13; | ||
|
||
/// \brief Set the name of the coordinate frame in which this joint axis's | ||
/// unit vector is expressed. An empty value implies the parent (joint) | ||
/// frame. | ||
string xyz_expressed_in = 14; | ||
} |
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,39 @@ | ||
/* | ||
* Copyright (C) 2017 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 gz.msgs; | ||
option java_package = "com.gz.msgs"; | ||
option java_outer_classname = "BatteryProtos"; | ||
|
||
/// \ingroup gz.msgs | ||
/// \interface Battery | ||
/// \brief Message for a battery | ||
|
||
import "gz/msgs/header.proto"; | ||
|
||
message Battery | ||
{ | ||
/// \brief Optional header data | ||
Header header = 1; | ||
|
||
/// \brief Name of the battery | ||
string name = 2; | ||
|
||
/// \brief Real voltage in volts. | ||
double voltage = 3; | ||
} |
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) 2017 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 gz.msgs; | ||
option java_package = "com.gz.msgs"; | ||
option java_outer_classname = "BoxGeomProtos"; | ||
|
||
/// \ingroup gz.msgs | ||
/// \interface BoxGeom | ||
/// \brief Information about a box geometry | ||
|
||
import "gz/msgs/header.proto"; | ||
import "gz/msgs/vector3d.proto"; | ||
|
||
message BoxGeom | ||
{ | ||
/// \brief Optional header data | ||
Header header = 1; | ||
|
||
Vector3d size = 2; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I would have though this would go in
gz-sensors
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
_sensor
messages are actually SDF-derived and not used by sensors, as far as I can tell.