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

add jsk_spot_robot/spoteus #1263

Closed
wants to merge 15 commits into from
Closed

add jsk_spot_robot/spoteus #1263

wants to merge 15 commits into from

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Oct 28, 2020

  • add color imformation

  • add spot-interface.l

  • spot.l

Screenshot from 2020-10-28 16-11-33

@knorth55 knorth55 added this to the 1.1.1 milestone Oct 29, 2020
@k-okada
Copy link
Member Author

k-okada commented Oct 30, 2020

@708yamaguchi to create colored spot model run roseus '(progn (load "spot-utils.l")(objects (list (spot))))'
Screenshot from 2020-10-30 12-50-28

@YoheiKakiuchi
Copy link
Member

eus_assimpが入っていると、daeでテクスチャマッピングしてるファイルを読み込むことができるので、以下のような感じでurdfと同じ表示にできます。
そんなに時間かかってるようでもないので、spot-util.lの最後にいれてもいいかもしれないです。

(when (ros::rospack-find "eus_assimp")
  (load "package://eus_assimp/euslisp/eus-assimp.l")
  (dolist (bd (send *spot* :bodies));; <-
    (let ((nm (send bd :name)))
      (when (substringp "package" nm)
        (setq nm (ros::resolve-ros-path nm))
        (if nm
            (let ((new-glv (load-mesh-file nm :scale 1000.0))
                  (org-glv (bd . gl::aglvertices))
                  )
              (send new-glv :transform (send org-glv :worldcoords))
              (send (send org-glv :parent) :assoc new-glv)
              (send (send org-glv :parent) :dissoc org-glv)
              (setq (bd . gl::aglvertices) new-glv)
              )))))
  )

spot

@sktometometo
Copy link
Contributor

Please don't merge this PR. otherwise #1376 will be broken.

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

Successfully merging this pull request may close these issues.

4 participants