animated frames do not match the same frames when plotted

Abierto
#171 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Open the linked animate_start_to_end.ipynb.json notebook and reproduce the SE3 animation using the reported poses. Then inspect the animate method to compare behavior with and without the start argument. Done means the animation begins at the supplied start pose and ends at the pose on which animate is called.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi,

first of all, I would like to express my appreciation for this great python package.

I did some experiments with SE3 objects and animations and found a behavior of the animate method that I can't explain.
If SE3 is animated without the start argument, everything works as expected. The same applies if you explicitly start at SE3(). However, if the start is an arbitrary pose, the animated frame does not start in the expected pose and does not end at the pose for which animate is called.

t = SE3([
    SE3(),
    SE3([-1,0,2]),  # start
    SE3.RPY([10, 5, -20], unit='deg') * SE3([1,2,1]), # end
])
t[0].plot(frame='0', color='black')
t[1].plot(frame='1', color='blue')
t[2].plot(frame='2', color='red')
t[2].animate(frame='2m', start=t[1], color='purple')    # frame does not move from t[1] to t[2] as I would expect
# t[2].animate(frame='2m', start=t[0], color='purple')  # ok, frame moves from t[0] to [2]
# t[2].animate(frame='2m', color='purple')              # ok, frame moves from origin to t[2]

I have also summarized the experiment in a jupyter notebook animate_start_to_end.ipynb.json (remove the json ending to open it as notebook).
Can you please check it and let me know if I am doing something wrong.

Best regards.

Lenguaje dominante
Python
Estrellas
641
Forks
102
Merge medio
1 d 18 h
PR fusionados (30 d)
4

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rai-opensource/spatialmath-python

Todos los issues de rai-opensource/spatialmath-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.