CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Public Member Functions | Public Attributes | List of all members
obstacle_spawner.WalkingPerson Class Reference

Public Member Functions

def __init__ (self, name, point_a, point_b, duration=10.0)
 
def get_position (self, t)
 
def get_yaw (self, t)
 

Public Attributes

 duration
 
 name
 
 point_a
 
 point_b
 

Detailed Description

A person moving smoothly between two points
using sinusoidal interpolation.

Constructor & Destructor Documentation

◆ __init__()

def obstacle_spawner.WalkingPerson.__init__ (   self,
  name,
  point_a,
  point_b,
  duration = 10.0 
)

Member Function Documentation

◆ get_position()

def obstacle_spawner.WalkingPerson.get_position (   self,
  t 
)
Sinusoidal interpolation between point_a and point_b.

◆ get_yaw()

def obstacle_spawner.WalkingPerson.get_yaw (   self,
  t 
)
Calculate facing direction based on movement.

Member Data Documentation

◆ duration

obstacle_spawner.WalkingPerson.duration

◆ name

obstacle_spawner.WalkingPerson.name

◆ point_a

obstacle_spawner.WalkingPerson.point_a

◆ point_b

obstacle_spawner.WalkingPerson.point_b

The documentation for this class was generated from the following file: