This paper describes the design and implementation of a trajectory tracking and planning controller using Fuzzy logic for autonomous robots including both mobile and humanoid to navigate in the static environment. The kinematic model has been created for the autonomous robot using the kinematics equations of the differential driving rolling wheel. As the robot uses webcam to get the live image, image binarization has been shown using the object segmentation method by using the color code table of color model in the image processing. Finally, the robot uses a fuzzy logic controller to follow a planned path and avoid unknown obstacles by controlling the velocity and steering angle of the drive unit. Both line following and obstacle avoidance approach has been considered. The controller is a two input and two output system. It is a tracked vehicle which is more suitable for indoor use. The fuzzy control system has been designed and implemented in Robot Operating System (ROS) under Ubuntu 16.01 operating system and tested under Gazebo simulation. Finally, several experiments and results have been presented to demonstrate the effectiveness of fuzzy logic control system on the autonomous robots.