Commits

German Larrain  committed d64ade3

demos: replaced direct import of 'dispatcher' with `from ars.app import dispatcher`.

  • Participants
  • Parent commits 06c0ed7

Comments (0)

Files changed (12)

File demos/CentrifugalForceTest.py

 analytical solution exists.
 
 """
-from ars.app import Program
+from ars.app import Program, dispatcher
 import ars.utils.mathematical as mut
 import ars.constants as cts
-from ars.lib.pydispatch import dispatcher
 from ars.model.simulator import signals
 
 #View point

File demos/ControlledSimpleArm.py

 There's friction proportional to angle speed, for both joints.
 
 """
-from ars.app import Program
+from ars.app import Program, dispatcher
 import ars.utils.mathematical as mut
 import ars.constants as cts
-from ars.lib.pydispatch import dispatcher
 from ars.model.simulator import signals
 
 

File demos/IROS/example1_bouncing_ball.py

 must be set to 0.9, instead of the default 0.2 value.
 
 """
-from ars.app import Program
-from ars.lib.pydispatch import dispatcher
+from ars.app import Program, dispatcher
 from ars.model.simulator import signals
 
 

File demos/VehicleWithArm.py

 joint speed.
 
 """
-from ars.app import Program
+from ars.app import Program, dispatcher
 import ars.utils.mathematical as mut
 import ars.constants as cts
-from ars.lib.pydispatch import dispatcher
 from ars.model.simulator import signals
 
 

File demos/sensors/accelerometer1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/base.py

 """Base program classes to create demos using sensors.
 
 """
-from ars.app import Program
+from ars.app import Program, dispatcher
 import ars.constants as cts
-from ars.lib.pydispatch import dispatcher
 from ars.model.simulator import signals
 import ars.utils.mathematical as mut
 

File demos/sensors/body.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/kinetic_energy1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/potential_energy1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/system_total_energy1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/total_energy1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals
 

File demos/sensors/velometer1.py

 	'self.sensor.data_queue.pull()'
 
 """
-from ars.lib.pydispatch import dispatcher
+from ars.app import dispatcher
 from ars.model.robot import sensors
 from ars.model.simulator import signals