def save_recipe_dp(self, variable):
"""
Save the recipe start/end to the env. data pt. DB, so we can restart
the recipe if necessary.
"""
doc = EnvironmentalDataPoint({
"environment": self.environment,
"variable": variable,
"is_desired": True,
"value": rospy.get_param(params.CURRENT_RECIPE),
"timestamp": rospy.get_time()
})
doc_id = gen_doc_id(rospy.get_time())
self.env_data_db[doc_id] = doc
#------------------------------------------------------------------------------
# Our ROS node main entry point. Starts up the node and then waits forever.
评论列表
文章目录