AgentTrajectory

Message Definition

uint64              id
int8                type
Trajectory          trajectory

Field Descriptions

  • id (uint64)

    Unique identifier for the agent.

  • type (int8)

    Type identifier for the agent. See AgentType for possible values.

  • trajectory (cohan_msgs/Trajectory)

    The planned or predicted trajectory of the agent.

Example Usage

# Python
import rospy
from cohan_msgs.msg import AgentTrajectory, Trajectory

# Create an AgentTrajectory message
agent_traj = AgentTrajectory()

# Set agent information
agent_traj.id = 1
agent_traj.type = 0  # Set appropriate type from AgentType

# Set trajectory
agent_traj.trajectory = Trajectory()
# Configure trajectory points...