ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

For FRTPS on ros2 is JDK and gradle installation mandetory for compilation of source code?

asked 2019-06-07 08:08:32 -0500

prajyot gravatar image

updated 2019-06-07 09:17:21 -0500

gvdhoorn gravatar image

I am trying to compile the simple c++ code which publish the message using fastrtpsgen command. For example, fastrtpsgen HelloWorld.idl

This is output:

openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)
Loading templates...
Processing the file HelloWorld.idl...
cpp: error: HelloWorld.idl: No such file or directory
cpp: warning: ‘-x c’ after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
ERROR<callPreprocessor>: Preprocessor return an error 1
edit retag flag offensive close merge delete

Comments

Question answered? Could you please mark the question as answered by ticking the checkmark (✓) to the left of the answer if you feel it has been answered? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2019-06-10 06:57:24 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2019-06-07 09:19:05 -0500

gvdhoorn gravatar image

Afaik, if you're not using the ROS 2 message generation infrastructure, you'll have to follow the regular setup and installation instructions for FastRTPS. Those include installing a JDK if I remember correctly.

This is not really a ROS related issue though and this forum is trying to focus on ROS Q&A only.

It might be better to ask the FastRTPS maintainers this question.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-06-07 08:08:32 -0500

Seen: 111 times

Last updated: Jun 07 '19