Public Member Functions | Public Attributes | List of all members
rosbag_tools.analyze_bag.AnalyzeBag Class Reference
Inheritance diagram for rosbag_tools.analyze_bag.AnalyzeBag:
Inheritance graph
[legend]

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)
 

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
 

Detailed Description

This class can be used to plot data and compare data.

Definition at line 211 of file analyze_bag.py.

Constructor & Destructor Documentation

◆ __init__()

def rosbag_tools.analyze_bag.AnalyzeBag.__init__ (   self,
  bag_path_name,
  save_plots,
  prefix = None 
)

Definition at line 215 of file analyze_bag.py.

Member Function Documentation

◆ add_imu_topic()

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.

◆ add_motor_velocity_topic()

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.

◆ add_pose_topic()

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.

◆ add_twist_topic()

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.

◆ add_waypoint_topic()

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.

◆ add_wrench_topic()

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.

◆ compare_positions()

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.

◆ extract_imu_topics()

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.

◆ extract_messages()

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.

◆ extract_motor_velocity_topics()

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.

◆ extract_pose_topics()

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.

◆ extract_twist_topics()

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.

◆ extract_waypoint_topics()

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.

◆ extract_wrench_topics()

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.

◆ get_collisions()

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.

◆ plot_3d_trajectories()

def rosbag_tools.analyze_bag.AnalyzeBag.plot_3d_trajectories (   self)

Definition at line 545 of file analyze_bag.py.

◆ plot_accelerations()

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.

◆ plot_angular_velocities()

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.

◆ plot_position_error()

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.

◆ plot_positions()

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.

◆ plot_rpys()

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.

Member Data Documentation

◆ acc

rosbag_tools.analyze_bag.AnalyzeBag.acc

Definition at line 229 of file analyze_bag.py.

◆ ang_vel

rosbag_tools.analyze_bag.AnalyzeBag.ang_vel

Definition at line 230 of file analyze_bag.py.

◆ bag

rosbag_tools.analyze_bag.AnalyzeBag.bag

Definition at line 216 of file analyze_bag.py.

◆ bag_time_end

rosbag_tools.analyze_bag.AnalyzeBag.bag_time_end

Definition at line 235 of file analyze_bag.py.

◆ bag_time_start

rosbag_tools.analyze_bag.AnalyzeBag.bag_time_start

Definition at line 234 of file analyze_bag.py.

◆ imu_topics

rosbag_tools.analyze_bag.AnalyzeBag.imu_topics

Definition at line 220 of file analyze_bag.py.

◆ motor_vel

rosbag_tools.analyze_bag.AnalyzeBag.motor_vel

Definition at line 228 of file analyze_bag.py.

◆ motor_velocity_topics

rosbag_tools.analyze_bag.AnalyzeBag.motor_velocity_topics

Definition at line 221 of file analyze_bag.py.

◆ pos

rosbag_tools.analyze_bag.AnalyzeBag.pos

Definition at line 224 of file analyze_bag.py.

◆ pose_topics

rosbag_tools.analyze_bag.AnalyzeBag.pose_topics

Definition at line 218 of file analyze_bag.py.

◆ pqr

rosbag_tools.analyze_bag.AnalyzeBag.pqr

Definition at line 227 of file analyze_bag.py.

◆ prefix

rosbag_tools.analyze_bag.AnalyzeBag.prefix

Definition at line 236 of file analyze_bag.py.

◆ quat

rosbag_tools.analyze_bag.AnalyzeBag.quat

Definition at line 225 of file analyze_bag.py.

◆ rpy

rosbag_tools.analyze_bag.AnalyzeBag.rpy

Definition at line 226 of file analyze_bag.py.

◆ save_plots

rosbag_tools.analyze_bag.AnalyzeBag.save_plots

Definition at line 233 of file analyze_bag.py.

◆ topics

rosbag_tools.analyze_bag.AnalyzeBag.topics

Definition at line 217 of file analyze_bag.py.

◆ twist_topics

rosbag_tools.analyze_bag.AnalyzeBag.twist_topics

Definition at line 219 of file analyze_bag.py.

◆ waypoint

rosbag_tools.analyze_bag.AnalyzeBag.waypoint

Definition at line 231 of file analyze_bag.py.

◆ waypoint_topics

rosbag_tools.analyze_bag.AnalyzeBag.waypoint_topics

Definition at line 222 of file analyze_bag.py.

◆ wrench

rosbag_tools.analyze_bag.AnalyzeBag.wrench

Definition at line 232 of file analyze_bag.py.

◆ wrench_topics

rosbag_tools.analyze_bag.AnalyzeBag.wrench_topics

Definition at line 223 of file analyze_bag.py.


The documentation for this class was generated from the following file:


rotors_evaluation
Author(s): Fadri Furrer, Michael Burri, Mina Kamel, Janosch Nikolic, Markus Achtelik
autogenerated on Mon Feb 28 2022 23:39:00