Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uam_task_ctrl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pep Martí Saumell
uam_task_ctrl
Commits
bdea3079
Commit
bdea3079
authored
9 years ago
by
asantamaria
Browse files
Options
Downloads
Patches
Plain Diff
added ir_gain. to be tested with real robot
parent
01846cc4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/quadarm_task_priority_ctrl.cpp
+6
-2
6 additions, 2 deletions
src/quadarm_task_priority_ctrl.cpp
src/quadarm_task_priority_ctrl.h
+1
-0
1 addition, 0 deletions
src/quadarm_task_priority_ctrl.h
with
7 additions
and
2 deletions
src/quadarm_task_priority_ctrl.cpp
+
6
−
2
View file @
bdea3079
...
@@ -210,8 +210,11 @@ void CQuadarm_Task_Priority_Ctrl::uam_control(){
...
@@ -210,8 +210,11 @@ void CQuadarm_Task_Priority_Ctrl::uam_control(){
MatrixXd
JIR
,
JIR_pseudo
,
sigmaIR
;
MatrixXd
JIR
,
JIR_pseudo
,
sigmaIR
;
task_infrad
(
JIR
,
JIR_pseudo
,
sigmaIR
);
task_infrad
(
JIR
,
JIR_pseudo
,
sigmaIR
);
// Gain
double
lambdaIR
=
this
->
ctrl_params_
.
ir_gain
;
// task velocity
// task velocity
this
->
ctrl_params_
.
ir_vel
=
JIR_pseudo
*
sigmaIR
;
this
->
ctrl_params_
.
ir_vel
=
JIR_pseudo
*
lambdaIR
*
sigmaIR
;
// TASK 1: Visual Servo _________________________________________
// TASK 1: Visual Servo _________________________________________
...
@@ -323,7 +326,8 @@ void CQuadarm_Task_Priority_Ctrl::task_infrad(MatrixXd& JIR,MatrixXd& JIR_pseudo
...
@@ -323,7 +326,8 @@ void CQuadarm_Task_Priority_Ctrl::task_infrad(MatrixXd& JIR,MatrixXd& JIR_pseudo
inf_radius
(
0
,
0
)
=
this
->
ctrl_params_
.
inf_radius
;
inf_radius
(
0
,
0
)
=
this
->
ctrl_params_
.
inf_radius
;
// Task vector
// Task vector
sigmaIR
=
d_obs
.
transpose
()
*
d_obs
-
inf_radius
;
Eigen
::
MatrixXd
euc_d_obs
=
(
d_obs
.
transpose
()
*
d_obs
).
array
().
sqrt
();
sigmaIR
=
inf_radius
-
euc_d_obs
;
// Task Jacobian
// Task Jacobian
JIR
=
MatrixXd
::
Zero
(
1
,
4
+
this
->
arm_
.
nj
);
JIR
=
MatrixXd
::
Zero
(
1
,
4
+
this
->
arm_
.
nj
);
...
...
This diff is collapsed.
Click to expand it.
src/quadarm_task_priority_ctrl.h
+
1
−
0
View file @
bdea3079
...
@@ -97,6 +97,7 @@ typedef struct{
...
@@ -97,6 +97,7 @@ typedef struct{
MatrixXd
vs_vel
;
// Primary task velocity.
MatrixXd
vs_vel
;
// Primary task velocity.
double
vs_alpha_min
;
// Alpha value for gain matrix pseudo inverse.
double
vs_alpha_min
;
// Alpha value for gain matrix pseudo inverse.
MatrixXd
vs_delta_gain
;
// Delta values (min and max) for gain matrix pseudo inverse W.
MatrixXd
vs_delta_gain
;
// Delta values (min and max) for gain matrix pseudo inverse W.
double
ir_gain
;
// Gain of Inflation radius task.
double
inf_radius
;
// Security distance to an obstacle (Inflation radius) to prevent Collisions.
double
inf_radius
;
// Security distance to an obstacle (Inflation radius) to prevent Collisions.
double
cog_gain
;
// Gain of CoG alignment secondary task.
double
cog_gain
;
// Gain of CoG alignment secondary task.
MatrixXd
cog_vel
;
// Secondary task velocity.
MatrixXd
cog_vel
;
// Secondary task velocity.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment