Skip to content

Commit

Permalink
[TS] Use srvs as the namespace for slam_toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
minggangw committed Aug 12, 2024
1 parent 7cd08c2 commit e773a32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rostsd_gen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@ function isInternalActionMsgInterface(rosMsgInterface) {
function isInternalServiceEventMsgInterface(rosMsgInterface) {
let name = rosMsgInterface.type().interfaceName;
let subFolder = rosMsgInterface.type().subFolder;
// Some package puts .srv files under srvs/, e.g., slam_toolbox.
return (
(subFolder == 'srv' || subFolder == 'action')
(subFolder == 'srv' || subFolder == 'srvs' || subFolder == 'action')
&& name.endsWith('_Event')
);
}
Expand Down

0 comments on commit e773a32

Please sign in to comment.