MATLAB Answers

How can I interface CAN_Pack _Unpack with a ROS publisher to generate a standalone ROS node?

2 views (last 30 days)
I want to create a standalone ROS node from simulink to send data via CAN messages.

  0 Comments

Sign in to comment.

Accepted Answer

Tohru Kikawada
Tohru Kikawada on 5 May 2019
Edited: Tohru Kikawada on 5 May 2019
Unfortunately, Robotics System Toolbox does not support ROS node generation for models that contain models generating shared libraries like CAN Transmit block in Vehicle Network Toolbox. https://mathworks.com/help/vnt/ug/cantransmit.html
To create the ROS node linking the shared libraries, you'll need to generate C code from models not containing ROS blocks, package the necessary files with packNGo, and then write a custom ROS wrapper code and CMakeLists.txt by hand.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by