robocup-logistics / gazebo-rcll

Gazebo Models, Plugins, and World Files for the RoboCup Logistics League
GNU General Public License v2.0
17 stars 12 forks source link

Fix gripper plugin compilation and minor enhancement #6

Closed ValentinVERGEZ closed 8 years ago

ValentinVERGEZ commented 8 years ago

Return empty (null) shared_ptr rather than NULL (wich could fail compilation).

Change std::string::find for std::string::rfind function in getGripperLink and limit research to length("gripper::link") chars since "gripper::link" should be the end part of link name.

Works fine with a gripper directly included in the robotino model. Did not test it with submodels.