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
Merge requests
!345
Resolve "StateBlock perturbation helper function for gtests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "StateBlock perturbation helper function for gtests"
275-stateblock-perturbation-helper-function-for-gtests
into
devel
Overview
0
Commits
4
Pipelines
3
Changes
2
Merged
Joan Solà Ortega
requested to merge
275-stateblock-perturbation-helper-function-for-gtests
into
devel
5 years ago
Overview
0
Commits
4
Pipelines
3
Changes
2
Expand
Closes
#275 (closed)
Edited
5 years ago
by
Joan Solà Ortega
0
0
Merge request reports
Viewing commit
d648e04f
Prev
Next
Show latest version
2 files
+
13
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
d648e04f
New method HasStateBlocks::perturb()
· d648e04f
Joan Solà Ortega
authored
5 years ago
include/core/state_block/has_state_blocks.h
+
4
−
1
Options
@@ -68,6 +68,10 @@ class HasStateBlocks
unsigned
int
getSize
()
const
;
unsigned
int
getLocalSize
()
const
;
// Perturb state
void
perturb
(
double
amplitude
=
0.01
);
private
:
std
::
string
structure_
;
std
::
unordered_map
<
std
::
string
,
StateBlockPtr
>
state_block_map_
;
@@ -251,6 +255,5 @@ inline unsigned int HasStateBlocks::getLocalSize() const
return
size
;
}
}
// namespace wolf
#endif
/* STATE_BLOCK_HAS_STATE_BLOCKS_H_ */
Loading