trajectory_drawer module¶
-
class
trajectory_drawer.TrajectoryDrawer(params_file, width=None, height=None, drawpointcloud=True, useFigureWidget=True)¶ Bases:
objectThis class is used to print a the trajectory result from the slam method in a sequence of images, it use the Plotily library
Build the Trajectory drawer
- Parameters
params_file (str) – the Path to the .yaml file.
width (int) – the width of figure in pixel. Defaults to None
height (int) – the height of figure in pixel. Defaults to None
drawpointcloud (bool) – if is false the plot show only trajectory and not the point cloud. Defaults to True
useFigureWidget (bool) – use the plotily.graph_object.FigureWidget instance if false it used the plotily.graph_object.Figure
-
get_figure()¶ Return the figure
-
plot_trajcetory(slampy_app)¶ Compute the trajectory and add it to the figure :param slampy_app: the slampy instance used to compute the pose in the image :type slampy_app: Slampy