RobotOS.jl icon indicating copy to clipboard operation
RobotOS.jl copied to clipboard

using a module that uses RobotOS.jl

Open gstavrinos opened this issue 6 years ago • 4 comments

Hey,

I am developing a julia module that uses RobotOS.jl internally. When I am running my module as a standalone script everything is working fine, but when I include my module via the using keyword, the messages (geometry_msgs) fail to compile. This problem is not present if I use the include keyword. Any thoughts?

Thanks,

George

gstavrinos avatar Sep 09 '18 20:09 gstavrinos

by "standalone script" what so you mean exactly? As far as I can tell, you have to be in the scripts directory of a ros package. You also have to make sure that you pythonpath is set to same python instance as the ros system

guri-dominic avatar Sep 10 '18 16:09 guri-dominic

Hello tradeA,

My ROS package is this https://github.com/gstavrinos/ez_pick_and_place.

In the src directory is the to-be module, and in the example directory is the .jl file that should use it.

Currently I am using include in order to override this problem, but I would prefer to be able to use using.

(Also, keep in my mind that I am using the version that is currently in #48 in order to support julia-1.0.)

Thanks for the interest,

George

gstavrinos avatar Sep 11 '18 07:09 gstavrinos

It sounds like the module precompilation issue that was addressed by #47. Have you tried generating the message modules inside your package module instead of Main?

jdlangs avatar Sep 21 '18 04:09 jdlangs

I tried it, but couldn't work it out. The way I bypassed it was by using include.

gstavrinos avatar Sep 21 '18 06:09 gstavrinos