jaxa / roscfe

RACS - the ROS1 and cFS System
Apache License 2.0
23 stars 3 forks source link

ROS Relay node missing header files #1

Closed kbiesiadecki141 closed 3 years ago

kbiesiadecki141 commented 3 years ago

Hi,

I am currently trying to run the ROS relay node, following the installation instructions provided in the README. However, I am encountering the error below, which indicates that I am missing a header file(s) for the node when I run catkin_make (after running catkin_make clean and catkin_make -i, as suggested in the instructions) in the ROS workspace where the relay_node was created.

For context, this is in fact the relay_node that results from running the ./start_cfs_converter.sh script. I am using the Connection.launch and MsgId2Topic.launch files provided without modification, although I know I will have to eventually, but I would not expect those changes to resolve this error.

Any help would be greatly appreciated. Thank you so much!

In file included from /home/ubuntu/astrolab/catkin_ws/src/relay_node/src/convert/publisher.cpp:19:0:
/home/ubuntu/astrolab/catkin_ws/src/relay_node/include/ros_serializer/ardrone_autonomy_navdata_serializer.h:12:38: fatal error: ardrone_autonomy/Navdata.h: No such file or directory
compilation terminated.
relay_node/CMakeFiles/relay_node.dir/build.make:158: recipe for target 'relay_node/CMakeFiles/relay_node.dir/src/convert/publisher.cpp.o' failed
make[2]: *** [relay_node/CMakeFiles/relay_node.dir/src/convert/publisher.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/ubuntu/astrolab/catkin_ws/src/relay_node/include/convert/subscriber.h:27:0,
                 from /home/ubuntu/astrolab/catkin_ws/src/relay_node/src/relay_node.cpp:17:
/home/ubuntu/astrolab/catkin_ws/src/relay_node/include/ros_serializer/ardrone_autonomy_navdata_serializer.h:12:38: fatal error: ardrone_autonomy/Navdata.h: No such file or directory
compilation terminated.
relay_node/CMakeFiles/relay_node.dir/build.make:62: recipe for target 'relay_node/CMakeFiles/relay_node.dir/src/relay_node.cpp.o' failed
make[2]: *** [relay_node/CMakeFiles/relay_node.dir/src/relay_node.cpp.o] Error 1
In file included from /home/ubuntu/astrolab/catkin_ws/src/relay_node/include/convert/subscriber.h:27:0,
                 from /home/ubuntu/astrolab/catkin_ws/src/relay_node/src/convert/subscriber.cpp:9:
/home/ubuntu/astrolab/catkin_ws/src/relay_node/include/ros_serializer/ardrone_autonomy_navdata_serializer.h:12:38: fatal error: ardrone_autonomy/Navdata.h: No such file or directory
compilation terminated.
relay_node/CMakeFiles/relay_node.dir/build.make:182: recipe for target 'relay_node/CMakeFiles/relay_node.dir/src/convert/subscriber.cpp.o' failed
make[2]: *** [relay_node/CMakeFiles/relay_node.dir/src/convert/subscriber.cpp.o] Error 1
CMakeFiles/Makefile2:462: recipe for target 'relay_node/CMakeFiles/relay_node.dir/all' failed
make[1]: *** [relay_node/CMakeFiles/relay_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j3 -l3" failed
carte731 commented 3 years ago

I'm having similar issues with with relay_node. Is there further documentation on how to implement it?

yuyuqq commented 3 years ago

Hi, A bug fix is added. Could you run start_cfs_converter.sh again after pull?

kbiesiadecki141 commented 3 years ago

This solution worked! The relay node appears to be running.