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
2c9ea7de
Commit
2c9ea7de
authored
7 years ago
by
Jeremie Deray
Browse files
Options
Downloads
Patches
Plain Diff
rename Notification::UPDATE -> Notification::STATE_UPDATE
parent
ab69e89e
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/solver/solver_manager.cpp
+2
-2
2 additions, 2 deletions
src/solver/solver_manager.cpp
src/state_block.h
+8
-8
8 additions, 8 deletions
src/state_block.h
with
10 additions
and
10 deletions
src/solver/solver_manager.cpp
+
2
−
2
View file @
2c9ea7de
...
...
@@ -26,7 +26,7 @@ void SolverManager::update()
state
->
notify
(
StateBlock
::
Notification
::
ENABLED
);
break
;
}
case
StateBlock
::
Notification
::
UPDATE
:
case
StateBlock
::
Notification
::
STATE_
UPDATE
:
{
state_blocks_
[
state
]
=
state
->
getState
();
state
->
notify
(
StateBlock
::
Notification
::
ENABLED
);
...
...
@@ -54,7 +54,7 @@ void SolverManager::update()
}
default
:
throw
std
::
runtime_error
(
"SolverManager::update: State Block notification "
"must be ADD, UPDATE, FIX_UPDATE, REMOVE or ENABLED."
);
"must be ADD,
STATE_
UPDATE, FIX_UPDATE, REMOVE or ENABLED."
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/state_block.h
+
8
−
8
View file @
2c9ea7de
...
...
@@ -34,7 +34,7 @@ public:
{
ADD
=
0
,
REMOVE
,
UPDATE
,
STATE_
UPDATE
,
FIX_UPDATE
,
ENABLED
};
...
...
@@ -230,7 +230,7 @@ inline void StateBlock::notify(const StateBlock::Notification n)
{
case
Notification
::
ADD
:
case
Notification
::
FIX_UPDATE
:
case
Notification
::
UPDATE
:
break
;
// if any of those 3, do nothing
case
Notification
::
STATE_
UPDATE
:
break
;
// if any of those 3, do nothing
case
Notification
::
ENABLED
:
case
Notification
::
REMOVE
:
// if any of those 2, change notif
{
...
...
@@ -248,7 +248,7 @@ inline void StateBlock::notify(const StateBlock::Notification n)
case
Notification
::
ENABLED
:
break
;
case
Notification
::
REMOVE
:
case
Notification
::
FIX_UPDATE
:
case
Notification
::
UPDATE
:
case
Notification
::
STATE_
UPDATE
:
{
notification_
=
n
;
break
;
...
...
@@ -262,7 +262,7 @@ inline void StateBlock::notify(const StateBlock::Notification n)
{
case
Notification
::
ADD
:
//throw std::runtime_error("Tried to ADD again an existing StateBlock !"); break;
case
Notification
::
FIX_UPDATE
:
break
;
case
Notification
::
UPDATE
:
// We should have UPDATE &
FIX
_UPDATE !
case
Notification
::
STATE_
UPDATE
:
// We should have
STATE_
UPDATE &
STATE
_UPDATE !
case
Notification
::
REMOVE
:
case
Notification
::
ENABLED
:
{
...
...
@@ -282,18 +282,18 @@ inline void StateBlock::notify(const StateBlock::Notification n)
break
;
}
case
Notification
::
ENABLED
:
throw
std
::
runtime_error
(
"Tried to ENABLED a StateBlock marked for REMOVE!"
);
break
;
case
Notification
::
FIX_UPDATE
:
// We should have UPDATE & FIX_UPDATE !
case
Notification
::
UPDATE
:
case
Notification
::
FIX_UPDATE
:
// We should have
STATE_
UPDATE & FIX_UPDATE !
case
Notification
::
STATE_
UPDATE
:
case
Notification
::
REMOVE
:
break
;
}
break
;
}
case
Notification
::
UPDATE
:
case
Notification
::
STATE_
UPDATE
:
{
switch
(
n
)
{
case
Notification
::
ADD
:
//throw std::runtime_error("Tried to ADD again an existing StateBlock !"); break;
case
Notification
::
UPDATE
:
break
;
case
Notification
::
STATE_
UPDATE
:
break
;
case
Notification
::
FIX_UPDATE
:
case
Notification
::
REMOVE
:
case
Notification
::
ENABLED
:
...
...
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