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:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You’ll need to correct the angle like here: https://github.com/facebookresearch/habitat-api/issues/109#issuecomment-499668103
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.