-
Notifications
You must be signed in to change notification settings - Fork 133
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
Generate messages and services from actions #310
Conversation
@sloretz this PR needs a rebase :) |
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.
@sloretz I left some comments!
6651f09
to
a523011
Compare
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.
I believe this PR needs a rebase. It'll hopefully get rid of the commits you built on top of.
set(_action_files ${_ARG_UNPARSED_ARGUMENTS}) | ||
|
||
# Make a list of files that will be generated | ||
set(_output_path "${CMAKE_CURRENT_BINARY_DIR}/action_msg_and_srv/${PROJECT_NAME}") |
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.
@sloretz why not generating these messages below ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${_parent_folder}
where _parent_folder == 'action'
?
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.
In 18d40bb changed action_msg_and_srv
to the name of the package the code doing the conversion is in: rosidl_actions
. This matches the C and C++ generators.
const rosidl_message_type_support_t * status_message_type_support; | ||
}; | ||
|
||
#define ROSIDL_GET_ACTION_TYPE_SUPPORT(PkgName, Subfolder, Name) \ |
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.
@sloretz are we planning the subfolder to be anything but "action"?
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.
Nope, removed in 93af0a8
c3f77e9
to
8619ae1
Compare
c2556f4
to
38646b7
Compare
5876c98
to
cd2f5ac
Compare
26ed532
to
774f516
Compare
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.
LGTM and appears to be working for ros2/rcl#323 👍
This is part of the cmake plumbing to generate code for actions. It converts
.action
files passed torosidl_generate_interfaces()
to.msg
and.srv
, then passes those through the normal generation pipeline with the other.msg
and.srv
passed.It does not generate typesupport files for the
.action
themselves. A proposal for those is hardcoded in ros2/rcl_interfaces#47.Requires #311
connects to ros2/rcl_interfaces#47