ROS Bags¶
rosbag ¶
geometry_point_stamped_handler ¶
Handler for geometry_msgs/msg/PointStamped messages
Parameters:
-
msg(Any) –Message to handle
Returns:
-
dict[str, Any]–dict[str, Any]: Dictionary containing the data
Source code in trajectopy\io\rosbag.py
trajectories_from_rosbag ¶
trajectories_from_rosbag(filename: str) -> list[Trajectory]
Creates a trajectory from a ROS bag file
Parameters:
-
filename(str) –File to read
Returns:
-
Trajectory(list[Trajectory]) –Trajectory created from the ROS bag file
Source code in trajectopy\io\rosbag.py
read_ros_bag ¶
Reads a ROS bag file and returns the header and the data
Parameters:
-
filename(str) –File to read
Returns:
-
dict[str, dict[str, list[Any]]]–Tuple[HeaderData, np.ndarray]: Header data and data
Source code in trajectopy\io\rosbag.py
add_to_dict ¶
Adds a value to a dictionary
Parameters:
-
data(dict) –Dictionary to add the value to
-
key(str) –Key to add the value to
-
value(Any) –Value to add