This paper discusses the mobile agents and their application in a heterogeneous multi-agent system in the form of a group of cooperating UAV and UGV autonomous robots. Mobile agents are able to migrate, when necessary, from one device to the other, thereby ensuring the completion of the entire mission, even in the case of breakdown of any of the devices. In this paper, I describe the testing of mobile agents in a simulation environment integrating robot operating system (ROS), V-REP simulation environment and JADE multi-agent system.