postprocess

package
v0.3.46 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package postprocess contains functionality to postprocess pointcloud maps

Index

Constants

View Source
const (

	// ToggleCommand can be used to turn postprocessing on and off.
	ToggleCommand = "postprocess_toggle"
	// AddCommand can be used to add points to the pointcloud  map.
	AddCommand = "postprocess_add"
	// RemoveCommand can be used to remove points from the pointcloud  map.
	RemoveCommand = "postprocess_remove"
	// UndoCommand can be used to undo last postprocessing step.
	UndoCommand = "postprocess_undo"
	// PathCommand can be used to specify a pcd that has already been postprocessed.
	PathCommand = "postprocess_path"
)

Variables

This section is empty.

Functions

func UpdatePointCloud

func UpdatePointCloud(
	data []byte,
	updatedData *[]byte,
	tasks []Task,
) error

UpdatePointCloud iterated through a list of tasks and adds or removes points from data and writes the updated pointcloud to updatedData.

Types

type Instruction

type Instruction int

Instruction describes the action of the postprocess step.

const (
	// Add is the instruction for adding points.
	Add Instruction = iota
	// Remove is the instruction for removing points.
	Remove = iota
)

type Task

type Task struct {
	Instruction Instruction
	Points      []r3.Vector
}

Task can be used to construct a postprocessing step.

func ParseDoCommand

func ParseDoCommand(
	unstructuredPoints interface{},
	instruction Instruction,
) (Task, error)

ParseDoCommand parses postprocessing DoCommands into Tasks.

Jump to

Keyboard shortcuts

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