Direction#

#include "navground/sim/tasks/direction.h"
struct DirectionTask : public navground::sim::Task#

This class implement a task that makes the agent follow a fixed direction.

Registered properties:

Public Functions

inline explicit DirectionTask(core::Vector2 direction = core::Vector2(1, 0))#

Constructs a new instance.

Parameters:

direction[in] The direction

inline void set_direction(const core::Vector2 &value)#

Sets the direction.

Parameters:

value[in] The desired direction

inline core::Vector2 get_direction() const#

Gets the direction.

Returns:

The direction.