added StereoVOExample to GUI

release/4.3a0
Chris Beall 2012-06-14 18:49:53 +00:00
parent 562ec1b630
commit 13057e7548
2 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,7 @@ result = graph.optimize(initialEstimate);
toc toc
%% visualize initial trajectory, final trajectory, and final points %% visualize initial trajectory, final trajectory, and final points
figure(1); clf; hold on; cla; hold on;
% initial trajectory in red (rotated so Z is up) % initial trajectory in red (rotated so Z is up)
plot3(initialEstimate.zs(),-initialEstimate.xs(),-initialEstimate.ys(), '-*r','LineWidth',2); plot3(initialEstimate.zs(),-initialEstimate.xs(),-initialEstimate.ys(), '-*r','LineWidth',2);
@ -73,5 +73,6 @@ xlabel('X (m)'); ylabel('Y (m)'); zlabel('Z (m)');
points = result.points(); points = result.points();
plot3(points(:,3),-points(:,1),-points(:,2),'.'); plot3(points(:,3),-points(:,1),-points(:,2),'.');
axis([-4 4 -4 4 -4 4]);
axis equal axis equal
view(3) view(3)

View File

@ -134,7 +134,10 @@ echo off
% --- Executes on button press in StereoVO. % --- Executes on button press in StereoVO.
function StereoVO_Callback(hObject, eventdata, handles) function StereoVO_Callback(hObject, eventdata, handles)
fprintf(1,'StereoVOExample not implemented yet\n'); axes(handles.axes3);
echo on
StereoVOExample
echo off
% --- Executes on button press in Future. % --- Executes on button press in Future.
function Future_Callback(hObject, eventdata, handles) function Future_Callback(hObject, eventdata, handles)