Find bounding box and dynamically change it #6533
Replies: 1 comment
-
I don't know if it is the optimal way to do it but i found a way. I created a supervisor controller and changing the box through that in every step. I gain access to the box from these functions |
Beta Was this translation helpful? Give feedback.
-
I am using webots simulator and i want to calculate and add the bounding box of the mavic2pro robot (the whole drone and not just the parts of it). I managed to add to the proto file as a bounding object one box but it isn't the right size because i found the dimension with trial and error on how it seemed right.
So the first thing i need is to access the points of the drone in order to find the correct bounding box.
The second thing i want to do is to find a way to dynamically change the size of the bounding based on the speed of the drone. I know i can have the speed vector, i just don't know how to access and change the box size from the controller.
The language i write is python.
Lots of thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions