Code covered by the BSD License  

Highlights from
Sim.I.am

image thumbnail
from Sim.I.am by Jean-Pierre de la Croix
A MATLAB-based educational bridge between theory and practice in robotics.

simiam.simulator.Obstacle
classdef Obstacle < simiam.ui.Drawable
    
% Copyright (C) 2013, Georgia Tech Research Corporation
% see the LICENSE file included with this software
    
    properties
       type
    end
    
    methods
        function obj = Obstacle(parent, pose, geometry)
            obj = obj@simiam.ui.Drawable(parent, pose);
            obj.type = 'obstacle';
            geometry(:,3) = ones(size(geometry,1),1);
            surface = obj.add_surface(geometry, [1 0.4 0.4]);
            set(surface.handle_, 'EdgeColor', 'r');
        end
    end
    
end

Contact us