Skip to content

Commit 6620b79

Browse files
committed
Import other ROS dependencies using the fullname of the rosrootmod to ensure visibility
1 parent ea29bda commit 6620b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gentypes.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ end
352352
function _importexprs(mod::ROSMsgModule, rosrootmod::Module)
353353
imports = Expr[Expr(:import, :RobotOS, :AbstractMsg)]
354354
othermods = filter(d -> d != _name(mod), mod.deps)
355-
append!(imports, [Expr(:using,Symbol(rosrootmod),Symbol(m),:msg) for m in othermods])
355+
append!(imports, [Expr(:using,fullname(rosrootmod)...,Symbol(m),:msg) for m in othermods])
356356
imports
357357
end
358358
function _importexprs(mod::ROSSrvModule, rosrootmod::Module)
@@ -362,7 +362,7 @@ function _importexprs(mod::ROSSrvModule, rosrootmod::Module)
362362
Expr(:import, :RobotOS, :_srv_reqtype),
363363
Expr(:import, :RobotOS, :_srv_resptype),
364364
]
365-
append!(imports, [Expr(:using,Symbol(rosrootmod),Symbol(m),:msg) for m in mod.deps])
365+
append!(imports, [Expr(:using,fullname(rosrootmod)...,Symbol(m),:msg) for m in mod.deps])
366366
imports
367367
end
368368

0 commit comments

Comments
 (0)