ObjectHypothesisWithPose
covariance is the (6, 6) pose covariance ordered x, y, z, roll, pitch, yaw, or None.
Fields
| Name | Type | Default |
|---|---|---|
hypothesis | ObjectHypothesis | required |
pose | Pose | Pose() |
covariance | Array | None | None |
Example
One instance from the package's own test catalog; the output is its real repr().
ObjectHypothesisWithPose(hypothesis=ObjectHypothesis(class_id='bottle', score=0.91), pose=Pose(position=Point(x=0.4, y=-0.1, z=0.25), orientation=Quaternion(x=-0.10566871683993562, y=0.6991667342497077, z=0.10566871683993563, w=0.6991667342497078)))to_dict() as JSON
{
"_type": "vision/ObjectHypothesisWithPose",
"hypothesis": {
"_type": "vision/ObjectHypothesis",
"class_id": "bottle",
"score": 0.91
},
"pose": {
"_type": "geometry/Pose",
"position": {
"_type": "geometry/Point",
"x": 0.4,
"y": -0.1,
"z": 0.25
},
"orientation": {
"_type": "geometry/Quaternion",
"x": -0.10566871683993562,
"y": 0.6991667342497077,
"z": 0.10566871683993563,
"w": 0.6991667342497078
}
},
"covariance": null
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.