ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Decoding and encoding CAN messages from dbc file

asked 2020-12-06 09:56:17 -0500

mros gravatar image

updated 2020-12-06 09:58:13 -0500

Hi all, Is there a package which allows reading dbc file, decoding, and encoding CAN message with C/C++ language? I am using ROS Noetic.

Thank you.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
0

answered 2022-12-13 20:22:30 -0500

Hulkthehunter gravatar image

updated 2022-12-13 20:23:54 -0500

You can use cantools package for that, assuming you have the DBC file. The cantools generate functions called ..._unpack

You can write a ROS node to read all the CAN data and load the dbc file for decoding.

edit flag offensive delete link more
0

answered 2022-12-06 09:17:34 -0500

MCFurry gravatar image

Or use this package to parse dbc files and encode/decode them into ROS messages.

edit flag offensive delete link more
0

answered 2022-11-16 12:28:13 -0500

ofs4 gravatar image

updated 2022-11-18 02:26:52 -0500

Hi, You can use this tool to generate a ROS1/2 parser package according to your dbc file.

edit flag offensive delete link more
0

answered 2021-01-12 02:39:36 -0500

rage gravatar image

you can use cantools to generate your C or C++ code.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-12-06 09:56:17 -0500

Seen: 2,601 times

Last updated: Dec 13 '22