Documentation
¶
Index ¶
- Variables
- func BoundingRectMinMax(r *image.Rectangle, p r3.Vector)
- func Cluster(pc pointcloud.PointCloud, maxDistance float64, ...) ([]pointcloud.PointCloud, error)
- func EuclideanRGB(c1, c2 color.Color) float64
- func FindPart(fsc *framesystem.Config, name string) *referenceframe.FrameSystemPart
- func FrameSystemWithSomeParts(ctx context.Context, myRobot framesystem.Service, names []string, ...) (*referenceframe.FrameSystem, error)
- func GetApproachPoint(p r3.Vector, deltaLinear float64, o *spatialmath.OrientationVectorDegrees) r3.Vector
- func GetMergedPointCloudFromMultiPositionSwitch(ctx context.Context, s toggleswitch.Switch, sleepTime time.Duration, ...) (pointcloud.PointCloud, error)
- func GetMergedPointCloudFromPositions(ctx context.Context, positions []toggleswitch.Switch, sleepTime time.Duration, ...) (pointcloud.PointCloud, error)
- func InBox(pt, min, max r3.Vector) bool
- func PCCrop(pc pointcloud.PointCloud, min, max r3.Vector) pointcloud.PointCloud
- func PCCropWithColor(pc pointcloud.PointCloud, min, max r3.Vector, colorFilters []ColorFilter) pointcloud.PointCloud
- func PCDetectCrop(pc pointcloud.PointCloud, detections []objectdetection.Detection, ...) (pointcloud.PointCloud, error)
- func PCFindHighestInRegion(pc pointcloud.PointCloud, box image.Rectangle) r3.Vector
- func PCFindLowestInRegion(pc pointcloud.PointCloud, box image.Rectangle) r3.Vector
- func PCLimitToImageBoxes(pc pointcloud.PointCloud, boxes []*image.Rectangle, colorCheck ColorCheck, ...) (pointcloud.PointCloud, error)
- func PCLookAtSegment(pc pointcloud.PointCloud) (pointcloud.PointCloud, error)
- func PCToImage(pc pointcloud.PointCloud) image.Image
- func PixelToPoint(properties camera.Properties, pixelX, pixelY, depth float64) (float64, float64, float64)
- func PrepBoundingRectForSearch() *image.Rectangle
- func RSPixelToPoint(properties camera.Properties, pixelX, pixelY, depth float64) (float64, float64, float64)
- type ArmPositionSaver
- func (aps *ArmPositionSaver) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (aps *ArmPositionSaver) GetNumberOfPositions(ctx context.Context, extra map[string]interface{}) (uint32, []string, error)
- func (aps *ArmPositionSaver) GetPosition(ctx context.Context, extra map[string]interface{}) (uint32, error)
- func (aps *ArmPositionSaver) Name() resource.Name
- func (aps *ArmPositionSaver) SetPosition(ctx context.Context, position uint32, extra map[string]interface{}) error
- type ArmPositionSaverConfig
- type ClusterConfig
- type ClusterService
- func (cs *ClusterService) CaptureAllFromCamera(ctx context.Context, cameraName string, opts viscapture.CaptureOptions, ...) (viscapture.VisCapture, error)
- func (cs *ClusterService) Classifications(ctx context.Context, img image.Image, n int, extra map[string]interface{}) (classification.Classifications, error)
- func (cs *ClusterService) ClassificationsFromCamera(ctx context.Context, cameraName string, n int, extra map[string]interface{}) (classification.Classifications, error)
- func (cs *ClusterService) Detections(ctx context.Context, img image.Image, extra map[string]interface{}) ([]objectdetection.Detection, error)
- func (cs *ClusterService) DetectionsFromCamera(ctx context.Context, cameraName string, extra map[string]interface{}) ([]objectdetection.Detection, error)
- func (cs *ClusterService) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (cs *ClusterService) GetObjectPointClouds(ctx context.Context, cameraName string, extra map[string]interface{}) ([]*viz.Object, error)
- func (cs *ClusterService) GetProperties(ctx context.Context, extra map[string]interface{}) (*vision.Properties, error)
- func (cs *ClusterService) Name() resource.Name
- type ColorCheck
- type ColorFilter
- type CropCameraConfig
- type DetectCropCameraConfig
- type LookAtCameraConfig
- type MergeCamera
- func (mapc *MergeCamera) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (mapc *MergeCamera) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
- func (mapc *MergeCamera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
- func (mapc *MergeCamera) Images(ctx context.Context, filterSourceNames []string, extra map[string]interface{}) ([]camera.NamedImage, resource.ResponseMetadata, error)
- func (mapc *MergeCamera) Name() resource.Name
- func (mapc *MergeCamera) NextPointCloud(ctx context.Context, extra map[string]interface{}) (pointcloud.PointCloud, error)
- func (mapc *MergeCamera) Properties(ctx context.Context) (camera.Properties, error)
- type MergeConfig
- type MultiArmPositionSwitch
- func (maps *MultiArmPositionSwitch) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (maps *MultiArmPositionSwitch) GetNumberOfPositions(ctx context.Context, extra map[string]interface{}) (uint32, []string, error)
- func (maps *MultiArmPositionSwitch) GetPosition(ctx context.Context, extra map[string]interface{}) (uint32, error)
- func (maps *MultiArmPositionSwitch) Name() resource.Name
- func (maps *MultiArmPositionSwitch) SetPosition(ctx context.Context, position uint32, extra map[string]interface{}) error
- type MultiArmPositionSwitchConfig
- type MultipleArmPosesCamera
- func (mapc *MultipleArmPosesCamera) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (mapc *MultipleArmPosesCamera) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
- func (mapc *MultipleArmPosesCamera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
- func (mapc *MultipleArmPosesCamera) Images(ctx context.Context, _ []string, _ map[string]interface{}) ([]camera.NamedImage, resource.ResponseMetadata, error)
- func (mapc *MultipleArmPosesCamera) Name() resource.Name
- func (mapc *MultipleArmPosesCamera) NextPointCloud(ctx context.Context, extra map[string]interface{}) (pointcloud.PointCloud, error)
- func (mapc *MultipleArmPosesCamera) Properties(ctx context.Context) (camera.Properties, error)
- type MultipleArmPosesConfig
- type Obstacle
- func (g *Obstacle) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (o *Obstacle) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (o *Obstacle) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
- func (g *Obstacle) GoToInputs(ctx context.Context, inputs ...[]referenceframe.Input) error
- func (o *Obstacle) Grab(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (o *Obstacle) IsHoldingSomething(ctx context.Context, extra map[string]interface{}) (gripper.HoldingStatus, error)
- func (o *Obstacle) IsMoving(context.Context) (bool, error)
- func (g *Obstacle) Kinematics(ctx context.Context) (referenceframe.Model, error)
- func (o *Obstacle) Name() resource.Name
- func (o *Obstacle) Open(ctx context.Context, extra map[string]interface{}) error
- func (o *Obstacle) Stop(context.Context, map[string]interface{}) error
- type ObstacleConfig
- type ObstacleOpenBox
- func (g *ObstacleOpenBox) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (o *ObstacleOpenBox) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (o *ObstacleOpenBox) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
- func (g *ObstacleOpenBox) GoToInputs(ctx context.Context, inputs ...[]referenceframe.Input) error
- func (o *ObstacleOpenBox) Grab(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (o *ObstacleOpenBox) IsHoldingSomething(ctx context.Context, extra map[string]interface{}) (gripper.HoldingStatus, error)
- func (o *ObstacleOpenBox) IsMoving(context.Context) (bool, error)
- func (g *ObstacleOpenBox) Kinematics(ctx context.Context) (referenceframe.Model, error)
- func (o *ObstacleOpenBox) Name() resource.Name
- func (o *ObstacleOpenBox) Open(ctx context.Context, extra map[string]interface{}) error
- func (o *ObstacleOpenBox) Stop(context.Context, map[string]interface{}) error
- type ObstacleOpenBoxConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCannotSpecifyGoalStateInExtra = errors.New("cannot specify 'goal_state' in 'extra', should be specified via 'joints'") ErrMustSpecifyAtLeastOneJointPosition = errors.New("must specify at least one joint position") )
View Source
var ArmPositionSaverModel = vmodutils.NamespaceFamily.WithModel("arm-position-saver")
View Source
var ClusterModel = vmodutils.NamespaceFamily.WithModel("pc-cluster")
View Source
var CropCameraModel = vmodutils.NamespaceFamily.WithModel("pc-crop-camera")
View Source
var DetectCropCameraModel = vmodutils.NamespaceFamily.WithModel("pc-detect-crop-camera")
View Source
var LookAtCameraModel = vmodutils.NamespaceFamily.WithModel("pc-look-at-crop-camera")
View Source
var MergeModel = vmodutils.NamespaceFamily.WithModel("pc-merge")
View Source
var MultiArmPositionSwitchModel = vmodutils.NamespaceFamily.WithModel("multi-arm-position-switch")
View Source
var MultipleArmPosesModel = vmodutils.NamespaceFamily.WithModel("pc-multiple-arm-poses")
View Source
var ObstacleModel = vmodutils.NamespaceFamily.WithModel("obstacle")
View Source
var ObstacleOpenBoxModel = vmodutils.NamespaceFamily.WithModel("obstacle-open-box")
View Source
var RealSenseProperties = camera.Properties{ IntrinsicParams: &transform.PinholeCameraIntrinsics{Width: 1280, Height: 720, Fx: 906.0663452148438, Fy: 905.1234741210938, Ppx: 646.94970703125, Ppy: 374.4667663574219}, DistortionParams: &transform.BrownConrady{RadialK1: 0, RadialK2: 0, RadialK3: 0, TangentialP1: 0, TangentialP2: 0}, }
Functions ¶
func Cluster ¶ added in v0.3.0
func Cluster(pc pointcloud.PointCloud, maxDistance float64, minPointsPerSegment, minPointsPerCluster int) ([]pointcloud.PointCloud, error)
func EuclideanRGB ¶ added in v0.3.0
func FindPart ¶ added in v0.1.11
func FindPart(fsc *framesystem.Config, name string) *referenceframe.FrameSystemPart
func FrameSystemWithSomeParts ¶ added in v0.1.15
func FrameSystemWithSomeParts(ctx context.Context, myRobot framesystem.Service, names []string, transforms []*referenceframe.LinkInFrame) (*referenceframe.FrameSystem, error)
func GetApproachPoint ¶ added in v0.2.5
func GetApproachPoint(p r3.Vector, deltaLinear float64, o *spatialmath.OrientationVectorDegrees) r3.Vector
GetApproachPoint
func GetMergedPointCloudFromMultiPositionSwitch ¶ added in v0.3.5
func GetMergedPointCloudFromMultiPositionSwitch(ctx context.Context, s toggleswitch.Switch, sleepTime time.Duration, srcCamera camera.Camera, extraForCamera map[string]any, fsSvc framesystem.Service, writeFilesToCaptureDirectory bool) (pointcloud.PointCloud, error)
func GetMergedPointCloudFromPositions ¶ added in v0.3.5
func GetMergedPointCloudFromPositions(ctx context.Context, positions []toggleswitch.Switch, sleepTime time.Duration, srcCamera camera.Camera, extraForCamera map[string]any, fsSvc framesystem.Service, writeFilesToCaptureDirectory bool) (pointcloud.PointCloud, error)
func PCCrop ¶ added in v0.2.8
func PCCrop(pc pointcloud.PointCloud, min, max r3.Vector) pointcloud.PointCloud
func PCCropWithColor ¶ added in v0.3.0
func PCCropWithColor(pc pointcloud.PointCloud, min, max r3.Vector, colorFilters []ColorFilter) pointcloud.PointCloud
func PCDetectCrop ¶ added in v0.3.3
func PCDetectCrop( pc pointcloud.PointCloud, detections []objectdetection.Detection, props camera.Properties) (pointcloud.PointCloud, error)
func PCFindHighestInRegion ¶ added in v0.2.8
func PCFindHighestInRegion(pc pointcloud.PointCloud, box image.Rectangle) r3.Vector
func PCFindLowestInRegion ¶ added in v0.2.8
func PCFindLowestInRegion(pc pointcloud.PointCloud, box image.Rectangle) r3.Vector
func PCLimitToImageBoxes ¶ added in v0.3.3
func PCLimitToImageBoxes( pc pointcloud.PointCloud, boxes []*image.Rectangle, colorCheck ColorCheck, props camera.Properties) (pointcloud.PointCloud, error)
func PCLookAtSegment ¶ added in v0.3.3
func PCLookAtSegment(pc pointcloud.PointCloud) (pointcloud.PointCloud, error)
func PCToImage ¶ added in v0.1.4
func PCToImage(pc pointcloud.PointCloud) image.Image
func PixelToPoint ¶
func RSPixelToPoint ¶
Types ¶
type ArmPositionSaver ¶ added in v0.1.1
type ArmPositionSaver struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*ArmPositionSaver) GetNumberOfPositions ¶ added in v0.1.1
func (*ArmPositionSaver) GetPosition ¶ added in v0.1.1
func (*ArmPositionSaver) Name ¶ added in v0.1.1
func (aps *ArmPositionSaver) Name() resource.Name
func (*ArmPositionSaver) SetPosition ¶ added in v0.1.1
type ArmPositionSaverConfig ¶ added in v0.1.1
type ArmPositionSaverConfig struct {
Arm string `json:"arm,omitempty"`
Joints []float64 `json:"joints,omitempty"`
Motion string `json:"motion,omitempty"`
Point r3.Vector `json:"point,omitzero"`
Orientation spatialmath.OrientationVectorDegrees `json:"orientation,omitzero"`
VisionServices []string `json:"vision_services,omitempty"`
Extra map[string]interface{} `json:"extra,omitempty"`
}
type ClusterConfig ¶ added in v0.3.0
type ClusterService ¶ added in v0.3.0
type ClusterService struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*ClusterService) CaptureAllFromCamera ¶ added in v0.3.0
func (cs *ClusterService) CaptureAllFromCamera(ctx context.Context, cameraName string, opts viscapture.CaptureOptions, extra map[string]interface{}) (viscapture.VisCapture, error)
func (*ClusterService) Classifications ¶ added in v0.3.0
func (cs *ClusterService) Classifications( ctx context.Context, img image.Image, n int, extra map[string]interface{}, ) (classification.Classifications, error)
func (*ClusterService) ClassificationsFromCamera ¶ added in v0.3.0
func (cs *ClusterService) ClassificationsFromCamera( ctx context.Context, cameraName string, n int, extra map[string]interface{}, ) (classification.Classifications, error)
func (*ClusterService) Detections ¶ added in v0.3.0
func (cs *ClusterService) Detections(ctx context.Context, img image.Image, extra map[string]interface{}) ([]objectdetection.Detection, error)
func (*ClusterService) DetectionsFromCamera ¶ added in v0.3.0
func (cs *ClusterService) DetectionsFromCamera(ctx context.Context, cameraName string, extra map[string]interface{}) ([]objectdetection.Detection, error)
func (*ClusterService) GetObjectPointClouds ¶ added in v0.3.0
func (*ClusterService) GetProperties ¶ added in v0.3.0
func (cs *ClusterService) GetProperties(ctx context.Context, extra map[string]interface{}) (*vision.Properties, error)
func (*ClusterService) Name ¶ added in v0.3.0
func (cs *ClusterService) Name() resource.Name
type ColorFilter ¶ added in v0.3.0
type CropCameraConfig ¶
type DetectCropCameraConfig ¶ added in v0.3.3
type LookAtCameraConfig ¶ added in v0.3.3
type MergeCamera ¶ added in v0.1.8
type MergeCamera struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*MergeCamera) Geometries ¶ added in v0.2.9
func (mapc *MergeCamera) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
func (*MergeCamera) Image ¶ added in v0.1.8
func (mapc *MergeCamera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
func (*MergeCamera) Images ¶ added in v0.1.8
func (mapc *MergeCamera) Images(ctx context.Context, filterSourceNames []string, extra map[string]interface{}) ([]camera.NamedImage, resource.ResponseMetadata, error)
func (*MergeCamera) Name ¶ added in v0.1.8
func (mapc *MergeCamera) Name() resource.Name
func (*MergeCamera) NextPointCloud ¶ added in v0.1.8
func (mapc *MergeCamera) NextPointCloud(ctx context.Context, extra map[string]interface{}) (pointcloud.PointCloud, error)
func (*MergeCamera) Properties ¶ added in v0.1.8
func (mapc *MergeCamera) Properties(ctx context.Context) (camera.Properties, error)
type MergeConfig ¶ added in v0.1.8
type MergeConfig struct {
Cameras []string
}
type MultiArmPositionSwitch ¶ added in v0.3.5
type MultiArmPositionSwitch struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*MultiArmPositionSwitch) GetNumberOfPositions ¶ added in v0.3.5
func (*MultiArmPositionSwitch) GetPosition ¶ added in v0.3.5
func (*MultiArmPositionSwitch) Name ¶ added in v0.3.5
func (maps *MultiArmPositionSwitch) Name() resource.Name
func (*MultiArmPositionSwitch) SetPosition ¶ added in v0.3.5
type MultiArmPositionSwitchConfig ¶ added in v0.3.5
type MultiArmPositionSwitchConfig struct {
Arm string `json:"arm,omitempty"`
JointsList [][]float64 `json:"joints_list,omitempty"`
Motion string `json:"motion,omitempty"`
VisionServices []string `json:"vision_services,omitempty"`
Extra map[string]any `json:"extra,omitempty"`
WriteFilesToCaptureDirectory bool `json:"write_files_to_capture_directory,omitempty"`
}
type MultipleArmPosesCamera ¶ added in v0.1.1
type MultipleArmPosesCamera struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*MultipleArmPosesCamera) Geometries ¶ added in v0.2.9
func (mapc *MultipleArmPosesCamera) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
func (*MultipleArmPosesCamera) Image ¶ added in v0.1.1
func (mapc *MultipleArmPosesCamera) Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error)
func (*MultipleArmPosesCamera) Images ¶ added in v0.1.1
func (mapc *MultipleArmPosesCamera) Images(ctx context.Context, _ []string, _ map[string]interface{}) ([]camera.NamedImage, resource.ResponseMetadata, error)
func (*MultipleArmPosesCamera) Name ¶ added in v0.1.1
func (mapc *MultipleArmPosesCamera) Name() resource.Name
func (*MultipleArmPosesCamera) NextPointCloud ¶ added in v0.1.1
func (mapc *MultipleArmPosesCamera) NextPointCloud(ctx context.Context, extra map[string]interface{}) (pointcloud.PointCloud, error)
func (*MultipleArmPosesCamera) Properties ¶ added in v0.1.1
func (mapc *MultipleArmPosesCamera) Properties(ctx context.Context) (camera.Properties, error)
type MultipleArmPosesConfig ¶ added in v0.1.1
type Obstacle ¶ added in v0.1.3
type Obstacle struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*Obstacle) CurrentInputs ¶ added in v0.2.0
func (*Obstacle) Geometries ¶ added in v0.1.3
func (*Obstacle) GoToInputs ¶ added in v0.2.0
func (*Obstacle) IsHoldingSomething ¶ added in v0.2.9
func (*Obstacle) Kinematics ¶ added in v0.2.0
type ObstacleConfig ¶ added in v0.1.3
type ObstacleConfig struct {
Geometries []spatialmath.GeometryConfig
}
func (*ObstacleConfig) ParseGeometries ¶ added in v0.1.3
func (c *ObstacleConfig) ParseGeometries() ([]spatialmath.Geometry, error)
type ObstacleOpenBox ¶ added in v0.2.8
type ObstacleOpenBox struct {
resource.AlwaysRebuild
resource.TriviallyCloseable
// contains filtered or unexported fields
}
func (*ObstacleOpenBox) CurrentInputs ¶ added in v0.2.8
func (g *ObstacleOpenBox) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
func (*ObstacleOpenBox) Geometries ¶ added in v0.2.8
func (o *ObstacleOpenBox) Geometries(ctx context.Context, _ map[string]interface{}) ([]spatialmath.Geometry, error)
func (*ObstacleOpenBox) GoToInputs ¶ added in v0.2.8
func (g *ObstacleOpenBox) GoToInputs(ctx context.Context, inputs ...[]referenceframe.Input) error
func (*ObstacleOpenBox) IsHoldingSomething ¶ added in v0.2.9
func (o *ObstacleOpenBox) IsHoldingSomething(ctx context.Context, extra map[string]interface{}) (gripper.HoldingStatus, error)
func (*ObstacleOpenBox) IsMoving ¶ added in v0.2.8
func (o *ObstacleOpenBox) IsMoving(context.Context) (bool, error)
func (*ObstacleOpenBox) Kinematics ¶ added in v0.2.8
func (g *ObstacleOpenBox) Kinematics(ctx context.Context) (referenceframe.Model, error)
func (*ObstacleOpenBox) Name ¶ added in v0.2.8
func (o *ObstacleOpenBox) Name() resource.Name
type ObstacleOpenBoxConfig ¶ added in v0.2.8
type ObstacleOpenBoxConfig struct {
Length, Width, Height float64
Thickness float64
ToMove string `json:"to_move"`
Motion string
Offset float64
}
func (*ObstacleOpenBoxConfig) Geometries ¶ added in v0.2.8
func (c *ObstacleOpenBoxConfig) Geometries(name string) ([]spatialmath.Geometry, error)
Click to show internal directories.
Click to hide internal directories.