Skip to content

Commit e036817

Browse files
hillbrookfengqikai1414
hillbrook
authored andcommitted
Set paramserver snapshot flag when snapshot file not exist.
1 parent 0fc7e69 commit e036817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros/ros_comm/rosmaster/src/rosmaster/paramserver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def __init__(self, reg_manager):
7070

7171
if "ROS_MASTER_SNAPSHOT" in os.environ:
7272
try:
73+
self.snapshot = True
7374
self.snapshot_file = os.path.join(os.environ["ROS_ROOT"], ".master_snapshot")
7475
with open(self.snapshot_file, "r") as f:
7576
self.parameters = json.loads(f.read())
7677
del self.parameters["run_id"]
77-
self.snapshot = True
7878
except IOError:
7979
pass
8080
except KeyError:

0 commit comments

Comments
 (0)