1. German Larrain
  2. ars

Commits

German Larrain  committed 11d8afd

demos.sensors: no code changes, just whitespace formatting.

  • Participants
  • Parent commits 7b3808d
  • Branches dev-sensors

Comments (0)

Files changed (7)

File demos/sensors/base.py

View file
  • Ignore whitespace
 """Base program classes to create demos using sensors.
 
 """
-
 from ars.app import Program
 import ars.constants as cts
 from ars.lib.pydispatch import dispatcher

File demos/sensors/joint_torque1.py

View file
  • Ignore whitespace
 		joint_object = self.sim.get_joint('r2')
 		self.sensor = sen.JointTorque(joint_object, self.sim)
 
-
 if __name__ == '__main__':
 	sim_program = JointTorque()
 	sim_program.start()

File demos/sensors/kinetic_energy1.py

View file
  • Ignore whitespace
 		except Exception as e:
 			print('Exception when executing on_post_step: %s' % str(e))
 
-
 if __name__ == '__main__':
 	sim_program = KineticEnergy()
 	sim_program.start()

File demos/sensors/potential_energy1.py

View file
  • Ignore whitespace
 		except Exception as e:
 			print('Exception when executing on_post_step: %s' % str(e))
 
-
 if __name__ == '__main__':
 	sim_program = PotentialEnergy()
 	sim_program.start()

File demos/sensors/rotary_joint.py

View file
  • Ignore whitespace
 
 		CentrifugalForce.on_pre_frame(self)
 
-
 if __name__ == '__main__':
 	sim_program = RotaryJointSensor()
 	sim_program.start()

File demos/sensors/system_total_energy1.py

View file
  • Ignore whitespace
 		except Exception as e:
 			print('Exception when executing on_post_step: %s' % str(e))
 
-
 if __name__ == '__main__':
 	sim_program = SystemTotalEnergy()
 	sim_program.start()

File demos/sensors/total_energy1.py

View file
  • Ignore whitespace
 		except Exception as e:
 			print('Exception when executing on_post_step: %s' % str(e))
 
-
 if __name__ == '__main__':
 	sim_program = TotalEnergy()
 	sim_program.start()