Skip to content

Commit

Permalink
Merge pull request #2 from bdaiinstitute/jlb/fix_enum_handling
Browse files Browse the repository at this point in the history
Messages with enum handling and a few other small things fixed
  • Loading branch information
jbarry-bdai authored Feb 3, 2023
2 parents c24941b + 8b1ee85 commit 57a58d5
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 29 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/HipRangeOfMotionResult.msg"
"msg/HipRangeOfMotionResultError.msg"
"msg/ICEServer.msg"
"msg/ICEServerservertype.msg"
"msg/ICEServerServertype.msg"
"msg/IREnableDisableRequest.msg"
"msg/IREnableDisableRequestRequest.msg"
"msg/IREnableDisableResponse.msg"
Expand Down Expand Up @@ -946,6 +946,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/SelfRightCommandRequest.msg"
"msg/SensorCompatibilityStatus.msg"
"msg/Sequence.msg"
"msg/SerializedMessage.msg"
"msg/SeriesBlockIndex.msg"
"msg/SeriesBlockIndexBlockEntry.msg"
"msg/SeriesDescriptor.msg"
Expand Down
1 change: 1 addition & 0 deletions msg/ConstantValueOneOfValue.msg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ int8 VALUE_FLOAT_VALUE_SET=1
int8 VALUE_STRING_VALUE_SET=2
int8 VALUE_INT_VALUE_SET=3
int8 VALUE_BOOL_VALUE_SET=4
int8 VALUE_MSG_VALUE_SET=5

# Only one of the above can be filled in. Use the enum to choose which.
int8 value_choice
2 changes: 0 additions & 2 deletions msg/DoorCommandAutoGraspCommand.msg
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ bool search_ray_end_in_frame_is_set

# The side of the hinge with respect to the robot when facing the door.
bosdyn_msgs/DoorCommandHingeSide hinge_side
bool hinge_side_is_set

# The direction the door moves with respect to the robot.
bosdyn_msgs/DoorCommandSwingDirection swing_direction
bool swing_direction_is_set
1 change: 0 additions & 1 deletion msg/DoorCommandAutoPushCommand.msg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ bool push_point_in_frame_is_set

# The side of the hinge with respect to the robot when facing the door.
bosdyn_msgs/DoorCommandHingeSide hinge_side
bool hinge_side_is_set
3 changes: 0 additions & 3 deletions msg/DoorCommandWarmstartCommand.msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

# The side of the hinge with respect to the robot when facing the door.
bosdyn_msgs/DoorCommandHingeSide hinge_side
bool hinge_side_is_set

# The direction the door moves with respect to the robot.
bosdyn_msgs/DoorCommandSwingDirection swing_direction
bool swing_direction_is_set

# The type of handle on the door.
bosdyn_msgs/DoorCommandHandleType handle_type
bool handle_type_is_set
1 change: 0 additions & 1 deletion msg/EdgeAnnotations.msg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ bool cost_is_set

# How this edge was made.
bosdyn_msgs/EdgeEdgeSource edge_source
bool edge_source_is_set

# If true, disables alternate-route-finding for this edge.
bool disable_alternate_route_finding
Expand Down
7 changes: 0 additions & 7 deletions msg/Element.msg
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ bool is_skipped
# Considering using various thresholds depending on the target's distance from the dock
bosdyn_msgs/BatteryMonitor battery_monitor
bool battery_monitor_is_set

# Maximum duration of action execution time, including all wrappers.
# If they take longer than this duration, the action will be considered a failure.
# Not including, or including a zero duration will set the action to NOT have a
# timeout.
builtin_interfaces/Duration action_duration
bool action_duration_is_set
6 changes: 0 additions & 6 deletions msg/GlobalParameters.msg
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ int32 self_right_attempts
# is often found in post-mission callbacks includes uploading data to the cloud or
# sending an email. The callbacks will be executed serially (first in, first executed).
bosdyn_msgs/ActionRemoteGrpc[] post_mission_callbacks

# It can be useful to have the robot run a walk without collecting data.
# If this boolean is set to true, the compiled mission will still navigate to the
# target of each element, however it will not actually perform the associated
# action & action wrappers.
bool skip_actions
2 changes: 1 addition & 1 deletion msg/ICEServer.msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Possible types of servers
# STUN or TURN server.
bosdyn_msgs/ICEServerservertype type
bosdyn_msgs/ICEServerServertype type
# Network address of the server.
string address
# Only the least significant 16 bits are used.
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion msg/MutateWorldObjectRequestMutation.msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# The action (add, change, or delete) to be applied to a world object.
bosdyn_msgs/MutateWorldObjectRequestAction action
bool action_is_set

# World object to be mutated.
# If an object is being changed/deleted, then the world object id must match a world
Expand Down
1 change: 0 additions & 1 deletion msg/NamedArmPositionsCommandRequest.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# AUTOMATICALLY GENERATED BY PROTO CONVERSION

bosdyn_msgs/NamedArmPositionsCommandPositions position
bool position_is_set
2 changes: 1 addition & 1 deletion msg/NodeInfo.msg
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ string name
bosdyn_msgs/UserData user_data
bool user_data_is_set
# Info on all children of this node, if any are present.
# bosdyn_msgs/NodeInfo[] children
bosdyn_msgs/SerializedMessage[] children # Serialized bosdyn_msgs/NodeInfo to break recursion
3 changes: 2 additions & 1 deletion msg/NodeOneOfType.msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
string node_reference

int8 TYPE_NOT_SET=0
int8 TYPE_NODE_REFERENCE_SET=1
int8 TYPE_IMPL_SET=1
int8 TYPE_NODE_REFERENCE_SET=2

# Only one of the above can be filled in. Use the enum to choose which.
int8 type_choice
2 changes: 1 addition & 1 deletion msg/ResourceTree.msg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
string resource

# Sub-resources that make up this resource.
# bosdyn_msgs/ResourceTree[] sub_resources
bosdyn_msgs/SerializedMessage[] sub_resources # Serialized bosdyn_msgs/ResourceTree to break recursion
4 changes: 4 additions & 0 deletions msg/SerializedMessage.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# AUTOMATICALLY GENERATED BY PROTO CONVERSION

# Message to hold serialized data for recursive messages
int8[] serialized_msg
1 change: 0 additions & 1 deletion msg/StreamParamsAwbMode.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# AUTOMATICALLY GENERATED BY PROTO CONVERSION

bosdyn_msgs/StreamParamsAwbModeEnum awb
bool awb_is_set
1 change: 0 additions & 1 deletion msg/WaypointAnnotations.msg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ bool scan_match_region_is_set

# How this waypoint was made.
bosdyn_msgs/WaypointWaypointSource waypoint_source
bool waypoint_source_is_set

# Information about the state of the client when this waypoint was created.
bosdyn_msgs/ClientMetadata client_metadata
Expand Down

0 comments on commit 57a58d5

Please sign in to comment.