Autoware.Auto
motion::motion_testing_nodes Namespace Reference

Namespaces

 details
 

Classes

class  MotionTestingPublisher
 
struct  PeriodCountTopic
 
class  PeriodicPublisher
 
struct  TrajectoryProfile
 

Typedefs

using State = autoware_auto_vehicle_msgs::msg::VehicleKinematicState
 
using TFMessage = tf2_msgs::msg::TFMessage
 
using Trajectory = autoware_auto_planning_msgs::msg::Trajectory
 
using TrajectoryPoint = autoware_auto_planning_msgs::msg::TrajectoryPoint
 
using TransformStamped = geometry_msgs::msg::TransformStamped
 
using TrajectoryProfilesVec = std::vector< TrajectoryProfile >
 
using PubAllocT = rclcpp::PublisherOptionsWithAllocator< std::allocator< void > >
 

Functions

MOTION_TESTING_NODES_PUBLIC std::chrono::nanoseconds wait_for_matched (const rclcpp::PublisherBase &pub, const std::size_t minimum_match_count, const std::chrono::nanoseconds timeout=std::chrono::seconds{5LL}, const std::chrono::nanoseconds poll_period=std::chrono::milliseconds{1LL})
 
MOTION_TESTING_NODES_PUBLIC std::chrono::nanoseconds wait_for_matched (const rclcpp::SubscriptionBase &sub, const std::size_t minimum_match_count, const std::chrono::nanoseconds timeout=std::chrono::seconds{5LL}, const std::chrono::nanoseconds poll_period=std::chrono::milliseconds{1LL})
 

Typedef Documentation

◆ PubAllocT

using motion::motion_testing_nodes::PubAllocT = typedef rclcpp::PublisherOptionsWithAllocator<std::allocator<void> >

◆ State

using motion::motion_testing_nodes::State = typedef autoware_auto_vehicle_msgs::msg::VehicleKinematicState

◆ TFMessage

using motion::motion_testing_nodes::TFMessage = typedef tf2_msgs::msg::TFMessage

◆ Trajectory

using motion::motion_testing_nodes::Trajectory = typedef autoware_auto_planning_msgs::msg::Trajectory

◆ TrajectoryPoint

using motion::motion_testing_nodes::TrajectoryPoint = typedef autoware_auto_planning_msgs::msg::TrajectoryPoint

◆ TrajectoryProfilesVec

◆ TransformStamped

using motion::motion_testing_nodes::TransformStamped = typedef geometry_msgs::msg::TransformStamped

Function Documentation

◆ wait_for_matched() [1/2]

std::chrono::nanoseconds motion::motion_testing_nodes::wait_for_matched ( const rclcpp::PublisherBase &  pub,
const std::size_t  minimum_match_count,
const std::chrono::nanoseconds  timeout = std::chrono::seconds{5LL},
const std::chrono::nanoseconds  poll_period = std::chrono::milliseconds{1LL} 
)

Block thread until publisher has matched with at least a certain number of participants

Parameters
[in]pubThe publisher to check for number of matching participants
[in]minimum_match_countMinimum number of matching participants to wait for
[in]timeoutMaximum time to block for
[in]poll_periodTime to sleep between checks
Exceptions
std::runtime_erroron timeout
Returns
Time remaining before timeout, for chaining convenience

◆ wait_for_matched() [2/2]

std::chrono::nanoseconds motion::motion_testing_nodes::wait_for_matched ( const rclcpp::SubscriptionBase &  sub,
const std::size_t  minimum_match_count,
const std::chrono::nanoseconds  timeout = std::chrono::seconds{5LL},
const std::chrono::nanoseconds  poll_period = std::chrono::milliseconds{1LL} 
)

Block thread until subscription has matched with at least a certain number of participants

Parameters
[in]subThe subscription to check for number of matching participants
[in]minimum_match_countMinimum number of matching participants to wait for
[in]timeoutMaximum time to block for
[in]poll_periodTime to sleep between checks
Exceptions
std::runtime_erroron timeout
Returns
Time remaining before timeout, for chaining convenience