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
b0537134
Commit
b0537134
authored
9 years ago
by
Angel Santamaria-Navarro
Browse files
Options
Downloads
Patches
Plain Diff
working with arm joint limits
parent
2e141bb0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/quadarm_task_priority_ctrl.cpp
+4
-7
4 additions, 7 deletions
src/quadarm_task_priority_ctrl.cpp
with
4 additions
and
7 deletions
src/quadarm_task_priority_ctrl.cpp
+
4
−
7
View file @
b0537134
...
...
@@ -266,8 +266,8 @@ void CQuadarm_Task_Priority_Ctrl::uam_control(){
double
lambdaL
=
this
->
ctrl_params_
.
jntlim_gain
;
// task velocity
//
this->ctrl_params_.jntlim_vel = NIR_VS * JL_pseudo * lambdaL * sigmaL; // As secondary
this
->
ctrl_params_
.
jntlim_vel
=
NIR_VS_G
*
JL_pseudo
*
lambdaL
*
sigmaL
;
this
->
ctrl_params_
.
jntlim_vel
=
NIR_VS
*
JL_pseudo
*
lambdaL
*
sigmaL
;
// As secondary
//
this->ctrl_params_.jntlim_vel = NIR_VS_G * JL_pseudo * lambdaL * sigmaL;
// Total velocities _______________________________
...
...
@@ -287,12 +287,10 @@ void CQuadarm_Task_Priority_Ctrl::uam_control(){
MatrixXd
Vtotal
(
4
+
this
->
arm_
.
nj
,
1
);
// Task 0 + 1
//Vtotal = this->ctrl_params_.ir_vel + this->ctrl_params_.vs_vel;
// Task 0 + 1 + 3
//
Vtotal = this->ctrl_params_.ir_vel + this->ctrl_params_.vs_vel + this->ctrl_params_.jntlim_vel;
Vtotal
=
this
->
ctrl_params_
.
ir_vel
+
this
->
ctrl_params_
.
vs_vel
+
this
->
ctrl_params_
.
jntlim_vel
;
// All tasks
Vtotal
=
this
->
ctrl_params_
.
ir_vel
+
this
->
ctrl_params_
.
vs_vel
+
this
->
ctrl_params_
.
cog_vel
+
this
->
ctrl_params_
.
jntlim_vel
;
//
Vtotal = this->ctrl_params_.ir_vel + this->ctrl_params_.vs_vel + this->ctrl_params_.cog_vel + this->ctrl_params_.jntlim_vel;
Vtotal
=
this
->
ctrl_params_
.
lambda_robot
.
array
()
*
Vtotal
.
array
();
...
...
@@ -484,7 +482,6 @@ void CQuadarm_Task_Priority_Ctrl::task_cog(MatrixXd& JG,MatrixXd& JG_pseudo,Matr
MatrixXd
cog_arm_in_qi
=
Rib
*
this
->
arm_cog_data_
.
arm_cog
.
block
(
0
,
0
,
3
,
1
);
this
->
ctrl_params_
.
cog_PGxy
=
cog_arm_in_qi
.
block
(
0
,
0
,
2
,
1
);
// Partial CoG and jacobian of each link (augmented links: from current to end-effector)
MatrixXd
CoG_partial
;
MatrixXd
Jj_cog
(
3
,
this
->
arm_
.
nj
);
...
...
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