Skip to content

Commit

Permalink
python: fix F401 & E714
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s authored and florent-lamiraux committed May 30, 2023
1 parent b0b1fee commit 48b8726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake
Submodule cmake updated 104 files
6 changes: 3 additions & 3 deletions src/dynamic_graph/sot/dynamic_pinocchio/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from dynamic_graph.sot.core import Integrator
from dynamic_graph.tracer_real_time import TracerRealTime
from dynamic_graph import plug
from abc import ABC, abstractmethod
from abc import ABC


class AbstractRobot(ABC):
Expand Down Expand Up @@ -84,15 +84,15 @@ def __init__(self, name, device=None, loadFromFile=False):
self.dynamic.signal("velocity").value = numpy.zeros(self.pinocchioModel.nv)
self.dynamic.signal("acceleration").value = numpy.zeros(self.pinocchioModel.nv)
self.device = device
if not device is None:
if device is not None:
self.selector = Selec_of_vector(self.name + "_selector")
plug(self.integrator.signal("configuration"), self.selector.signal("sin"))
plug(self.selector.signal("sout"), self.device.signal("control"))
self.timeStep = self.device.getTimeStep()
plug(self.integrator.signal("configuration"), self.dynamic.signal("position"))

def initializeEntities(self):
if not self.device is None:
if self.device is not None:
# Set the device limits.
def get(s):
s.recompute(0)
Expand Down

0 comments on commit 48b8726

Please sign in to comment.