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

Building issue #5

Open
JuliusSustarevas opened this issue May 20, 2019 · 5 comments
Open

Building issue #5

JuliusSustarevas opened this issue May 20, 2019 · 5 comments

Comments

@JuliusSustarevas
Copy link

JuliusSustarevas commented May 20, 2019

Hi,
I'm trying to build this on u18.04 melodic. Getting this issue:

reuleaux_moveit/map_generation/include/map_generation/utility.h:7:10: fatal error: map_generation/WorkSpace.h: No such file or directory
 #include "map_generation/WorkSpace.h"

It does not seem to be related to melodic however. Any advice? The file just isn't there

@jbeck28
Copy link

jbeck28 commented Jun 18, 2020

I'm having the same problem here.

@jbeck28
Copy link

jbeck28 commented Jun 18, 2020

I sort of doubt that one year later you're still worried about this... But in case anyone else happens across this problem, here's a short explanation and fix. As you say, the header file doesn't exist. That's because in the CMakeLists file, we have the following lines:

add_message_files(
 FILES
 WsSphere.msg
 WorkSpace.msg
)

This tells us that WorkSpace.h is actually a header file containing a message definition. So what is happening here is that messages are not getting built before the rest of the project, in particular before discretization.cpp and utility.cpp. To fix this, just add the following lines underneath the add_library(...):

add_dependencies(discretization map_generation_generate_messages_cpp)
add_dependencies(utility map_generation_generate_messages_cpp)

I'm having other compilation errors, but this fixes the one mentioned here.

@vonunwerth
Copy link

vonunwerth commented Mar 7, 2021

@jbeck28 For me it fixed the compilation error and I was able to build it (kinetic-devel branch) completly now without any more changes.

@MShields1986
Copy link

MShields1986 commented Mar 29, 2023

Ubuntu 20.04 - ROS Noetic

I applied the above fix to both the master and kinetic-devel branches and I am now faced with a new issue.

/home/user/catkin_ws/src/reuleaux_moveit/map_generation/src/map_generation/utility.cpp:82:33: error: ‘format’ is not a member of ‘boost’
   82 |   std::string name = str(boost::format("%s_%s_%d_reachability.h5") %robot_name %group_name % res);
      |                                 ^~~~~~
/home/user/catkin_ws/src/reuleaux_moveit/map_generation/src/map_generation/utility.cpp:82:22: error: ‘str’ was not declared in this scope; did you mean ‘std’?
   82 |   std::string name = str(boost::format("%s_%s_%d_reachability.h5") %robot_name %group_name % res);
      |                      ^~~
      |                      std

Needed to add...

#include <boost/format.hpp>

...to reuleaux_moveit/map_generation/include/map_generation/utility.h

@MShields1986
Copy link

MShields1986 commented Mar 29, 2023

Ubuntu 20.04 - ROS Noetic

The master branch now shows...

/home/user/catkin_ws/src/reuleaux_moveit/map_generation/src/map_generation/reachability.cpp:31:8: error: ‘moveit_msgs::PositionIKRequest’ {aka ‘struct moveit_msgs::PositionIKRequest_<std::allocator<void> >’} has no member named ‘attempts’
   31 |    req.attempts = 10;
      | 

Which is strange as the message type clearly has an attempts field.

Whereas the kinetic-devel branch now shows...

/home/user/catkin_ws/src/reuleaux_moveit/map_generation/include/map_generation/reachability.h:10:9: fatal error: moveit/move_group_interface/move_group.h: No such file or directory
   10 | #include<moveit/move_group_interface/move_group.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Moving over to working in this fork should anyone else find themselves here in the future.

MShields1986 added a commit to MShields1986/reuleaux_moveit that referenced this issue Mar 31, 2023
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

4 participants