animated frames do not match the same frames when plotted

未关闭
#171 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
641
派生
102
平均合并
1 天 18 小时
30 天内合并 PR
4

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rai-opensource/spatialmath-python 的其他 Issue

查看 rai-opensource/spatialmath-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。