cvra / robot-software

CVRA monorepo - All software running on our bots lives here
MIT License
44 stars 21 forks source link

Setup motor board emulator UAVCAN + Cmake #246

Closed antoinealb closed 5 years ago

antoinealb commented 5 years ago

This pull request set ups the base project for our simulation idea. It spins up a single node, giving it a CAN id and a CAN name based on the commandline flags.

It adds a dependency on Abseil, which I like as a stdlib extension after using it at work, but maybe we should discuss whether or not we are ok with this dependency.

We will most likely review this during the next software call.

Fixes issue #240

Tested manually by running it on a virtual SocketCAN adapter and querying the bus with UAVCAN's monitoring tools.

antoinealb commented 5 years ago

Tested today, and it is possible to have several UAVCAN instances in the same process (several threads). Therefore the whole gRPC design might not be needed.

@nuft Back to the whiteboard !

msplr commented 5 years ago

Therefore the whole gRPC design might not be needed.

Interesting, we should keep it simple - at least for the first version. So maybe keep everything in a single process?

antoinealb commented 5 years ago

Yes I would advocate for a two process design: still separating the visualization.