Skip to content
Open
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
102 changes: 102 additions & 0 deletions gizmo_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
cmake_minimum_required(VERSION 2.8.3)
project(gizmo_msgs)


add_compile_options(-std=c++11)


find_package(catkin REQUIRED
COMPONENTS
actionlib
actionlib_msgs
audio_msgs
geometry_msgs
mayfield_msgs
message_generation
mobile_base_driver
nav_msgs
sensor_msgs
std_msgs
)

add_action_files(
FILES
CalibrationPath.action
RecordBagfile.action
)

add_message_files(
FILES
Action.msg
Asleep.msg
Awake.msg
Bumpers.msg
ChestLED.msg
ClientTouch.msg
ClientWaypoint.msg
Command.msg
CompressedOccupancyGrid.msg
Connection.msg
Deaf.msg
Exchange.msg
Field.msg
FilteredBattery.msg
HeadPose.msg
MomentAction.msg
MomentActions.msg
MqttMessage.msg
NavigationFeedback.msg
NavigationGoal.msg
RomojiFeedback.msg
RomojiGoal.msg
SoundHoundCommand.msg
StringStamped.msg
VolumeButton.msg
Volume.msg
)

add_service_files(
FILES
Deafen.srv
GetDirection.srv
GetField.srv
ListFields.srv
MqttStatus.srv
MqttSubscribe.srv
PhotoCapture.srv
RobotInfo.srv
RobotPose.srv
SetField.srv
SetNavMode.srv
Snooze.srv
Stat.srv
UploaderStatus.srv
WakeUp.srv

)

generate_messages(
DEPENDENCIES
actionlib_msgs
audio_msgs
geometry_msgs
mayfield_msgs
mobile_base_driver
nav_msgs
sensor_msgs
std_msgs
)

catkin_package(
CATKIN_DEPENDS
actionlib_msgs
audio_msgs
geometry_msgs
nav_msgs
mayfield_msgs
mobile_base_driver
sensor_msgs
std_msgs
)

include_directories(${catkin_INCLUDE_DIRS})
3 changes: 3 additions & 0 deletions gizmo_msgs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gizmo_msgs

Message types used for interacting with gizmo, the default behavior stack on the Kuri. Extracted from the robot.
11 changes: 11 additions & 0 deletions gizmo_msgs/action/CalibrationPath.action
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

---

#result definition
bool success
string error

---



5 changes: 5 additions & 0 deletions gizmo_msgs/action/RecordBagfile.action
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# mode is 'mapping' or 'localization' or 'stopped'
string mode
---
bool success
---
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/Action.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ROS message to broadcast the robot's current task and/or reaction
string task
string reaction
Empty file added gizmo_msgs/msg/Asleep.msg
Empty file.
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/Awake.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
geometry_msgs/Vector3 direction
uint16 relative_angle
float32 score
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/Bumpers.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Header header
mobile_base_driver/Bumper[3] bumper
1 change: 1 addition & 0 deletions gizmo_msgs/msg/ChestLED.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
std_msgs/ColorRGBA[] array
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/ClientTouch.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string request_id
float32 x
float32 y
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/ClientWaypoint.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string request_id
string waypoint_uuid
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/Command.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
mayfield_msgs/KeyValue[] params
12 changes: 12 additions & 0 deletions gizmo_msgs/msg/CompressedOccupancyGrid.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This represents a 2-D grid map, in which each cell represents the probability of
# occupancy.

Header header

#MetaData for the map
nav_msgs/MapMetaData info

# This data is a png8 image file as it appears on disk encoded as a base64 string.
# When uncompressed the pixel array is in row-major order, starting with (0,0).
# Currently, unknown is 205, free is 255, and occupied is 0.
string data
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/Connection.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bool is_connected
string peer_id
bool are_all_peers_gone
Empty file added gizmo_msgs/msg/Deaf.msg
Empty file.
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/Exchange.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SoundHoundCommand[] commands
string error
string transcription
5 changes: 5 additions & 0 deletions gizmo_msgs/msg/Field.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
string type
uint32 length
string description
string mode
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/FilteredBattery.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
uint8 rounded_pct
bool dock_present
bool is_charging
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/HeadPose.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
float32 pan
float32 tilt
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/MomentAction.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string event
string uuid
1 change: 1 addition & 0 deletions gizmo_msgs/msg/MomentActions.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MomentAction[] actions
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/MqttMessage.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string topic
string payload
22 changes: 22 additions & 0 deletions gizmo_msgs/msg/NavigationFeedback.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
byte GO_TO_WAYPOINT=0
byte DRIVE_TO_POINT_IN_IMAGE=1
byte FOLLOW_ME=2

byte NAV_SUCCESS=0
byte NAV_PLANNING=1
byte NAV_MOVING=2
byte NAV_ERROR=3
byte NAV_CANCELED=4

# NAV_ status
byte status
# Type of navigation
byte nav_type
# Request ID if from client
string request_id
# error string if NAV_ERROR
string error
# waypoint UUID if GO_TO_WAYPOINT
string waypoint_uuid
# Goal pose
geometry_msgs/Pose goal
15 changes: 15 additions & 0 deletions gizmo_msgs/msg/NavigationGoal.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This is a message covering all types of navigation
byte GO_TO_WAYPOINT=0
byte DRIVE_TO_POINT_IN_IMAGE=1
byte FOLLOW_ME=2

# Type of navigation
byte nav_type
# Goal of navigation
geometry_msgs/Pose pose
# Waypoint UUID for GO_TO_WAYPOINT
string waypoint_uuid
# Head pose for GO_TO_WAYPOINT
gizmo_msgs/HeadPose head_pose
# Request ID (if from client)
string request_id
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/RomojiFeedback.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string request_id
string feedback
6 changes: 6 additions & 0 deletions gizmo_msgs/msg/RomojiGoal.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name of romoji to play
string name
# Whether to play sound or not (if the animation has sounds)
bool sound
# Request ID of the animation
string request_id
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/SoundHoundCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
mayfield_msgs/KeyValue[] params
3 changes: 3 additions & 0 deletions gizmo_msgs/msg/StringStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Header header
string timems
string data
17 changes: 17 additions & 0 deletions gizmo_msgs/msg/Volume.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Volume level
# If is_relative is True, this adds to the current volume level
# If is_relative is False, this sets the current volume level
# Note: level is on the range [0:100], and will be clapmed appropriately
# upon receipt of this message
int16 level

# Whether the level should be added to the current level or set absolutely
bool is_relative

# Mute and unmute
# If either of these are set to true, the above values will not be used
# Muting stores the volume level and sets the level to 0
# Unmuting restores the volume level (or uses the default volume if no level
# has been stored)
bool mute
bool unmute
2 changes: 2 additions & 0 deletions gizmo_msgs/msg/VolumeButton.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bool up_button_pressed
bool down_button_pressed
38 changes: 38 additions & 0 deletions gizmo_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<package>
<name>gizmo_msgs</name>
<version>14.3.1</version>
<description>The gizmo_msgs package</description>

<maintainer email="sarah.osentoski@us.bosch.com">Sarah Osentoski</maintainer>
<license>TODO</license>


<buildtool_depend>catkin</buildtool_depend>

<build_depend>message_generation</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>actionlib_msgs</build_depend>
<build_depend>audio_msgs</build_depend>
<build_depend>nav_msgs</build_depend>
<build_depend>geometry_msgs</build_depend>
<build_depend>diagnostic_msgs</build_depend>
<build_depend>mobile_base_driver</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>mayfield_msgs</build_depend>

<run_depend>message_runtime</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>actionlib_msgs</run_depend>
<run_depend>audio_msgs</run_depend>
<run_depend>nav_msgs</run_depend>
<run_depend>geometry_msgs</run_depend>
<run_depend>diagnostic_msgs</run_depend>
<run_depend>mobile_base_driver</run_depend>
<run_depend>mayfield_msgs</run_depend>
<run_depend>sensor_msgs</run_depend>


<export>
</export>
</package>
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/Deafen.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
string state
6 changes: 6 additions & 0 deletions gizmo_msgs/srv/GetDirection.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 threshold
uint16 ms_duration
uint16 ms_delay
---
geometry_msgs/Vector3 direction
uint16 relative_angle
3 changes: 3 additions & 0 deletions gizmo_msgs/srv/GetField.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
---
string json_value
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/ListFields.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
audio_msgs/Field[] fields
14 changes: 14 additions & 0 deletions gizmo_msgs/srv/MqttStatus.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# MQTT Node will assemble topic names for you based on the device, environment
# robot_id, and the 'endpoint' which is specified when you publish the message
# More info at:
# https://github.com/mayfieldrobotics/kuri_project_management/tree/master/mqtt
string device
string environment
string robot_id

# In test environment, we let MQTT pick its own path for credentials so we
# don't interfere with other MQTT nodes
string alt_cred_path

bool connected
3 changes: 3 additions & 0 deletions gizmo_msgs/srv/MqttSubscribe.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string topic
---
bool success
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/PhotoCapture.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
sensor_msgs/CompressedImage image
4 changes: 4 additions & 0 deletions gizmo_msgs/srv/RobotInfo.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
uint16 client_interface_ver
string robot_base_ver
string gizmo_ver
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/RobotPose.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
geometry_msgs/Pose pose
3 changes: 3 additions & 0 deletions gizmo_msgs/srv/SetField.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
string json_value
---
3 changes: 3 additions & 0 deletions gizmo_msgs/srv/SetNavMode.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string mode
---
bool success
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/Snooze.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
string state
3 changes: 3 additions & 0 deletions gizmo_msgs/srv/Stat.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
string state
string direction
5 changes: 5 additions & 0 deletions gizmo_msgs/srv/UploaderStatus.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# In test environment, we let the cloud uploader pick its own path for the
# uploader queue. In normal operation this will point to
# /mayfield/something/something
string uploader_queue
2 changes: 2 additions & 0 deletions gizmo_msgs/srv/WakeUp.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
string state