TrackedSegment

Message Definition

int8                           type
geometry_msgs/PoseWithCovariance    pose
geometry_msgs/TwistWithCovariance   twist
geometry_msgs/AccelWithCovariance   accel

Field Descriptions

  • type (int8)

    Type of the tracked segment. See TrackedSegmentType for possible values.

  • pose (geometry_msgs/PoseWithCovariance)

    Estimated pose of the segment with uncertainty information.

  • twist (geometry_msgs/TwistWithCovariance)

    Estimated velocity of the segment with uncertainty information.

  • accel (geometry_msgs/AccelWithCovariance)

    Estimated acceleration of the segment with uncertainty information.

Example Usage

# Python
from cohan_msgs.msg import TrackedSegment
from geometry_msgs.msg import PoseWithCovariance, TwistWithCovariance, AccelWithCovariance

# Create a TrackedSegment message
segment = TrackedSegment()

# Set segment type
segment.type = 0  # Set appropriate type from TrackedSegmentType

# Set pose with covariance
segment.pose = PoseWithCovariance()
# Configure pose and covariance...

# Set twist with covariance
segment.twist = TwistWithCovariance()
# Configure twist and covariance...

# Set acceleration with covariance
segment.accel = AccelWithCovariance()
# Configure acceleration and covariance...