pyplot.example_animation
¶
Copyright (C) 2025 Murilo Marques Marinho (www.murilomarinho.info)
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Author: Murilo M. Marinho
Module Contents¶
Functions¶
Create an animation function compatible with |
|
API¶
- pyplot.example_animation.animate_robot(n, robot, stored_q, stored_time)¶
Create an animation function compatible with
plt
. Adapted from https://marinholab.github.io/OpenExecutableBooksRobotics//lesson-dq8-optimization-based-robot-control.- Parameters:
n – The frame number, necessary for pyplot.
robot – The DQ_SerialManipulator instance to plot.
stored_q – The sequence of joint configurations.
stored_time – The sequence of timepoints to plot in the title.
- pyplot.example_animation.main()¶