-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQUEST] Update example "vrep/constrained_kinematic_control" to use the class LBR4pVrepRobot #11
Comments
Thanks, @ffasilva, From your comment, I infer that you intend to replace LBR4p_DH_theta = [0, 0, 0, 0, 0, 0, 0];
LBR4p_DH_d = [0.200, 0, 0.4, 0, 0.39, 0, 0];
LBR4p_DH_a = [0, 0, 0, 0, 0, 0, 0];
LBR4p_DH_alpha = [pi/2, -pi/2, pi/2, -pi/2, pi/2, -pi/2, 0];
LBR4p_DH_type = double(repmat(DQ_JointType.REVOLUTE,1,7));
LBR4p_DH_matrix = [LBR4p_DH_theta;
LBR4p_DH_d;
LBR4p_DH_a;
LBR4p_DH_alpha
LBR4p_DH_type];
robot = DQ_SerialManipulatorDH(LBR4p_DH_matrix);
robot.set_effector(1+0.5*DQ.E*DQ.k*0.07);
n = robot.get_dim_configuration_space();
qmin = [-pi -pi -pi/2 -pi -pi/2 -pi -pi/2]';
qmax = [pi pi pi/2 pi pi/2 pi pi/2]'; with a single call to When submitting the pull request, I'll assign @juanjqo as the reviewer for this example because he wrote it initially. Kind regards, |
Hi @bvadorno, Something in this direction. Those lines here n = robot.get_dim_configuration_space();
qmin = [-pi -pi -pi/2 -pi -pi/2 -pi -pi/2]';
qmax = [pi pi pi/2 pi pi/2 pi pi/2]';
can't really go away, but all of these ones jointnames={'LBR4p_joint1','LBR4p_joint2',...
'LBR4p_joint3','LBR4p_joint4',...
'LBR4p_joint5','LBR4p_joint6',...
'LBR4p_joint7'};
%---------------------Robot definition--------------------------%
LBR4p_DH_theta = [0, 0, 0, 0, 0, 0, 0];
LBR4p_DH_d = [0.200, 0, 0.4, 0, 0.39, 0, 0];
LBR4p_DH_a = [0, 0, 0, 0, 0, 0, 0];
LBR4p_DH_alpha = [pi/2, -pi/2, pi/2, -pi/2, pi/2, -pi/2, 0];
LBR4p_DH_type = double(repmat(DQ_JointType.REVOLUTE,1,7));
LBR4p_DH_matrix = [LBR4p_DH_theta;
LBR4p_DH_d;
LBR4p_DH_a;
LBR4p_DH_alpha
LBR4p_DH_type];
robot = DQ_SerialManipulatorDH(LBR4p_DH_matrix);
robot.set_effector(1+0.5*DQ.E*DQ.k*0.07);
can be replaced by a single call to vi.set_joint_target_velocities(jointnames, u);
q_dot(:,j) = vi.get_joint_velocities(jointnames);
because we have higher-level methods for those (e.g., Kind regards, |
Thanks, @ffasilva. You must be careful with the functions Kind regards, |
I completely forgot everything about the mentioned example and I had to review some previous discussions. I have some minor comments that I'd like to mention here for myself in the future.
|
Code of Conduct
By submitting this report you automatically agree that you've read and accepted the following conditions.
Hello @dqrobotics/developers,
Request motivation
While working on the
DQ_SerialVrepRobot
pull request, I realized that thevrep/constrained_kinematic_control
example doesn't use theLBR4pVrepRobot
class.Being it a CoppeliaSim usage example, I believe is counterproductive to set both the robot kinematics and the joint names in the main
.m
file instead teaching the proper use of our VrepRobot classes.Expected outcome
The example should be updated to use the class
LBR4pVrepRobot
.Additional context
This issue is meant to remind me to update this example in the future. However, I lack whatever privilege is needed to assign issues to people; thus, I can't assign myself here. Could someone please do it for me?
Edit: I can't change labels either. Could someone please label this as a "request"?
Kind regards,
Frederico
The text was updated successfully, but these errors were encountered: