Commits

German Larrain committed 9d33649

Simulation: fixed 'add_object', which assumed its parameter had a 'body' attribute.

  • Participants
  • Parent commits f876604

Comments (0)

Files changed (1)

File ars/model/simulator/__init__.py

 		"""Adds an object to the internal dictionary of simulated ones"""
 		name = sim_object.get_name()
 		if (name in self._objects.keys()) and name:
-			name = name + '/' + str(sim_object.body)
+			name = name + '/' + str(sim_object)
 			sim_object.set_name(name)
 		self._objects[name] = sim_object
 		return name