-
Notifications
You must be signed in to change notification settings - Fork 413
Port TFClient impls to TypeScript #1009
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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| export { default as TFClient } from "./TFClient.js"; | ||
| export { default as ROS2TFClient } from "./ROS2TFClient.js"; | ||
| export { default as TFClient } from "./TFClient"; | ||
| export { default as ROS2TFClient } from "./ROS2TFClient"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| export namespace geometry_msgs { | ||
| export interface TransformStamped { | ||
| // TODO: some sort of unholy union type of ros1 header and ros2 header??? | ||
|
Contributor
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. ros 1 is deprecated, so I'd just not bother and point people to use older versions of this library if they need ros 1
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. Agreed in theory, but at that point why not rip out the entire ROS 1 implementation of TFClient?
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. and actionlib.. |
||
| child_frame_id: string; | ||
| transform: Transform; | ||
| } | ||
| export interface Transform { | ||
| translation: Vector3; | ||
| rotation: Quaternion; | ||
| } | ||
| export interface Vector3 { | ||
| x: number; | ||
| y: number; | ||
| z: number; | ||
| } | ||
| export interface Quaternion { | ||
| x: number; | ||
| y: number; | ||
| z: number; | ||
| w: number; | ||
|
Contributor
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. minor point, but in the ROS 2 message definition, the
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. interfaces can't be instantiated, so you can't set defaults |
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { geometry_msgs } from "./geometry_msgs"; | ||
|
|
||
| export namespace tf2_msgs { | ||
| export interface TFMessage { | ||
| transforms: geometry_msgs.TransformStamped[]; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { geometry_msgs } from "./geometry_msgs"; | ||
|
|
||
| export namespace tf2_web_republisher { | ||
| export interface RepublishTFsRequest extends TFSubscriptionGoal { | ||
| timeout: { | ||
| sec: number; | ||
| nsec: number; | ||
| }; | ||
| } | ||
|
|
||
| export interface RepublishTFsResponse { | ||
| topic_name: string; | ||
| } | ||
|
|
||
| export interface TFSubscriptionGoal { | ||
| source_frames: string[]; | ||
| target_frame: string; | ||
| angular_thres: number; | ||
| trans_thres: number; | ||
| rate: number; | ||
| } | ||
|
|
||
| export type TFSubscriptionResult = Record<never, never>; | ||
|
Contributor
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. what does it mean that this one is
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.
|
||
|
|
||
| export interface TFSubscriptionFeedback { | ||
| transforms: geometry_msgs.TransformStamped[]; | ||
| } | ||
| } | ||
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.
preceded this PR, but
topicTimeoutshould really beserviceTimeout... however, not worth breaking anything for this i guess.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.
Preceded this PR by many years I think!!