Skip to content

Commit

Permalink
Import other ROS dependencies using the fullname of the rosrootmod to…
Browse files Browse the repository at this point in the history
… ensure visibility
  • Loading branch information
schmrlng committed Aug 9, 2018
1 parent ea29bda commit 6620b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gentypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ end
function _importexprs(mod::ROSMsgModule, rosrootmod::Module)
imports = Expr[Expr(:import, :RobotOS, :AbstractMsg)]
othermods = filter(d -> d != _name(mod), mod.deps)
append!(imports, [Expr(:using,Symbol(rosrootmod),Symbol(m),:msg) for m in othermods])
append!(imports, [Expr(:using,fullname(rosrootmod)...,Symbol(m),:msg) for m in othermods])
imports
end
function _importexprs(mod::ROSSrvModule, rosrootmod::Module)
Expand All @@ -362,7 +362,7 @@ function _importexprs(mod::ROSSrvModule, rosrootmod::Module)
Expr(:import, :RobotOS, :_srv_reqtype),
Expr(:import, :RobotOS, :_srv_resptype),
]
append!(imports, [Expr(:using,Symbol(rosrootmod),Symbol(m),:msg) for m in mod.deps])
append!(imports, [Expr(:using,fullname(rosrootmod)...,Symbol(m),:msg) for m in mod.deps])
imports
end

Expand Down

0 comments on commit 6620b79

Please sign in to comment.