ros2-for-unity icon indicating copy to clipboard operation
ros2-for-unity copied to clipboard

spawn gameobject in unity based on real world coordinates

Open kkirby04 opened this issue 3 years ago • 1 comments

hi , i am using computer vision to detect peoples position and would like to be able to spawn their positions in unity. so far i have the publisher publishing these corrdinates of the peoepl in the real world to unity subscriber node. but now i am unsure as to how to wirte in the ros2 namespace language you guys have made to spawn these people at the subscribed positions. any help would be great. many thanks, kieran

kkirby04 avatar Jul 15 '22 08:07 kkirby04

@kkirby04 I got to this quite late, hope you managed to find a solution. You would need to implement a solution in the application layer, this project does not handle that. There are conversions you could use for coordinates themselves, but implementing a Map component (with configurable fix) is a good place to start.

adamdbrw avatar Aug 18 '22 09:08 adamdbrw

I believe that this is Unity specific issue, and it is best to look for an answer on unity answers or inside Unity documentation (Object.Instantiate might be something that you are looking for).

pijaro avatar Nov 02 '22 09:11 pijaro