SGbraitenbergvehicle

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.4, Creation date: 2023-10-22, Last change: 2025-09-15

creates a simple solid similar to the vehicles of von Braitenberg

Description

The center is between the wheels

See Also: sprintftext , SGofCPLcommand , SGtextstamp , TofWheel

Example Illustration

 missing image of SGbraitenbergvehicle(BLH,COL,NAM)

Syntax

SG=SGbraitenbergvehicle([BLH,COL,NAM])

Input Parameter

BLH: [Widht length height]l default is [30 40 10]
COL: Optional colors for sensor wheel text; default is [yrc]
NAM: optional name ontop; default is empty;

Output Parameter

SG: Solid Geometry

Examples


SGbraitenbergvehicle([20 20 10],'yr','JIMMY'); SGR=ans;
TR=eye(3); hr=[];
for i=1:100
d=rand(1,2)/5; % robot creates random numbers for the wheel movement
% Create robot animation
TR=TR*TofWheel(30,d); delete(hr); hr=SGplotalpha(SGtransT(SGR,T3ofT2(TR)));
axis tight; view(-30,30); drawnow;
end




Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21