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

Is it possible to create a GPS using BP? #271

Closed
dbarrita opened this issue Mar 14, 2024 · 4 comments
Closed

Is it possible to create a GPS using BP? #271

dbarrita opened this issue Mar 14, 2024 · 4 comments

Comments

@dbarrita
Copy link

Hi,
I'm working on using a GPS sensor in my simulation. For this I have georeferenced my level following the instructions in the unreal documentation. I have obtained the latitude, longitude and altitude of my robot using my robot's blueprint:
Captura desde 2024-03-14 11-45-49
Now I want to publish this data in a ROSNavSatFix message but i have seen that I can't set the latitude, longitude and altitude using the blueprint because in the source code the option "BlueprintReadWrite" isn't set in the UPROPERTY. Is there a way to publish the NavSatFix using the blueprint or do I have to program it in C++? Thanks in advance

@yuokamoto
Copy link
Contributor

Hi,
The main issue of this is BP does not support double
https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Variables/

Currently you need to program in C++ or publish as a different msg and parse in subscriber side.

@yuokamoto
Copy link
Contributor

Do you think setter/getter ftom/to float in BP useful for these cases?

@dbarrita
Copy link
Author

Hi, thanks for the quick reply! To answer your question, I don't know. I have experience programming in C++ but not in Unreal, so that is the only reason I used BP. I will try to program it in C++ then.

@yuokamoto
Copy link
Contributor

FYI:
I created PR
rapyuta-robotics/rclUE#139

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

No branches or pull requests

2 participants