Skip to content
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

CAN Python Interface #37

Open
ryan-barry-99 opened this issue Jan 29, 2024 · 4 comments
Open

CAN Python Interface #37

ryan-barry-99 opened this issue Jan 29, 2024 · 4 comments
Assignees

Comments

@ryan-barry-99
Copy link
Contributor

Set up the Python end of the CAN interface to control on the Jetson Nano

@ryan-barry-99 ryan-barry-99 self-assigned this Jan 29, 2024
@ryan-barry-99
Copy link
Contributor Author

To my knowledge we should be able to interface using the python-can library

@ryan-barry-99
Copy link
Contributor Author

ryan-barry-99 commented Mar 2, 2024

Create custom ROS message types for can messages

File: CAN.msg
Contents:
uint32 id
uint8[8] buf

File: CANFD.msg
Contents:
uint32 id
uint8[64] buf

@ryan-barry-99
Copy link
Contributor Author

The CAN node should run independently as a ROS node and publish and subscribe to topics for the messages sent over them. The messages will be packed and unpacked at their respective nodes (ie for the drive base velocities we would pack that at the drive base node and the CAN node will only need to deal with sending and receiving the messages)

@ryan-barry-99
Copy link
Contributor Author

sudo chmod 766 /dev/ttyS0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants