Skip to content

Commit 264e53f

Browse files
committed
[Python] format
1 parent 6e5b2e5 commit 264e53f

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

src/hpp/corbaserver/baxter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Author: Joseph Mirabel
44
#
55

6-
from .robot import Robot
6+
from .robot import Robot # noqa

src/hpp/corbaserver/baxter/robot.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@
55

66
from hpp.corbaserver.robot import Robot as Parent
77

8-
##
8+
9+
#
910
# Control of robot Baxter in hpp
1011
#
1112
# This class implements a client to the corba server implemented in
1213
# hpp-corbaserver. It derive from class hpp.corbaserver.robot.Robot.
1314
#
1415
# At creation of an instance, the urdf and srdf files are loaded using
1516
# idl interface hpp::corbaserver::Robot::loadRobotModel.
16-
class Robot (Parent):
17-
##
17+
class Robot(Parent):
18+
#
1819
# Information to retrieve urdf and srdf files.
1920
packageName = "hpp-baxter"
2021
meshPackageName = "baxter_description"
2122
rootJointType = "anchor"
22-
##
23+
#
2324
# Information to retrieve urdf and srdf files.
2425
urdfName = "baxter"
2526
urdfSuffix = "_colman"
2627
srdfSuffix = ""
2728

28-
def __init__ (self, robotName, load = True, **kwargs):
29-
Parent.__init__ (self, robotName, self.rootJointType, load, **kwargs)
29+
def __init__(self, robotName, load=True, **kwargs):
30+
Parent.__init__(self, robotName, self.rootJointType, load, **kwargs)
3031
self.tf_root = "base_footprint"

src/hpp/corbaserver/manipulation/baxter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Author: Joseph Mirabel
44
#
55

6-
from .robot import Robot
6+
from .robot import Robot # noqa

src/hpp/corbaserver/manipulation/baxter/robot.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55

66
from hpp.corbaserver.manipulation.robot import Robot as Parent
77

8-
##
8+
9+
#
910
# Control of robot Baxter in hpp
1011
#
1112
# This class implements a client to the corba server implemented in
1213
# hpp-manipulation-corba. It derive from class hpp.corbaserver.manipulation.robot.Robot.
1314
#
1415
# At creation of an instance, the urdf and srdf files are loaded using
1516
# idl interface hpp::corbaserver::Robot::loadRobotModel.
16-
class Robot (Parent):
17-
##
17+
class Robot(Parent):
18+
#
1819
# Information to retrieve urdf and srdf files.
1920
urdfFilename = "package://hpp-baxter/urdf/baxter.urdf"
2021
srdfFilename = "package://hpp-baxter/srdf/baxter_manipulation.srdf"
2122

22-
## Constructor
23+
# Constructor
2324
# \param compositeName name of the composite robot that will be built later,
2425
# \param robotName name of the first robot that is loaded now,
2526
# \param load whether to actually load urdf files. Set to no if you only
2627
# want to initialize a corba client to an already initialized
2728
# problem.
2829
# \param rootJointType type of root joint among ("freeflyer", "planar",
2930
# "anchor"),
30-
def __init__ (self, compositeName, robotName, load = True,
31-
rootJointType = "anchor", **kwargs):
32-
Parent.__init__ (self, compositeName, robotName, rootJointType, load, **kwargs)
31+
def __init__(self, compositeName, robotName, load=True, rootJointType="anchor", **kwargs):
32+
Parent.__init__(self, compositeName, robotName, rootJointType, load, **kwargs)
3333
self.tf_root = "base_footprint"

0 commit comments

Comments
 (0)