Skip to content

Commit

Permalink
Fixing #51
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmarinho committed Oct 11, 2019
1 parent 5b983dc commit 746c64e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions interfaces/DQ_VrepInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ function set_joint_target_positions(obj,handles,thetas,opmode)
%% >> vi.set_joint_target_positions(joint_names,[0 pi/2 0 pi/2 0 pi/2 0]);

if nargin == 3
obj.vrep.simxPauseCommunication(obj.clientID,1)
for joint_index=1:length(handles)
if isa(handles,'cell')
obj.vrep.simxSetJointTargetPosition(obj.clientID,obj.handle_from_string_or_handle(handles{joint_index}),thetas(joint_index),obj.OP_ONESHOT);
Expand All @@ -351,13 +350,10 @@ function set_joint_target_positions(obj,handles,thetas,opmode)
end

end
obj.vrep.simxPauseCommunication(obj.clientID,0)
else
obj.vrep.simxPauseCommunication(obj.clientID,1)
for joint_index=1:length(handles)
obj.vrep.simxSetJointTargetPosition(obj.clientID,obj.handle_from_string_or_handle(handles{joint_index}),thetas(joint_index),opmode);
end
obj.vrep.simxPauseCommunication(obj.clientID,0)
end
end

Expand Down

0 comments on commit 746c64e

Please sign in to comment.