question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

agent state to 2D pose

See original GitHub issue

❓ Questions and Help

I was trying to convert agent state into a 2D pose tuple (x, y, theta). I followed some existent code, but the result doesn’t seem to be correct.

Here is the code.

position = sim.get_agent_state().position
rot = sim.get_agent_state().rotation
pose = [0.0, 0.0, 0.0]
pose[0] = position[0] # for x
pose[1] = position[2] # for y

direction_vector = np.array([0, 0, -1])
heading_vector = quaternion_rotate_vector(rot.inverse(), direction_vector)
pose[2] = cartesian_to_polar(-heading_vector[2], heading_vector[0])[1] # for theta

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
erikwijmanscommented, Nov 7, 2019
1reaction
erikwijmanscommented, Nov 7, 2019

Can you give more information about why “the result doesn’t seem to be correct”? This is the 2D pose of the agent in some coordinate system, but maybe not the coordinate system you are expecting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cofopose: Conditional 2D Pose Estimation with Transformers
In Table 4, we look at how our proposed Cofopose compares to other state-of-the-art pose estimation networks on the. COCOtest-dev set. H-B*** ...
Read more >
Self-Supervised Active Triangulation for 3D Human Pose ...
Our fully trainable agent consists of a 2d pose estimation network (any of which would work) and a deep reinforcement learning-based policy for...
Read more >
[2203.11004] Multi-Agent Relative Pose Estimation with UWB ...
We propose a novel inter-agent relative 2D pose estimation system where each participating agent is equipped with several ultra-wideband (UWB) ...
Read more >
Self-Supervised Active Triangulation for 3D Human Pose ...
Abstract: Existing state-of-the-art estimation systems are able to accurately detect the 2d poses of multiple people in images.
Read more >
Meta Agent Teaming Active Learning for Pose Estimation
2d human pose estimation: New benchmark and state of the art analysis. In Proceedings of the IEEE Con- ference on computer Vision and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found