Arrow Marker Orientation
Hey everyone,
I'm trying to publish an Arrow marker in the cluster center of extracted clusters. My goal is to set the orientation to the moving direction of the tracked cluster.
For this I'm able to utilize the X-Velocity and Y-Velocity (I also have access to the X and Y Position of the Point Origin)
Suppose for example the X-Velocity is 1 and the Y-Velocity is 0.5.
How do I set the POSE.ORIENTATION of the Arrow to point in a Direction that's parallel to the hypotenuse of this triangle (I do not want to change the length of the Arrow, just the direction)
Additionally I want it to point in the exact opposite direction if the velocity is negative (If the object is moving backwards, the arrow should point there too)
Thanks in advance!