Public Member Functions | |
def | __init__ (self, bag_path_name, save_plots, prefix=None) |
def | add_imu_topic (self, topic) |
def | add_motor_velocity_topic (self, topic) |
def | add_pose_topic (self, topic) |
def | add_twist_topic (self, topic) |
def | add_waypoint_topic (self, topic) |
def | add_wrench_topic (self, topic) |
def | compare_positions (self, pose_indeces) |
def | extract_imu_topics (self, topic, msg, bag_time) |
def | extract_messages (self) |
def | extract_motor_velocity_topics (self, topic, msg, bag_time) |
def | extract_pose_topics (self, topic, msg, bag_time) |
def | extract_twist_topics (self, topic, msg, bag_time) |
def | extract_waypoint_topics (self, topic, msg, bag_time) |
def | extract_wrench_topics (self, topic, msg, bag_time) |
def | get_collisions (self, start_time=None, end_time=None) |
def | plot_3d_trajectories (self) |
def | plot_accelerations (self, plot_suffix=None) |
def | plot_angular_velocities (self, start_time=None, end_time=None, settling_time=None, x_range=None, y_range=None, plot_suffix=None) |
def | plot_position_error (self, set_point, settling_radius=None, start_time=None, end_time=None, settling_time=None, x_range=None, y_range=None, plot_suffix=None) |
def | plot_positions (self, start_time=None, end_time=None, settling_time=None, x_range=None, y_range=None, plot_suffix=None) |
def | plot_rpys (self, start_time=None, end_time=None, settling_time=None, plot_suffix=None) |
This class can be used to plot data and compare data.
Definition at line 211 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.__init__ | ( | self, | |
bag_path_name, | |||
save_plots, | |||
prefix = None |
|||
) |
Definition at line 215 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_imu_topic | ( | self, | |
topic | |||
) |
Add an imu topic that should be analyzed.
Definition at line 252 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_motor_velocity_topic | ( | self, | |
topic | |||
) |
Add a motor velocity topic.
Definition at line 259 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_pose_topic | ( | self, | |
topic | |||
) |
Add a pose topic that should be analyzed.
Definition at line 238 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_twist_topic | ( | self, | |
topic | |||
) |
Add a twist topic that should be analyzed.
Definition at line 246 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_waypoint_topic | ( | self, | |
topic | |||
) |
Add a waypoint topic that should be analyzed.
Definition at line 265 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.add_wrench_topic | ( | self, | |
topic | |||
) |
Add a topic of the wrench.
Definition at line 271 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.compare_positions | ( | self, | |
pose_indeces | |||
) |
Compare the position lists of pose_topics. Args: pose_indeces (list): Indeces of pose_topics for comparison.
Definition at line 606 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_imu_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the imu topic msg content to the acc attributes.
Definition at line 323 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_messages | ( | self | ) |
Run through the bag file and assign the msgs to its attributes.
Definition at line 277 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_motor_velocity_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the motor velocity topic msg content to the motor_vel attributes.
Definition at line 341 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_pose_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the pose topic msg content to the rpy and pos attributes.
Definition at line 290 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_twist_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the twist topic msg content to the pqr attributes.
Definition at line 333 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_waypoint_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the waypoint topic msg to the waypoint attributes.
Definition at line 352 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.extract_wrench_topics | ( | self, | |
topic, | |||
msg, | |||
bag_time | |||
) |
Append the wrench topic msg to the wrench attributes.
Definition at line 359 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.get_collisions | ( | self, | |
start_time = None , |
|||
end_time = None |
|||
) |
Get the collision times.
Definition at line 621 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_3d_trajectories | ( | self | ) |
Definition at line 545 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_accelerations | ( | self, | |
plot_suffix = None |
|||
) |
Plot all acceleration lists.
Definition at line 586 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_angular_velocities | ( | self, | |
start_time = None , |
|||
end_time = None , |
|||
settling_time = None , |
|||
x_range = None , |
|||
y_range = None , |
|||
plot_suffix = None |
|||
) |
Plot all angular_velocity lists.
Definition at line 491 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_position_error | ( | self, | |
set_point, | |||
settling_radius = None , |
|||
start_time = None , |
|||
end_time = None , |
|||
settling_time = None , |
|||
x_range = None , |
|||
y_range = None , |
|||
plot_suffix = None |
|||
) |
Plot all position errors lists.
Definition at line 424 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_positions | ( | self, | |
start_time = None , |
|||
end_time = None , |
|||
settling_time = None , |
|||
x_range = None , |
|||
y_range = None , |
|||
plot_suffix = None |
|||
) |
Plot all position lists.
Definition at line 369 of file analyze_bag.py.
def rosbag_tools.analyze_bag.AnalyzeBag.plot_rpys | ( | self, | |
start_time = None , |
|||
end_time = None , |
|||
settling_time = None , |
|||
plot_suffix = None |
|||
) |
Plot rpy lists.
Definition at line 553 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.acc |
Definition at line 229 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.ang_vel |
Definition at line 230 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.bag |
Definition at line 216 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.bag_time_end |
Definition at line 235 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.bag_time_start |
Definition at line 234 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.imu_topics |
Definition at line 220 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.motor_vel |
Definition at line 228 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.motor_velocity_topics |
Definition at line 221 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.pos |
Definition at line 224 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.pose_topics |
Definition at line 218 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.pqr |
Definition at line 227 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.prefix |
Definition at line 236 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.quat |
Definition at line 225 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.rpy |
Definition at line 226 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.save_plots |
Definition at line 233 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.topics |
Definition at line 217 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.twist_topics |
Definition at line 219 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.waypoint |
Definition at line 231 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.waypoint_topics |
Definition at line 222 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.wrench |
Definition at line 232 of file analyze_bag.py.
rosbag_tools.analyze_bag.AnalyzeBag.wrench_topics |
Definition at line 223 of file analyze_bag.py.