Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
b5501fde
Commit
b5501fde
authored
10 years ago
by
jvallve
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
9e678928
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/examples/test_iQR_wolf2.cpp
+86
-106
86 additions, 106 deletions
src/examples/test_iQR_wolf2.cpp
src/solver/cost_function_base.h
+2
-3
2 additions, 3 deletions
src/solver/cost_function_base.h
with
88 additions
and
109 deletions
src/examples/test_iQR_wolf2.cpp
+
86
−
106
View file @
b5501fde
This diff is collapsed.
Click to expand it.
src/solver/cost_function_base.h
+
2
−
3
View file @
b5501fde
...
...
@@ -13,7 +13,7 @@
class
CostFunctionBase
{
protected:
int
n_blocks_
;
unsigned
int
n_blocks_
;
Eigen
::
MatrixXs
J_0_
;
Eigen
::
MatrixXs
J_1_
;
Eigen
::
MatrixXs
J_2_
;
...
...
@@ -55,7 +55,6 @@ class CostFunctionBase
jacobians_
({
&
J_0_
,
&
J_1_
,
&
J_2_
,
&
J_3_
,
&
J_4_
,
&
J_5_
,
&
J_6_
,
&
J_7_
,
&
J_8_
,
&
J_9_
}),
block_sizes_
({
_block_0_size
,
_block_1_size
,
_block_2_size
,
_block_3_size
,
_block_4_size
,
_block_5_size
,
_block_6_size
,
_block_7_size
,
_block_8_size
,
_block_9_size
})
{
int
last_jet_idx
=
0
;
for
(
unsigned
int
i
=
1
;
i
<
n_blocks_
;
i
++
)
{
if
(
block_sizes_
.
at
(
i
)
==
0
)
...
...
@@ -90,7 +89,7 @@ class CostFunctionBase
void
getJacobians
(
std
::
vector
<
Eigen
::
MatrixXs
>&
jacobians
)
{
jacobians
.
resize
(
n_blocks_
);
for
(
int
i
=
0
;
i
<
n_blocks_
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
n_blocks_
;
i
++
)
jacobians
.
at
(
i
)
=
(
*
jacobians_
.
at
(
i
));
}
};
...
...
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