Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samkhal committed Feb 21, 2016
1 parent 26a9a6e commit 5617655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drake/systems/plants/collision/CollisionFilterGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@

function [linknames,robotnums] = getMembers(obj)
if ~isempty(obj.members)
result = regexp(obj.members,'__','split');
% Split at last occurence of separator
result = regexp(obj.members,'__(?!.*__)','split');
result = vertcat(result{:})';
linknames = result(1,:);
robotnums = cellfun(@str2num,result(2,:),'UniformOutput',false);
Expand Down

0 comments on commit 5617655

Please sign in to comment.