View Source mix rclex.gen.msgs (Rclex v0.11.1)

Generate codes of ROS 2 msg type

Before generating, specify msg types in config.exs is needed.

config :rclex, ros2_message_types: ["std_msgs/msg/String"]

Info

Be careful, ros2 msg type is case sensitive.

How to generate

mix rclex.gen.msgs

This task assumes that the environment variable ROS_DISTRO is set and refers to the msg types from /opt/ros/[ROS_DISTRO]/share.

We can also specify explicitly as follows

mix rclex.gen.msgs --from /opt/ros/foxy/share

How to clean

mix rclex.gen.msgs --clean