本文主要是介绍创建ROS msg和srv,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.关于msg和srv
msg: msg files are simple text files that describe the fields of a ROS message. They are used to generate source code for messages in different languages.
srv: an srv file describes a service. It is composed of two parts: a request and a response.
msg files are stored in themsg directory of a package, and srv files are stored in the srv directory.
msgs are just simple text files with a field type and field name per line. The fieldtypes you can use are:
int8, int16, int32, int64 (plusuint*)
float32, float64
string
time, duration
other msg files
这篇关于创建ROS msg和srv的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!