can I estimate or predict a path for random point, given its position,its angle,its velocity ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Torsten
2022-10-17
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;
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics System Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!