Optimized variable initialization in sr_robot_lib