Commits

German Larrain committed 11d8afd

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

Comments (0)

Files changed (7)

demos/sensors/base.py

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

demos/sensors/joint_torque1.py

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

demos/sensors/kinetic_energy1.py

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

demos/sensors/potential_energy1.py

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

demos/sensors/rotary_joint.py

 
 		CentrifugalForce.on_pre_frame(self)
 
-
 if __name__ == '__main__':
 	sim_program = RotaryJointSensor()
 	sim_program.start()

demos/sensors/system_total_energy1.py

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

demos/sensors/total_energy1.py

 		except Exception as e:
 			print('Exception when executing on_post_step: %s' % str(e))
 
-
 if __name__ == '__main__':
 	sim_program = TotalEnergy()
 	sim_program.start()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.