Optimization and Control of Cable Tensions for Hyper-redundant Snake-arm Robots