Commits

German Larrain committed e867e11

demo.IROS: improved 'create_simulation's signature in 'example2' and 'example4'

Comments (0)

Files changed (2)

demos/IROS/example2_conical_pendulum.py

 		self.q1p_prev = 0.0
 		self.q2p_prev = 0.0
 		
-	def create_simulation(self):
+	def create_simulation(self, *args, **kwargs):
 		# we didn't need to code this method
 		# but if we want to modify the floor, we have to
 		

demos/IROS/example4_sinusoidal_terrain.py

 		self.q1_previous_error = 0.0
 		self.q2_previous_error = 0.0
 
-	def create_simulation(self):
+	def create_simulation(self, *args, **kwargs):
 
 		tm_x, tm_z = self.TM_X, self.TM_Z
 		vertices = sinusoidal_heightfield(tm_x, tm_z, height_scale=0.7, frequency_x=0.5)