conversion

package
v2.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package conversion contains functions to import ROS definition into Golang.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportAction

func ImportAction(path string, goPkgName string, rosPkgName string, w io.Writer) error

ImportAction generates Go file from an .action file and writes to the io.Writer.

func ImportMessage

func ImportMessage(path string, goPkgName string, rosPkgName string, w io.Writer) error

ImportMessage generates Go file from a .msg file and writes to the io.Writer.

func ImportPackage

func ImportPackage(name string, rosDir string, goDir string) error

ImportPackage generates Go files for all ROS definitions under the directory.

func ImportPackageRecursive

func ImportPackageRecursive(dir string) error

ImportPackageRecursive generates Go files for all ROS definitions under the directory if it's a ROS package.

func ImportService

func ImportService(path string, goPkgName string, rosPkgName string, w io.Writer) error

ImportService generates Go file from a .srv file and writes to the io.Writer.

Types

type Definition

type Definition struct {
	RosType   string
	GoType    string
	Name      string
	Value     string
	HasQuotes bool
}

Definition is a message definition.

type Field

type Field struct {
	TypeArray    string
	TypePkg      string
	Type         string
	Name         string
	NameOverride string
}

Field is a message field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL