Ask Your Question
2

Modbus+ROS

asked 2012-05-09 23:53:12 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I need to know how to interact modbus with c++ coding in ROS? how to write python script for serial communication? how to use libmodbus? how to write coding in ROS for buffering the data from any device like contollers or ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-14 02:36:31 -0600

sbock gravatar image

Just in case someone else is also struggling with it. We published a wrapper package for ROS indigo with pymodbus. There are some python example scripts how to use the modbus and also and interface with standard ROS messages, if you want to communicate from c++.

Modbus Wrapper

As modbus is often used with PLCs, we also made some examples and corresponding projects for a Siemens PLC, as well as a Cognex insight 7200(C), both as modbus servers.

edit flag offensive delete link more
0

answered 2014-11-20 13:51:13 -0600

Wolf gravatar image

Just install libmodbus ( http://libmodbus.org/ ) to your system (download, extract, ./configure, make, sudo make install). Now you can use its API in your ROS node as in any other program. Further, the following file can be helpful for finding it in your CMakeLists.txt:

https://github.com/cmatei/indi-qhy/bl...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2012-05-09 23:53:12 -0600

Seen: 5,675 times

Last updated: Nov 20 '14