-
Notifications
You must be signed in to change notification settings - Fork 75
Provide option to anonymize node #18
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
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 |
|---|---|---|
|
|
@@ -184,7 +184,7 @@ let MessageUtils = { | |
| loadMessagePackage(msgPackage) { | ||
| const indexPath = messagePackagePathMap[msgPackage]; | ||
| if (indexPath === undefined) { | ||
| throw new Error('Unable to find message package %s', msgPackage); | ||
| throw new Error('Unable to find message package ' + msgPackage); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a JS style guide or linter dictating this change? If not, we should probably choose one. I assume this change is marginally better that it was previous?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. error's won't format strings for you like logging will - so in the log you ended up just seeing
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noted! Not a marginal change at all, then. |
||
| } | ||
| try { | ||
| messagePackageMap[msgPackage] = require(indexPath); | ||
|
|
@@ -225,17 +225,17 @@ let MessageUtils = { | |
| let type = parts[1]; | ||
| return messagePackage.srv[type]; | ||
| } else { | ||
| let request = | ||
| let request = | ||
| messages.getFromRegistry(rosDataType, ["srv", "Request"]); | ||
| let response = | ||
| let response = | ||
| messages.getFromRegistry(rosDataType, ["srv", "Response"]); | ||
| if (request && response) { | ||
| return { | ||
| return { | ||
| Request: request, | ||
| Response: response | ||
| }; | ||
| } else { | ||
| console.error('Unable to find service package %s: %j %j', | ||
| console.error('Unable to find service package %s: %j %j', | ||
| msgPackage, request, response); | ||
| throw new Error(); | ||
| } | ||
|
|
||
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.
Isn't this FIXME still true? String validation of the node name hasn't changed.
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.
I meant to remove it when I added the validation that exists. There is, admittedly, a lot more name validation/mapping that we need to do, though this exists for most ROS names and not specifically for node names.