Legislators from across the country gathered inside a new battery factory along Richmond's waterfront Wednesday to learn about advances in energy storage technology.