Generate dependencies for Gazebo custom message support
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.
The gazebogenmsg
function supports the proto2
version of the protobuf language. The function does not support the proto2 fields
map
, group
, extend
,
extensions
, and reserved
.
You can run the Simulink model multiple
times but you need to restart MATLAB® to run
gazebogenmsg
function again.
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
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.
[1] Google Developers. “Language Guide | Protocol Buffers.” Accessed July 17, 2020. https://developers.google.com/protocol-buffers/docs/proto.