Loading all controllers 

Fixes https://github.com/shadow-robot/sr-visualization/issues/35.

Will do a pull request on **sr_config** when this is merge (adding this script to sr_edc_default_controllers.launch).
If the firmware in the hand can report when it changed its mode,
we can capture it in the C++ drivers and then expose it in the python lib
too.

Cheers
Manos Nikolaidis

Software Team
Shadow Robot Company. 251 Liverpool Road, London U.K. N1 1LX
Tel: +44 (0) 20 7700 2487 E: manos@shadowrobot.com



On 4 September 2014 15:36, Ugo Cupcic <notifications@github.com> wrote:

> In
> sr_mechanism_controllers/scripts/sr_mechanism_controllers/load_all_controllers:
>
> > +
> > +            try:
> > +                load_controllers = rospy.ServiceProxy('controller_manager/load_controller', LoadController)
> > +                resp1 = load_controllers(controller)
> > +            except rospy.ServiceException:
> > +                rospy.logerr("Failed to load controller "+controller)
> > +                failed = True
> > +            if not failed:
> > +                rospy.loginfo("Loaded "+controller+" sucessfully.")
> > +
> > +if __name__ == '__main__':
> > +    rospy.init_node("load_all_controllers")
> > +
> > +    #@TODO replace this sleep with a proper way of identifying when the controllers
> > +    # can be loaded
> > +    sleep(6.0)
>
> How can we do that in a clever way?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/shadow-robot/sr-ros-interface/pull/154/files#r17116674>
> .
>

-- 

------------------------------
*Shadow Robot Company Ltd.*
251 Liverpool Road, N1 1LX, UK
Registered Number 3308007 (England & Wales)

RoNeX - Building Robots with ROS Made Easy 
http://www.shadowrobot.com/products/ronex/
------------------------------