Public Member Functions | |
def | __init__ |
def | add_imu_topic |
def | add_motor_velocity_topic |
def | add_pose_topic |
def | add_twist_topic |
def | add_waypoint_topic |
def | add_wrench_topic |
def | compare_positions |
def | extract_imu_topics |
def | extract_messages |
def | extract_motor_velocity_topics |
def | extract_pose_topics |
def | extract_twist_topics |
def | extract_waypoint_topics |
def | extract_wrench_topics |
def | get_collisions |
def | plot_3d_trajectories |
def | plot_accelerations |
def | plot_angular_velocities |
def | plot_position_error |
def | plot_positions |
def | plot_rpys |
Public Attributes | |
acc | |
ang_vel | |
bag | |
bag_time_end | |
bag_time_start | |
imu_topics | |
motor_vel | |
motor_velocity_topics | |
pos | |
pose_topics | |
pqr | |
prefix | |
quat | |
rpy | |
save_plots | |
topics | |
twist_topics | |
waypoint | |
waypoint_topics | |
wrench | |
wrench_topics |
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.
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.
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 489 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 422 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 367 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 552 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.
Definition at line 215 of file analyze_bag.py.