Skip to content

Commit

Permalink
Merge pull request #21 from gavanderhoorn/inform_list
Browse files Browse the repository at this point in the history
Add `ListInformJobs` service definition
  • Loading branch information
gavanderhoorn authored Aug 6, 2024
2 parents 0a6f497 + 60db96b commit 3ec808b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set(msg_files
msg/AlarmInfo.msg
msg/AlarmCauseRemedy.msg
msg/ErrorInfo.msg
msg/InformJobCrudResultCodes.msg
msg/IoResultCodes.msg
msg/MotionReadyEnum.msg
msg/QueueResultEnum.msg
Expand All @@ -23,6 +24,7 @@ set(msg_files

set(srv_files
srv/GetActiveAlarmInfo.srv
srv/ListInformJobs.srv
srv/QueueTrajPoint.srv
srv/ReadMRegister.srv
srv/ReadSingleIO.srv
Expand Down
22 changes: 22 additions & 0 deletions msg/InformJobCrudResultCodes.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2024, Yaskawa America, Inc.
# SPDX-FileCopyrightText: 2024, Delft University of Technology
#
# SPDX-License-Identifier: Apache-2.0

uint32 RC_OK=1
string STR_OK="Success"

uint32 RC_ERR_REFRESHING_JOB_LIST=10
string STR_ERR_REFRESHING_JOB_LIST="Error refreshing job list"

uint32 RC_ERR_RETRIEVING_FILE_COUNT=11
string STR_ERR_RETRIEVING_FILE_COUNT="Error retrieving file count"

uint32 RC_ERR_TOO_MANY_JOBS=12
string STR_ERR_TOO_MANY_JOBS="Too many jobs"

uint32 RC_ERR_RETRIEVING_JOB_NAME_FROM_LIST=13
string STR_ERR_RETRIEVING_JOB_NAME_FROM_LIST="Failed retrieving job name from list"

uint32 RC_ERR_APPENDING_JOB_NAME_TO_SVC_RESPONSE=14
string STR_ERR_APPENDING_JOB_NAME_TO_SVC_RESPONSE="Error adding job name to service response"
28 changes: 28 additions & 0 deletions srv/ListInformJobs.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-FileCopyrightText: 2024, Yaskawa America, Inc.
# SPDX-FileCopyrightText: 2024, Delft University of Technology
#
# SPDX-License-Identifier: Apache-2.0

# empty request

---

# Result of the service invocation. Values other than one (1) signal failure.
#
# Values defined in 'motoros2_interfaces/msg/InformJobCrudResultCodes'.
#
# NOTE: future versions of this service may use a different set of result
# codes. Always make sure to compare against defined named constants instead
# of integers directly.
uint32 result_code

# string representation of the value in 'result_code', for humans
string message

# The list of jobs present on the controller.
#
# NOTE:
# - these are job names, not filenames, and thus will not include the file
# extension (JBI)
# - character encodings other than ASCII are only partially supported
string[] names

0 comments on commit 3ec808b

Please sign in to comment.