Conversation
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
scpeters
left a comment
There was a problem hiding this comment.
are package.xml files typically installed?
package.xml
Outdated
| <?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
| <package format="2"> | ||
| <name>gz-cmake3</name> | ||
| <version>3.5.0</version> |
There was a problem hiding this comment.
I think we should have a plan for how to keep this version tag in sync with the version in the CMakeLists.txt.
Some options:
- Manually update version numbers in both places and add a CI check to verify consistency (presumably with a shared github action that we will use in other packages)
- Make this package.xml version string the single source of truth and add cmake logic to parse the package.xml file to get it (presumably using the existing code that ROS / ament is already using)
I won't block this pull request on that change, but I'd like to at least have an issue open where we continue this conversation
There was a problem hiding this comment.
I think option 1 would be easier to implement
There was a problem hiding this comment.
add cmake logic to parse the package.xml file to get it (presumably using the existing code that ROS / ament is already using)
I believe the following ament_cmake macro is used to invoke the ament_package python scripts:
There was a problem hiding this comment.
I just hacked up a crude github workflow check for consistent versions in the CMakeLists.txt and package.xml file in branch package_xml...package_xml_ci_test
@j-rivero where would you like to see this CI configuration stored?
There was a problem hiding this comment.
I should have mentioned I've added a workflow in some of the other package.xml PRs. See https://github.com/gazebosim/gz-sim/actions/runs/8334724361
There was a problem hiding this comment.
I've added an Action in gazebo-tooling/action-gz-ci#70 and updated this PR to use it.
for ROS packages, it looks like the |
For the purposes of creating the ROS vendor packages, I don't think we need to install |
sounds good |
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
|
gazebo-tooling/action-gz-ci#70 adds validation of the package.xml using |
from https://ros.org/reps/rep-0149.html#name
but also
so maybe ignore that specific linter complaint? |
This was discussed at today's ROS 2 meeting. The conclusion was that the REP is the authority here. The plan is to relax the naming requirement in the .xsd and potentially provide an opt-in linter that warns against use of dashes. See ros-infrastructure/rep#400. In the meantime, we can comment out the |
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
🎉 New feature
Summary
Add
package.xmlbased on dependencies found in.github/ci/packages.This is to test out using vendor packages to provide Gazebo packages to ROS users (see gazebo-tooling/release-tools#1117).
Test it
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.