-
Notifications
You must be signed in to change notification settings - Fork 405
SocketAdapter TypeScript refactor #926
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: develop
Are you sure you want to change the base?
Changes from all commits
19cc0d9
f68a68b
b6bd560
1d3b5ca
763400b
988cb0b
7068a0d
8004243
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
import { EventEmitter } from 'eventemitter3'; | ||
import Ros from '../core/Ros.js'; | ||
import { GoalStatus } from '../core/GoalStatus.ts'; | ||
import { GoalStatus } from '../types/RosMessageTypes.js'; | ||
|
||
/** | ||
* A ROS 2 action client. | ||
|
@@ -217,7 +217,7 @@ export default class Action extends EventEmitter { | |
id: id, | ||
action: this.name, | ||
values: result, | ||
status: GoalStatus.STATUS_SUCCEEDED, | ||
status: GoalStatus.Succeeded, | ||
result: true | ||
}; | ||
this.ros.callOnConnection(call); | ||
|
@@ -235,7 +235,7 @@ export default class Action extends EventEmitter { | |
id: id, | ||
action: this.name, | ||
values: result, | ||
status: GoalStatus.STATUS_CANCELED, | ||
status: GoalStatus.Canceled, | ||
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. Isn't changing these member names technically an API-breaking change? 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. I didn't think so. GoalStatus was just used in Action and wasn't exported from an index.js file, so it wasn't exposed in the actual "public api". People might have been using it, but it would've been from the dist folder which IMO doesn't count as public API. Happy to discuss it though |
||
result: true | ||
}; | ||
this.ros.callOnConnection(call); | ||
|
@@ -251,7 +251,7 @@ export default class Action extends EventEmitter { | |
op: 'action_result', | ||
id: id, | ||
action: this.name, | ||
status: GoalStatus.STATUS_ABORTED, | ||
status: GoalStatus.Aborted, | ||
result: false | ||
}; | ||
this.ros.callOnConnection(call); | ||
|
This file was deleted.
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. looks like 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. If you want the file history I can do the same dance with the linter/checker we did before? |
This file was deleted.
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.
Personally I'd prefer we hold unknown data in
unknown
notany
, but I won't be super picky about that if you feel strongly since I could see it being a barrier to contribution for people who aren't TypeScript experts.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 can defer this one, I had it at one point because I had a really uncooperative type but I ended up smoothing it out. It can probably be dropped for now