Skip to content

Commit f9da5f5

Browse files
committed
Remove additional assert and logging
1 parent ea7d1b7 commit f9da5f5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

flexbe_core/src/flexbe_core/core/concurrency_container.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def _execute_current_state(self):
5050
# but is required here to reset the sleep time after executing
5151
state.sleep()
5252

53-
Logger.loginfo("BEFORE: state.sleep_duration({ssd}) if sleep_dur({sd}) is None else".format(ssd=state.sleep_duration, sd=sleep_dur))
5453
sleep_dur = state.sleep_duration if sleep_dur is None else min(sleep_dur, state.sleep_duration)
55-
Logger.loginfo("AFTER: sleep_dur={sd}".format(sd=sleep_dur))
5654
if sleep_dur > 0:
5755
self._sleep_dur = sleep_dur
5856

flexbe_core/test/test_core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,9 @@ def sleep(self):
355355
pass
356356

357357
# all states are called with their correct rate
358-
self.assertEquals(cc.sleep_duration, 0., msg="cc.sleep_duration should be 0. before executing")
359358
cc.execute(None)
360-
self.assertAlmostEqual(cc.sleep_duration, .1, delta=0.05, msg="After executing once, cc.sleep_duration should be set to the duration of the 'fastest' state")
361359
cc.sleep()
362-
self.assertAlmostEqual(cc.sleep_duration, .0, delta=0.05, msg="After sleeping once, cc.sleep_duration should be reset to 0")
363360
cc.execute(None)
364-
rospy.logwarn("self.assertAlmostEqual(cc.sleep_duration, .1, places=2)")
365361
self.assertAlmostEqual(cc.sleep_duration, .1, delta=0.05, msg="After executing twice, cc.sleep_duration should be set to the duration of the 'fastest' state")
366362
cc.sleep()
367363
cc['main'].set_rate(15)

0 commit comments

Comments
 (0)