$ go get github.com/mehmetkillioglu/rclgo
$ go install github.com/mehmetkillioglu/rclgo/cmd/rclgo
$ go install github.com/mehmetkillioglu/rclgo/cmd/rclgo-gen
$ rclgo-gen generate
Mimics the official rcl-command
rclgo topic echo /topic/name std_msgs.ColorRGBA
rclgo expects a Golang-implementation of all the ROS2 messages to exists. To use rclgo with your set of ROS2 plugins and modules, you need to generate the Golang-bindings before first use.
rclgo-gen generate /opt/ros/galactic/share/px4_msgs/msg/AdcReport.msg
See the rclgo commandline client source code: