Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Unreal + ROS? "cannot use typeid with -fno-rtti"

Hi all,

I'm trying to use ROS with Unreal, but there is no way to make it works.

First, after insert the #include "ros/ros.h" on my Source/MyProj/MyProjPawn.cpp, I had problems because the compiler didn't find the ros.h file.

So, I added the /opt/ros/kinetic/include/ path to my Source/MyProj/MyProj.Build.cs using the code below:

PublicIncludePaths.AddRange( new string[] { "/opt/ros/kinetic/include/" } );

after that, when compiling the project, the compiler can find the ros.h file, but I have a lot of compiling errors and one of them is cannot use typeid with -fno-rtti.

The list of errors are:

Error 1 - /opt/ros/kinetic/include/ros/publisher.h:85:22: error: cannot use typeid with -fno-rtti

alt text

Error 2 - /opt/ros/kinetic/include/ros/service_client.h:108:5: error: cannot use 'try' with exceptions disabled

alt text

Error 3 - /opt/ros/kinetic/include/ros/master.h:80:18: error: expected unqualified-id

alt text

Anyone of you got through these problems? Do you know how to solve at least 1 of these 3 problems? I'm asking here because I already spent a whole week trying to make this simple #include "ros/ros.h" works but I wasn't able to do it.

Thanks in advance for the answers.

Product Version: UE 4.14
error1.png (23.5 kB)
error2.png (28.9 kB)
error3.png (19.9 kB)
more ▼

asked Mar 06 '17 at 02:25 PM in Linux

avatar image

Ruben Alves
20 5 10 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

First, Take a look at the UE4Duino project. It was showcased some time ago. Also, it may be a better idea to think of using something like that project to pipe the data you may wnt to be manipulating into unreal for you.

more ▼

answered Mar 06 '17 at 04:23 PM

avatar image

46 3 4

avatar image Ruben Alves Mar 07 '17 at 12:56 PM

Hi @cpyarger , I've downloaded the code of UE4Duino project and analysed it, but it didn't help.

Anyway, thank you for your answer.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can enable RTTI in the Target.cs file of your project, by adding

     UEBuildConfiguration.bUseRTTI = true;

to SetupGlobalEnvironment().

more ▼

answered Mar 24 '17 at 03:50 PM

avatar image

2.7k 59 6 88

avatar image Ruben Alves Oct 19 '17 at 12:36 PM

The errors happened to me with Unreal 4.14.x Adding bUseRTTI didn't solve the problem.

The two first errors (`-fno-rtti`, try) only disappeared after upgrade to Unreal 4.17.2.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question