Skip to content
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

Merged
merged 22 commits into from
Nov 9, 2018

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Oct 31, 2018

This is part of the cmake plumbing to generate code for actions. It converts .action files passed to rosidl_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

@sloretz sloretz added the in progress Actively being worked on (Kanban column) label Oct 31, 2018
@sloretz sloretz self-assigned this Oct 31, 2018
@hidmic
Copy link
Contributor

hidmic commented Oct 31, 2018

@sloretz this PR needs a rebase :)

Copy link
Contributor

@hidmic hidmic left a 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!

@sloretz sloretz force-pushed the sloretz/speficication-to-str branch from 6651f09 to a523011 Compare October 31, 2018 16:14
@sloretz sloretz mentioned this pull request Nov 1, 2018
Copy link
Contributor

@hidmic hidmic left a 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}")
Copy link
Contributor

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'?

Copy link
Contributor Author

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) \
Copy link
Contributor

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"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, removed in 93af0a8

@sloretz sloretz force-pushed the sloretz/speficication-to-str branch from c3f77e9 to 8619ae1 Compare November 2, 2018 13:57
@sservulo
Copy link
Contributor

sservulo commented Nov 6, 2018

@sloretz #310 is in CI to be merged. What is the status of this PR (and the related ones), does it needs any pending work?

@sservulo sservulo force-pushed the sloretz/speficication-to-str branch 2 times, most recently from c2556f4 to 38646b7 Compare November 7, 2018 21:10
@sservulo sservulo changed the base branch from sservulo/305-parse_action_file to master November 7, 2018 21:11
@sservulo sservulo force-pushed the sloretz/speficication-to-str branch from 5876c98 to cd2f5ac Compare November 7, 2018 21:19
@sloretz sloretz force-pushed the sloretz/speficication-to-str branch from 26ed532 to 774f516 Compare November 8, 2018 18:47
Copy link
Member

@jacobperron jacobperron left a 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 👍

@sloretz sloretz merged commit 29c4a9f into master Nov 9, 2018
@sloretz sloretz deleted the sloretz/speficication-to-str branch November 9, 2018 22:06
@sloretz sloretz removed the in progress Actively being worked on (Kanban column) label Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants