AgentTimeToGoal
Message Definition
Header header
uint64 id
int8 type
duration time_to_goal
Field Descriptions
header(std_msgs/Header)Standard ROS message header containing timestamp and frame information.
id(uint64)Unique identifier for the agent.
type(int8)Type identifier for the agent. See AgentType for possible values.
time_to_goal(duration)Estimated time remaining for the agent to reach its goal.
Links
Example Usage
# Python
import rospy
from cohan_msgs.msg import AgentTimeToGoal
# Create an AgentTimeToGoal message
time_to_goal = AgentTimeToGoal()
# Set header
time_to_goal.header.stamp = rospy.Time.now()
time_to_goal.header.frame_id = "map"
# Set agent information
time_to_goal.id = 1
time_to_goal.type = 0 # Set appropriate type from AgentType
# Set estimated time to goal (e.g., 30 seconds)
time_to_goal.time_to_goal = rospy.Duration(30.0)