can I estimate or predict a path for random point, given its position,its angle,its velocity ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
if I deployed a point randomly, so when I want to move it its adding the displacement to the position as a result we will get the new position. My question is that, can I esstimate X values for each displacement with out move this random point OR make it move and back to its position to test the second angle and back to its position to test the third angle and so forth...? as illustrated in the example below. Thanks in advance for any help
angleOptions = [-14.3239 -3.5810 -2.8648 4324 1.4324 1.5915 1.7905 2.0463 2.3873 14.3239];
for bestangle1 = 1:numel(angleOptions)
X(bestangle1) = here do some calculations
pickangle11 = ActionSpace11(bestangle1);
displacement = [cos(bestangle1(:)) .* v1 ,sin(bestangle1(:)) .* v1]; % v=8mps
end
NewPosition= OldPosition + displacement;
4 Kommentare
Torsten
am 17 Okt. 2022
I don't understand the problem. Use variables with different names:
for bestangle1 = 1:numel(angleOptions)
virtual_X(bestangle1) = here do some calculations
pickangle11 = ActionSpace11(bestangle1);
virtual_displacement = [cos(bestangle1(:)) .* v1 ,sin(bestangle1(:)) .* v1]; % v=8mps
end
virtual_NewPosition= OldPosition + virtual_displacement;
Antworten (0)
Siehe auch
Kategorien
Mehr zu Robotics System Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!