Commit f1bad2ea authored by Julian Viereck's avatar Julian Viereck
Browse files

Address review comments

parent 89836547
Pipeline #14959 passed with stage
in 1 minute and 41 seconds
......@@ -266,13 +266,19 @@ class Solo8Loader(RobotLoader):
free_flyer = True
class SoloLoader(Solo8Loader):
def __init__(self, *args, **kwargs):
warnings.warn('"solo" is deprecated, please try to load "solo8"')
return super(SoloLoader, self).__init__(*args, **kwargs)
class Solo12Loader(Solo8Loader):
urdf_filename = "solo12.urdf"
def loadSolo(solo8=True):
def loadSolo(solo=True):
warnings.warn(_depr_msg('loadSolo()', 'solo8'), FutureWarning, 2)
loader = Solo8Loader if solo8 else Solo12Loader
loader = Solo8Loader if solo else Solo12Loader
return loader().robot
......@@ -499,6 +505,7 @@ ROBOTS = {
'simple_humanoid': SimpleHumanoidLoader,
'simple_humanoid_classical': SimpleHumanoidClassicalLoader,
'solo': SoloLoader,
'solo8': Solo8Loader,
'solo12': Solo12Loader,
'finger_edu': FingerEduLoader,
'talos': TalosLoader,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment