Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pose_to_tf.py 的なものが欲しい #1666

Open
ishiguroJSK opened this issue Dec 2, 2020 · 3 comments
Open

pose_to_tf.py 的なものが欲しい #1666

ishiguroJSK opened this issue Dec 2, 2020 · 3 comments

Comments

@ishiguroJSK
Copy link
Contributor

tf_to_poseはありますが,PoseStamped (frame_id="camera_optical_frame")の(frame_id="world")に対するposeを知りたい時に,一旦TF解決する必要があるわけですが,
PoseStampedをTFに変換するツールって無くないですか?

なければ作ろうと思いますが
https://answers.ros.org/question/215656/how-to-transform-a-pose/

@k-okada
Copy link
Member

k-okada commented Dec 2, 2020

https://github.com/search?q=pose_to_tf.py&type=code
で探すと@mmurooka
https://github.com/mmurooka/euslib/tree/6080a3e66afc5785111f14561a5d1b290e0f3d0a/demo/murooka/wholebody_manipulation_planner/demo_robot_carry_object/script
が出てきますね.これを入れておきましょう.

ちなみに,どのノードがPoseを出しているのでしょうか.だいたいはそのノードでTFも出すような変更する方向に落ち着く気もします.https://github.com/jsk-ros-pkg/jsk_recognition/search?q=publish_tf

@ishiguroJSK
Copy link
Contributor Author

具体的にはPointcloud_screenpointで,実際には対象はPointです(最悪これはtopic_toolsでpoint->poseにできる).
https://github.com/jsk-ros-pkg/jsk_recognition/blob/2c1400e15d79b4f5f9fc7e6784a58bb277ebd8e3/jsk_pcl_ros/src/pointcloud_screenpoint_nodelet.cpp#L305

ただ一方で,完全にTFに移行すると,クリックしたタイミングに応じたコールバック処理がやりずらくなるので,
確かにPointとTFを両方pubするというのが良いのかもしれません.
https://answers.ros.org/question/63748/subscribe-to-tf-eg-tf-callback/

@k-okada
Copy link
Member

k-okada commented Dec 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants