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

Agent.get_pose() binding failing #808

Closed
francocipollone opened this issue Sep 16, 2021 · 1 comment · Fixed by #809
Closed

Agent.get_pose() binding failing #808

francocipollone opened this issue Sep 16, 2021 · 1 comment · Fixed by #809

Comments

@francocipollone
Copy link
Collaborator

francocipollone commented Sep 16, 2021

delphyne_crash demo fails at the end of the execution because the binding to get the pose of the agent doesn't seem to be working correctly.

  File "/home/franco/maliput_ws/install/delphyne_demos/lib/python3.6/site-packages/delphyne_demos/demos/crash.py", line 59, in check_for_agent_collisions
    agent1_pose = agent1.get_pose()
TypeError: Unable to convert function return value to a Python type! The signature was
	(self: delphyne.agents.Agent) -> Eigen::Transform<double, 3, 1, 0>

c++ GetPose implementation:

https://github.com/ToyotaResearchInstitute/delphyne/blob/04e431f112b82f96b22b92966787d01b3ea03a48/include/delphyne/mi6/agent_base.h#L87-L102

get_pose bind

https://github.com/ToyotaResearchInstitute/delphyne/blob/04e431f112b82f96b22b92966787d01b3ea03a48/python/delphyne/agents.cc#L54-L57

@francocipollone
Copy link
Collaborator Author

Even though we are including the eigen bindings that pybind11 provides (pybind11/eigen.h)

We are returning drake::Isometry3<T> which is an alias:

template <typename Scalar>
using Isometry3 = Eigen::Transform<Scalar, 3, Eigen::Isometry>;

However that binding doesn't seem to be included in pybind11/eigen.h.

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

Successfully merging a pull request may close this issue.

1 participant