Skip to content

Commit c80fb6f

Browse files
committed
Commit Example
0 parents  commit c80fb6f

File tree

635 files changed

+310078
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

635 files changed

+310078
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile"/>
4.1 KB
Binary file not shown.
5.07 MB
Binary file not shown.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
%% This script contains the parameters used in the project modules' perception, motion planning, and integration.
2+
% This script runs at the time of project initialization. Change this
3+
% parameters accordingly if you are using any different setup.
4+
5+
% Copyright 2023 The MathWorks, Inc.
6+
7+
%% Perception parameters
8+
9+
% YOLOv4 parameters
10+
yoyloScoreTh = 0.8;% YOLO score threshold. if 0, all detection are accepted
11+
gridDownsample = 0.001;% Measured point downsample gridsize
12+
PlanrThickness = 0.02;
13+
normalvector = [0 0 1];
14+
maxPlaneTilt = 5; % in degrees
15+
16+
17+
%% Motion planning parameters
18+
19+
% home position
20+
homePosition = deg2rad([-15+180 -126 113 -80 -91 76]);
21+
22+
% Bin and part dimensions
23+
binLength = 0.38; % Along X axis
24+
binWidth = 0.57; % Along Y axis
25+
binHeight = 0.11;
26+
binCenterPosition = [0.48 0 -0.09+0.11/2];
27+
binRotation = 0;
28+
29+
% cuboid object dimensions
30+
partheight = 0.0508;
31+
partWidth = 0.0508;
32+
33+
34+
% Transformation matrix: From camera to the world reference frame
35+
rotationFromRobotToCam = eul2rotm([pi/2, pi, pi],"ZYZ");
36+
posDepthCam = [0.54 -0.018 0.63];
37+
38+
39+
% Set max acceleration and velocity limits for motion planning with
40+
% hardware
41+
maxqd = pi/2; %rad / s
42+
maxqdd = deg2rad(100); % rad / s2
43+
44+
vellimits = repmat([-maxqd; maxqd],1,6);
45+
accellimits = repmat([-maxqdd; maxqdd],1,6);
46+
47+
48+
% Position threshold for IK
49+
poseThr = 1e-3;
50+
51+
52+
%% Open introductory script
53+
open("SmartBinPickingWithUR5eStartScript.mlx");

0 commit comments

Comments
 (0)