-
Notifications
You must be signed in to change notification settings - Fork 135
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
Subscribing to OccupancyGrid #160
Comments
Hi @youngbin-song |
Hi @Sanic Thank you for you reply. Yes, I've managed to get the minimal example working on my side so there is no problem with the connection. This is the BeginPlay part of my subscriber. (Ignore the actor name)
Does this refer to the Running this currently causes a crash. The crash report says
Before the crash, the callback was working fine. However, it wouldn't print the 'width' value from the OccupancyGrid (from the MapMetaData). Also an additional info is that these OccupancyGrid data is not taken from UE4 but from an external ROS topic. Thanks again. |
Can you narrow the error down a bit more? |
Hey @Sanic. Sorry for the late reply to the thread. I was taking care of another project. I just got to test the code I've posted previously and it seems like the crash is caused by the calls on the ConcreteNavMessages. I updated the code to see if there was anything wrong with the messages and I've put them here.
The log was able to print the line As to access the attributes from the FROSBaseMsg, I'm not entirely sure how to access them as I'm new to the whole C++ thing in UE4. |
After some digging around, I was able to confirm that the message type Occupancy Grid from the callback function using this code.
I also noticed that the updating time for Unreal Engine wasn't the same as the ROS Bag. I'm not sure if this provides any clarity to the problem. If I remember correctly, the callback function was called approximately 4 times and then it wasn't called at all after that. Please let me know if there are any info require from me. Update # 1 Seems like trying to print the Update # 2 I've figured it out. Because I was new to the whole C++ side, I made a very simple mistake. The editor crashed when running the line I assume that it's because the log was expecting a string but received an integer instead which caused the editor to crash. Everything seems to work out fine except that the rate of the callback is not what I expect too. It seems that, at some point, I get an error like below.
|
Hi. First of all, thank you for making this plugin.
I've been trying to get the OccupancyGrid data from ROS but I'm having a lot of trouble doing it. I was able to subscribe to the Topicd but I couldn't get any callback strings from the code.
If I refer to #70, a converter for OccupancyGrid was added to the repo. Does that mean that I need to replace the converter in
Topic.cpp
to accommodate forUNavMsgsOccupancyGrid
? Or does theUBaseMessageConverter
converter work with it?I think it would be best if an example code would help me but any help is appreciated!
The text was updated successfully, but these errors were encountered: