ecal

package
v0.0.0-...-270d295 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// eCAL Components.
	CNone       uint = 0x000
	CPublisher  uint = 0x001
	CSubscriber uint = 0x002
	CService    uint = 0x004
	CMonitoring uint = 0x008
	CLogging    uint = 0x010
	CTimeSync   uint = 0x020
	CDefault    uint = CPublisher | CSubscriber | CService | CLogging | CTimeSync
	CAll        uint = CPublisher | CSubscriber | CService | CMonitoring | CLogging | CTimeSync
)

Variables

This section is empty.

Functions

func Finalize

func Finalize() bool

func GetLoadedConfigFilePath

func GetLoadedConfigFilePath() string

func GetVersion

func GetVersion() C.struct_version

func GetVersionDateString

func GetVersionDateString() string

func GetVersionString

func GetVersionString() string

func Initialize

func Initialize(config Config, unitName string, components uint) bool

func IsComponentInitialized

func IsComponentInitialized(component uint) bool

func IsInitialized

func IsInitialized() bool

func Ok

func Ok() bool

func PublisherShmEnabled

func PublisherShmEnabled() bool

func PublisherTCPEnabled

func PublisherTCPEnabled() bool

func PublisherUDPEnabled

func PublisherUDPEnabled() bool

func SetState

func SetState(severity ProcessSeverity, level ProcessSeverityLevel, state string)

Set the processes state info.

func ShutdownLocalEcalProcess

func ShutdownLocalEcalProcess(pid int)

Signals an event to a local process to cause eCAL::Ok() to return false.

func SubscriberShmEnabled

func SubscriberShmEnabled() bool

func SubscriberTCPEnabled

func SubscriberTCPEnabled() bool

func SubscriberUDPEnabled

func SubscriberUDPEnabled() bool

Types

type BinaryPublisher

type BinaryPublisher = publisher.GenericPublisher[[]byte]

func NewBinaryPublisher

func NewBinaryPublisher(topic string) (*BinaryPublisher, error)

type BinarySubscriber

type BinarySubscriber = subscriber.GenericSubscriber[[]byte]

func NewBinarySubscriber

func NewBinarySubscriber(topic string) (*BinarySubscriber, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(opts ...ConfigOption) Config

func (*Config) Delete

func (c *Config) Delete()

type ConfigOption

type ConfigOption func(*Config)

func WithConsoleLogAll

func WithConsoleLogAll() ConfigOption

Enable all log levels when printing eCAL logs to stderr.

func WithConsoleLogging

func WithConsoleLogging(enable bool) ConfigOption

Enable/Disable printing eCAL logs to stderr.

func WithUDPLogAll

func WithUDPLogAll() ConfigOption

Enable all log levels when sending eCAL logs over UDP.

func WithUDPLogReceiving

func WithUDPLogReceiving(enable bool) ConfigOption

func WithUDPLogging

func WithUDPLogging(enable bool) ConfigOption

Enable/Disable sending eCAL logs over UDP.

type DataType

type DataType = ecaltypes.DataType

type ProcessSeverity

type ProcessSeverity uint8

func (ProcessSeverity) String

func (p ProcessSeverity) String() string

type ProcessSeverityLevel

type ProcessSeverityLevel uint8
const (
	ProcSevLevel1 ProcessSeverityLevel = 1
	ProcSevLevel2 ProcessSeverityLevel = 2
	ProcSevLevel3 ProcessSeverityLevel = 3
	ProcSevLevel4 ProcessSeverityLevel = 4
	ProcSevLevel5 ProcessSeverityLevel = 5
)

type ProtoMessage

type ProtoMessage[T any] interface {
	*T
	proto.Message
}

Type must be a pointer and implement the proto.Message interface.

type ProtobufPublisher

type ProtobufPublisher[T proto.Message] = publisher.GenericPublisher[T]

func NewProtobufPublisher

func NewProtobufPublisher[U any, T ProtoMessage[U]](topic string) (*ProtobufPublisher[T], error)

type ProtobufSubscriber

type ProtobufSubscriber[T proto.Message] = subscriber.GenericSubscriber[T]

func NewProtobufSubscriber

func NewProtobufSubscriber[U any, T ProtoMessage[U]](topic string) (*ProtobufSubscriber[T], error)

type StringPublisher

type StringPublisher = publisher.GenericPublisher[string]

func NewStringPublisher

func NewStringPublisher(topic string) (*StringPublisher, error)

type StringSubscriber

type StringSubscriber = subscriber.GenericSubscriber[string]

func NewStringSubscriber

func NewStringSubscriber(topic string) (*StringSubscriber, error)

Directories

Path Synopsis
Implementation for cgo preamble functions
Implementation for cgo preamble functions
Implementation for cgo preamble functions
Implementation for cgo preamble functions