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

Pass the subfolder of the service event location #957

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

minggangw
Copy link
Member

Per current implementation, when constructing the service event JavaScript file, we suppose the subfolder of the service event is "srv", but some package, e.g., slam_toolbox, the .srv files are put under srvs/ folder, so when requiring the service event,
slam_toolbox__srvs__AddSubmap_Event.js, it will imports the requst file, which is slam_toolbox__srv__AddSubmap_Request.js, and lead to an error.

This patch passes the subfolder to the spec when creating the service event JS file, so it can require the request/response files by a correct file name.

Fix: #955

Per current implementation, when constructing the service event
JavaScript file, we suppose the subfolder of the service event is "srv",
but some package, e.g., slam_toolbox, the .srv files are put under srvs/
folder, so when requiring the service event,
slam_toolbox__srvs__AddSubmap_Event.js, it will imports the requst file,
which is slam_toolbox__srv__AddSubmap_Request.js, and lead to an error.

This patch passes the subfolder to the spec when creating the service
event JS file, so it can require the request/response files by a correct
file name.

Fix: RobotWebTools#955
@minggangw minggangw merged commit 27376b6 into RobotWebTools:develop Feb 8, 2024
2 of 4 checks passed
minggangw added a commit that referenced this pull request Feb 8, 2024
Per current implementation, when constructing the service event
JavaScript file, we suppose the subfolder of the service event is "srv",
but some package, e.g., slam_toolbox, the .srv files are put under srvs/
folder, so when requiring the service event,
slam_toolbox__srvs__AddSubmap_Event.js, it will imports the requst file,
which is slam_toolbox__srv__AddSubmap_Request.js, and lead to an error.

This patch passes the subfolder to the spec when creating the service
event JS file, so it can require the request/response files by a correct
file name.

Fix: #955
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.

slam toolbox causes bugs
1 participant