Module: Kernel
- Defined in:
- lib/rclrb.rb
Constant Summary collapse
- LoadedRosInterfacePackages =
rewrite require
[]
Instance Method Summary collapse
-
#rclrb_original_require ⇒ Object
make an alias of the original require.
- #require(name) ⇒ Object
Instance Method Details
#rclrb_original_require ⇒ Object
make an alias of the original require
29 |
# File 'lib/rclrb.rb', line 29 alias_method :rclrb_original_require, :require |
#require(name) ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/rclrb.rb', line 33 def require name begin rclrb_original_require name rescue LoadError unless LoadedRosInterfacePackages.include? name raise unless Rclrb::Interfaces.load_definitions name LoadedRosInterfacePackages.append(name) end end end |