simulation.utils.geometry.vector module¶
Vector.
Reference¶
-
class
Vector(*args, **kwargs)[source]¶ Bases:
shapely.geometry.point.PointImplementation of the mathematical vector object.
Inheriting from shapely enables to use their powerful operations in combination with other objects, e.g. lines, polygons.
Initialization can be done in one of the following ways.
- Parameters
[x (np.array) –
y (np.array) –
z] (np.array) –
geometry_msgs/Vector –
(x (float) –
y* (float) –
z*) (float) –
- Keyword Arguments
r (float) – length of vector
phi (float) – angle between vector and x-y-plane
A vector is always initialized with 3 coordinates. If there’s no third coordinate provided, z:=0.
-
classmethod
from_geometry_msg(geometry_msg: geometry_msgs.msg._Vector3.Vector3)[source]¶ Initialize from ROS geometry_msg.
-
to_geometry_msg() → geometry_msgs.msg._Vector3.Vector3[source]¶ To ROS geometry_msg.
- Returns
This vector as a geometry_msgs/Vector3
-
rotated(*args, **kwargs)¶
-
cross(*args, **kwargs)¶
-
property
argument¶ Return the argument of the vector in radian.
- Type
float