Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
process_bag Namespace Reference

Functions

def index_plot_with_slider (figure_num, data, title, xlabel, ylabel)
 

Variables

 bag = rosbag.Bag(sys.argv[1])
 
list plan_trajectory_time_steps = []
 
 topics
 
list pure_pursuit_plan_trajectory_time_steps = []
 
list carma_final_waypoints_times_steps = []
 
list first_point = []
 
list second_point = []
 
list third_point = []
 
list fourth_point = []
 
int i = 0
 
list ctrl_raw = []
 
list ctrl_cmd = []
 
list vehicle_cmd = []
 
def plot1
 
def plot2
 
def plot3
 
 fig = plt.figure(8)
 
 fig2 = plt.figure(9)
 

Function Documentation

◆ index_plot_with_slider()

def process_bag.index_plot_with_slider (   figure_num,
  data,
  title,
  xlabel,
  ylabel 
)

Definition at line 92 of file process_bag.py.

92def index_plot_with_slider(figure_num, data, title, xlabel, ylabel):
93
94 fig = plt.figure(figure_num)
95
96 plt.title(title)
97 plt.xlabel(xlabel)
98 plt.ylabel(ylabel)
99 time_step = data[0]
100 l, = plt.plot(range(len(data[0])), data[0], '.')
101
102 time_step_ax = plt.axes([0.20, 0.01, 0.65, 0.03])
103 time_step_sldr = Slider(time_step_ax, 'Time Step', 0.0, len(data) - 1.0, valinit=0, valstep=1)
104
105 def update_timestep(val):
106 time_step = data[int(time_step_sldr.val)]
107 if (int(time_step_sldr.val) < 66 and int(time_step_sldr.val) > 62):
108 print ("Trajectory Size: " + str(len(time_step)))
109 l.set_xdata(range(len(time_step)))
110 l.set_ydata(time_step)
111 fig.canvas.draw_idle()
112
113 time_step_sldr.on_changed(update_timestep)
114
115 return (fig, l, time_step_sldr)
116
def index_plot_with_slider(figure_num, data, title, xlabel, ylabel)
Definition: process_bag.py:92

Variable Documentation

◆ bag

process_bag.bag = rosbag.Bag(sys.argv[1])

Definition at line 35 of file process_bag.py.

◆ carma_final_waypoints_times_steps

list process_bag.carma_final_waypoints_times_steps = []

Definition at line 51 of file process_bag.py.

◆ ctrl_cmd

list process_bag.ctrl_cmd = []

Definition at line 77 of file process_bag.py.

◆ ctrl_raw

list process_bag.ctrl_raw = []

Definition at line 72 of file process_bag.py.

◆ fig

process_bag.fig = plt.figure(8)

Definition at line 127 of file process_bag.py.

◆ fig2

process_bag.fig2 = plt.figure(9)

Definition at line 137 of file process_bag.py.

◆ first_point

◆ fourth_point

list process_bag.fourth_point = []

Definition at line 55 of file process_bag.py.

◆ i

int process_bag.i = 0

Definition at line 59 of file process_bag.py.

Referenced by basic_autonomy::waypoint_generation.add_lanefollow_buffer(), lanelet::MapConformer::anonymous_namespace{MapConformer.cpp}.addInferredPassingControlLine(), carma_wm_ctrl::WMBroadcaster.addScheduleFromMsg(), platoon_strategic_ihp::PlatoonManager.allPredecessorFollowing(), basic_autonomy::waypoint_generation.apply_speed_limits(), basic_autonomy::waypoint_generation.attach_past_points(), cooperative_lanechange::CooperativeLaneChangePlugin.bsmIDtoString(), yield_plugin::YieldPlugin.bsmIDtoString(), carma_wm::test.buildGuidanceTestMap(), route_following_plugin::RouteFollowingPlugin.bumper_pose_cb(), platoon_strategic_ihp::PlatoonManager.calculateTimeHeadway(), trajectory_visualizer::TrajectoryVisualizer.callbackPlanTrajectory(), yield_plugin::YieldPlugin.check_traj_for_digital_min_gap(), object_visualizer::Node.clear_and_update_old_objects(), stop_and_wait_plugin::StopandWait.compose_trajectory_from_centerline(), route::RouteGeneratorWorker.composeRouteMarkerMsg(), carma_wm_ctrl::WMBroadcaster.composeTCMMarkerVisualizer(), carma_wm_ctrl::WMBroadcaster.composeTCRStatus(), traffic_incident_parser::TrafficIncidentParserWorker.composeTrafficControlMesssages(), mobilitypath_visualizer::MobilityPathVisualizer.composeVisualizationMarker(), carma_wm::geometry.compute_finite_differences(), carma_wm::geometry.compute_templated_arc_lengths(), carma_wm::geometry.compute_templated_finite_differences(), carma_wm::geometry.concatenate_lanelets(), carma_wm_ctrl::WMBroadcaster.controlRequestFromRoute(), motion_computation::conversion.convert(), yield_plugin::YieldPlugin.convert_eceftrajectory_to_mappoints(), carma_wm::SignalizedIntersectionManager.convertLaneToLaneletId(), carma_wm::collision_detection.ConvertRoadwayObstacleToMovingObject(), carma_wm::collision_detection.ConvertVehicleToMovingObject(), stop_controlled_intersection_tactical_plugin::StopControlledIntersectionTacticalPlugin.create_case_one_speed_profile(), stop_controlled_intersection_tactical_plugin::StopControlledIntersectionTacticalPlugin.create_case_three_speed_profile(), basic_autonomy::waypoint_generation.create_lanechange_geometry(), basic_autonomy::waypoint_generation.create_lanefollow_geometry(), carma_wm_ctrl::WMBroadcaster.createWorkzoneGeometry(), yield_plugin::YieldPlugin.detect_trajectories_intersection(), object::ObjectDetectionTrackingWorker.detectedObjectCallback(), approaching_emergency_vehicle_plugin::ApproachingEmergencyVehiclePlugin.filter_points_ahead(), platoon_strategic_ihp::PlatoonStrategicIHPPlugin.findLaneletIndexFromPath(), platoon_strategic_ihp::PlatoonManager.findLowerBoundaryViolationClosestToTheHostVehicle(), platoon_strategic_ihp::PlatoonManager.findMaximumSpacingViolationClosestToTheHostVehicle(), yield_plugin::YieldPlugin.generate_JMT_trajectory(), bsm_generator::BSMGenerator.generateBSM(), approaching_emergency_vehicle_plugin::ApproachingEmergencyVehiclePlugin.generateErvRoute(), carma_wm_ctrl::WMBroadcaster.geofenceCallback(), yield_plugin::YieldPlugin.get_collision(), lci_strategic_plugin::LCIStrategicPlugin.get_final_entry_time_and_conditions(), basic_autonomy::waypoint_generation.get_nearest_point_index(), yield_plugin::YieldPlugin.get_predicted_velocity_at_time(), yield_plugin::YieldPlugin.get_relative_downtracks(), yield_plugin.get_smallest_time_step_of_traj(), platooning_control::PlatooningControlPlugin.get_trajectory_speed(), lanelet::MapConformer::anonymous_namespace{MapConformer.cpp}.getAllGermanTrafficRules(), platoon_strategic_ihp::PlatoonManager.getClosestIndex(), route::RouteGeneratorWorker.getClosestLaneletFromRouteLanelets(), approaching_emergency_vehicle_plugin::ApproachingEmergencyVehiclePlugin.getErvInformationFromBsm(), platoon_strategic_ihp::PlatoonManager.getIHPDesPosFollower(), carma_wm::CARMAWorldModel.getInLaneObjects(), carma_wm::CARMAWorldModel.getLaneletsBetween(), bsm_generator::BSMGeneratorWorker.getMsgId(), carma_wm::CARMAWorldModel.getNearestObjInLane(), traffic_incident_parser.getNearestPointIndex(), platoon_strategic_ihp::PlatoonManager.getPredecessorTimeHeadwaySum(), lightbar_manager::LightBarManager.handle_on_configure(), approaching_emergency_vehicle_plugin::ApproachingEmergencyVehiclePlugin.incomingBsmCallback(), boost::serialization.load(), carma_wm::geometry.local_circular_arc_curvatures(), carma_wm::WMListenerWorker.mapUpdateCallback(), subsystem_controllers::PluginManager.matching_capability(), carma_wm::geometry.matchSegment(), yield_plugin::YieldPlugin.max_trajectory_speed(), basic_autonomy::waypoint_generation.min_with_exclusions(), basic_autonomy::smoothing.moving_average_filter(), inlanecruising_plugin::smoothing.moving_average_filter(), intersection_transit_maneuvering.operator<<(), basic_autonomy::waypoint_generation.optimize_speed(), carma_cloud_client::CarmaCloudClient.parse_schedule(), carma_cloud_client::CarmaCloudClient.parseTCMXML(), route_following_plugin::RouteFollowingPlugin.plan_maneuvers_callback(), inlanecruising_plugin::InLaneCruisingPlugin.plan_trajectory_callback(), cooperative_lanechange::CooperativeLaneChangePlugin.plan_trajectory_callback(), intersection_transit_maneuvering::IntersectionTransitManeuveringNode.plan_trajectory_callback(), stop_controlled_intersection_tactical_plugin::StopControlledIntersectionTacticalPlugin.plan_trajectory_callback(), platooning_tactical_plugin::PlatooningTacticalPlugin.plan_trajectory_cb(), light_controlled_intersection_tactical_plugin::LightControlledIntersectionTacticalPlugin.planTrajectoryCB(), yield_plugin::YieldPlugin.polynomial_calc(), yield_plugin::YieldPlugin.polynomial_calc_d(), carma_wm::collision_detection.PredictObjectPosition(), carma_wm_ctrl::WMBroadcaster.preprocessWorkzoneGeometry(), basic_autonomy::waypoint_generation.process_trajectory_plan(), carma_wm_ctrl::WMBroadcaster.pubTCMACK(), carma_wm::IndexedDistanceMap.pushBack(), route::RouteGeneratorWorker.rerouteAfterRouteInvalidation(), basic_autonomy::waypoint_generation.resample_linestring_pair_to_same_size(), approaching_emergency_vehicle_plugin::ApproachingEmergencyVehiclePlugin.routeCallback(), carma_wm::WMListenerWorker.routingGraphFromMsg(), subsystem_controllers::LocalizationControllerNode.sensor_fault_map_from_json(), lightbar_manager::LightBarManagerWorker.setIndicatorCDAMap(), lightbar_manager::LightBarManagerWorker.setIndicatorControllers(), carma_wm_ctrl::WMBroadcaster.setIntersectionCoordCorrection(), carma_wm_ctrl::WMBroadcaster.splitLaneletWithRatio(), traffic_incident_parser::TrafficIncidentParserWorker.stringParserHelper(), carma_cooperative_perception.to_detection_msg(), stop_and_wait_plugin::StopandWait.trajectory_from_points_times_orientations(), basic_autonomy::waypoint_generation.trajectory_from_points_times_orientations(), cooperative_lanechange::CooperativeLaneChangePlugin.trajectory_plan_to_trajectory(), mobilitypath_publisher::MobilityPathPublication.trajectory_plan_to_trajectory(), yield_plugin::YieldPlugin.update_traj_for_cooperative_behavior(), platoon_strategic_ihp::PlatoonManager.updatesOrAddMemberInfo(), carma_wm::collision_detection.WorldCollisionDetection(), and carma_cloud_client::CarmaCloudClient.XMLconversion().

◆ plan_trajectory_time_steps

list process_bag.plan_trajectory_time_steps = []

Definition at line 37 of file process_bag.py.

◆ plot1

def process_bag.plot1
Initial value:
1= index_plot_with_slider(1, plan_trajectory_time_steps,
2 "/guidance/plan_trajectory", "Index", "Time (s)")

Definition at line 117 of file process_bag.py.

◆ plot2

def process_bag.plot2
Initial value:
1= index_plot_with_slider(2, pure_pursuit_plan_trajectory_time_steps,
2 "/guidance/pure_pursuit/plan_trajectory", "Index", "Time (s)")

Definition at line 120 of file process_bag.py.

◆ plot3

def process_bag.plot3
Initial value:
1= index_plot_with_slider(3, carma_final_waypoints_times_steps,
2 "/guidance/carma_final_waypoints", "Index", "Velocity (m/s)")

Definition at line 123 of file process_bag.py.

◆ pure_pursuit_plan_trajectory_time_steps

list process_bag.pure_pursuit_plan_trajectory_time_steps = []

Definition at line 44 of file process_bag.py.

◆ second_point

list process_bag.second_point = []

Definition at line 53 of file process_bag.py.

◆ third_point

list process_bag.third_point = []

Definition at line 54 of file process_bag.py.

◆ topics

process_bag.topics

◆ vehicle_cmd

list process_bag.vehicle_cmd = []

Definition at line 82 of file process_bag.py.