A Data-driven Method for Safety-critical Control: Designing Control Barrier Functions from State Constraints | IEEE Conference Publication | IEEE Xplore