-
Notifications
You must be signed in to change notification settings - Fork 0
feat(back): create packages for ROS2 exec #3
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
base: development
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| from setuptools import find_packages, setup | ||
|
|
||
| setup( | ||
| name="robocoop_backend", | ||
| version="0.1.0", | ||
| packages=find_packages(exclude=["tests*"]), | ||
| install_requires=[ | ||
| "websockets", | ||
| "pyyaml", | ||
| ], | ||
| extras_require={ | ||
| "ros": ["rclpy"], | ||
| }, | ||
| python_requires=">=3.10", | ||
| description="Robocoop WebSocket backend.", | ||
| license="Apache-2.0", | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||||||||
| cmake_minimum_required(VERSION 3.8) | ||||||||||||||||||||||||
| project(robocoop_bringup) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| find_package(ament_cmake REQUIRED) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| install( | ||||||||||||||||||||||||
| DIRECTORY launch config scripts | ||||||||||||||||||||||||
| DESTINATION share/${PROJECT_NAME} | ||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Comment on lines
+7
to
+10
|
||||||||||||||||||||||||
| DIRECTORY launch config scripts | |
| DESTINATION share/${PROJECT_NAME} | |
| ) | |
| DIRECTORY launch config | |
| DESTINATION share/${PROJECT_NAME} | |
| ) | |
| install( | |
| PROGRAMS scripts/*.sh | |
| DESTINATION lib/${PROJECT_NAME} | |
| ) |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||||||
| <?xml version="1.0"?> | ||||||||||
| <package format="3"> | ||||||||||
| <n>robocoop_bringup</n> | ||||||||||
|
||||||||||
| <n>robocoop_bringup</n> | |
| <name>robocoop_bringup</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.
1. Broken package.xml manifest 🐞 Bug ≡ Correctness
src/robocoop_bringup/package.xml uses an invalid tag (<n> instead of <name>) and declares a <maintainer> without the required email attribute, which will prevent ROS2 tooling (ament/colcon) from parsing/building the package. This blocks building/using robocoop_bringup in the repo’s ROS2 environment.
Agent Prompt
## Issue description
`src/robocoop_bringup/package.xml` is not valid for ROS2 tooling because it uses `<n>` instead of `<name>` and the maintainer tag omits the required `email` attribute.
## Issue Context
This will prevent `ament/colcon` from parsing the package manifest, blocking builds and installs.
## Fix Focus Areas
- src/robocoop_bringup/package.xml[1-8]
## Suggested change
- Replace `<n>robocoop_bringup</n>` with `<name>robocoop_bringup</name>`
- Change maintainer to include email, e.g. `<maintainer email="[email protected]">Robocoop Team</maintainer>` (use the real email)
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Copilot
AI
Apr 20, 2026
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.
<maintainer> is missing the required email attribute (e.g., <maintainer email="...">...). Many ROS2/ament checks treat this as an error, and it also makes it hard for users to contact the maintainer.
| <maintainer>Robocoop Team</maintainer> | |
| <maintainer email="[email protected]">Robocoop Team</maintainer> |
Copilot
AI
Apr 20, 2026
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.
This bringup package contains Python launch files, but package.xml does not declare runtime dependencies on launch/launch_ros. Without these, rosdep may not install the required launch system packages when building from source.
| <exec_depend>std_msgs</exec_depend> | |
| <exec_depend>std_msgs</exec_depend> | |
| <exec_depend>launch</exec_depend> | |
| <exec_depend>launch_ros</exec_depend> |
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.
find_packages(exclude=["tests*"])will not excluderobocoop_backend.tests...because the pattern only matches packages that start withtests. As a result, the test packages are likely to be included in the distribution; use an exclude pattern likerobocoop_backend.tests*(or drop the exclude if you intend to ship tests).