poses
Absolute poses associated with views in view set
Description
returns a table of absolute poses associated with the views contained in the view set,
sensorPoses
= poses(vSet
)vSet
.
Examples
Get Absolute Poses from Point Cloud View Set
Create an empty point cloud view set.
vSet = pcviewset;
Load point cloud data.
data = load('livingRoom.mat');
ptCloud1 = data.livingRoomData{1};
ptCloud2 = data.livingRoomData{2};
Add ptCloud1
to the view set.
absPose1 = rigid3d;
vSet = addView(vSet,1,absPose1,'PointCloud',ptCloud1);
Add ptCloud2
to the view set.
vSet = addView(vSet,2,'PointCloud',ptCloud2);
Estimate the rigid transformation between the two point clouds.
ptCloud2Downsampled = pcdownsample(ptCloud2,'gridAverage',0.1);
gridStep = 0.5;
relPose = pcregisterndt(ptCloud2Downsampled,ptCloud1,gridStep);
Add a connection between the two views.
vSet = addConnection(vSet,1,2,relPose);
Compute the accumulated absolute pose.
absPose2 = rigid3d(absPose1.T*relPose.T );
Update the absolute pose of second view.
vSet = updateView(vSet,2,absPose2);
Get absolute poses.
sensorPoses = poses(vSet)
sensorPoses=2×2 table
ViewId AbsolutePose
______ ____________
1 1x1 rigid3d
2 1x1 rigid3d
Input Arguments
vSet
— Point cloud view set
pcviewset
object
Point cloud view set, specified as a pcviewset
object.
Output Arguments
sensorPoses
— Absolute poses
two-column table
Absolute poses, returned as a two-column table. The table contains columns as described in this table.
Column | Description |
---|---|
ViewID | View identifier, returned as a positive integer. View identifiers are unique to a specific view. |
AbsolutePose | Absolute pose of the view, specified as a rigid3d object. |
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
When generating code, the output argument sensorPoses
is returned
as a structure with fields ViewID and
AbsolutePose.
Version History
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)