Problems with ROS1 (Melodic) on Windows 10 (Rospack, Roscore, WIN32)

asked 2018-11-07 07:00:35 -0500

TKay gravatar image

updated 2018-11-09 04:17:13 -0500

Hey everyone,

so I installed ROS (Melodic) on Windows, following these steps:

https://github.com/ms-iot/ROSOnWindow...

The ros-catkin-tools package was giving me some trouble but by running choco upgrade ros-catkin-tools, it was installed as well.

However, after going through the ROS tutorials again (as suggested here), I got multiple errors:

WIN32-Problem

After adding a new package to my catkin workspace and running catkin_make, I had the following error:

C:\opt\ros\melodic\x64\include\ros/time.h(68): fatal error C1083: "sys/time.h": No such file or directory

And I was only able to solve this by adding

#if defined(_WIN32) && !defined(WIN32)
#define WIN32
#endif

to each .cpp file. (I only tried out the publisher and subscriber from the ROS tutorials.) But surely, there must be a better way of solving this. I don’t believe that this should be necessary, should it?

Rospack-Warning

Every time rospack is somehow used, I get this warning:

[rospack] Warning: cannot create rospack cache directory : boost::filesystem::create_directory: The system cannot find the path specified.

Even though the publisher/subscriber/etc. still work fine, I’d like to know what to do about this warning as I’m not sure about how to solve it.

Roscore

Without starting roscore in a seperate command window, I cannot successfully start the talker or the listener with rosrun.
For example, If I only run,

rosrun beginner_tutorials talker

nothing is displayed. No error, warning or anything else. Shouldn’t roscore start automatically if I use rosrun though?

Ros-Melodic-Simulators

I haven’t installed it but I’d like to know whether ROS Stage will be available on Windows soon, too. So far the Build Status of this package has always been on "failed" . So what’s going on there? I’d be happy to hear anything about this as we use Stage quite a lot.

If you need more information about a certain problem, please let me now! I'm sorry, if I didn't provide enough information but I'm still fairly new in ROS.

edit retag flag offensive close merge delete

Comments

Shouldn’t roscore start automatically if I use rosrun though?

just an fyi: no, roscore should not start automatically. That only happens with roslaunch, not with rosrun.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-09 05:28:36 -0500 )edit