gazebogenmsg
Description
gazebogenmsg(
generates
dependencies for Gazebo custom message support using the protocol buffer (protobuf) files
(folderpath
).proto
) in the specified folder folderpath
. It
then outputs the generated dependency files to the same folder. The function expects one or
more .proto
files in the same folder. See Algorithms for more information
about using Simulink® to communicate with Gazebo,
as well as sending and receiving custom messages.
gazebogenmsg(
specifies options using one or more name-value pair arguments.folderpath
,Name,Value
)
For example, 'GazeboVersion','Gazebo 10'
sets the Gazebo message
version to Gazebo 10.
Examples
Input Arguments
Limitations
The
gazebogenmsg
function supports the proto2 version of the protobuf language. The function does not support the proto2 fieldsmap
,group
,extend
,extensions
, andreserved
.You can run the Simulink model multiple times but you need to restart MATLAB® to run
gazebogenmsg
function again.gazebogenmsg
function not supported with MATLAB Compiler™.
Tips
Supported Compilers
Windows: Microsoft Visual C++ 14.0 and later
Linux: g++ 6.0.0 and later
Mac: Xcode Clang++ 10.0.0 and later
Algorithms
Add and save the install path by running the command presented at the end of
gazebogenmsg
function output.Use the
packageGazeboPlugin
function to package the plugin.Copy, install and run the plugin on the Gazebo machine.
Use the Gazebo Publish Simulink block to send the custom messages to the Gazebo machine.
Use the Gazebo Subscribe Simulink block to receive the custom messages from the Gazebo machine.
References
[1] Google Developers. “Language Guide | Protocol Buffers.” Accessed July 17, 2020. https://protobuf.dev/programming-guides/proto/.
Version History
Introduced in R2020b