Without this patch the ros.import("foo") operation returned an error if package foo has already been loaded. Even if the same package is not imported twice explicitly, it might happen that another package that depends on foo has already been imported.
Example:
Deployer [S]> import("rtt_ros")
= true
Deployer [S]> ros.import("rtt_sensor_msgs")
= true
Deployer [S]> ros.import("rtt_geometry_msgs")
23.826 [ Warning][ROSService::import("rtt_geometry_msgs")] Could not load any plugins from ROS package "rtt_geometry_msgs" or it's dependencies.
= false
Without this patch the
ros.import("foo")
operation returned an error if package foo has already been loaded. Even if the same package is not imported twice explicitly, it might happen that another package that depends on foo has already been imported.Example: