An Approach for the Design of Self-Conscious Agent for Robotics