-
Notifications
You must be signed in to change notification settings - Fork 83
feat: multi-ODrive support with node_id + timestamp in odrive status message #40
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: main
Are you sure you want to change the base?
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 |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| launch: | ||
|
|
||
| - node: | ||
| pkg: "odrive_can" | ||
| exec: "odrive_can_node" | ||
| name: "can_node6" | ||
| namespace: "odrive_axis0" | ||
| param: | ||
| - | ||
| name: "node_id" | ||
| value: 6 | ||
| - | ||
| name: "interface" | ||
| value: "can0" | ||
| - node: | ||
| pkg: "odrive_can" | ||
| exec: "odrive_can_node" | ||
| name: "can_node7" | ||
| namespace: "odrive_axis0" | ||
| param: | ||
| - | ||
| name: "node_id" | ||
| value: 7 | ||
| - | ||
| name: "interface" | ||
| value: "can0" | ||
| - node: | ||
| pkg: "odrive_can" | ||
| exec: "odrive_can_node" | ||
| name: "can_node8" | ||
| namespace: "odrive_axis0" | ||
| param: | ||
| - | ||
| name: "node_id" | ||
| value: 8 | ||
| - | ||
| name: "interface" | ||
| value: "can0" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| std_msgs/Header header | ||
|
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. Since we're not using any of the other fields in |
||
| uint32 node_id | ||
|
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. Your PR description states that this node_id should serve to distinguish two or more ODrive sources. But the typical way to do this that I know of is via the topic path on which they are published: ros2 topic echo /odrive_axis0/odrive_status
ros2 topic echo /odrive_axis1/odrive_status
...Is there a scenario where this does not work? |
||
| float32 bus_voltage | ||
| float32 bus_current | ||
| float32 fet_temperature | ||
|
|
||
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.
these names should be different for each instance