This study considers the distributed affine formation control problem of networked multi-agent systems. In affine formation manoeuvre control, the agents are to be capable of producing specified geometric patterns and simultaneously accomplish required manoeuvres, such as scales, translations and rotations. Here, the formation control problem is studied using the stress matrix approach which has similar properties as the Laplacian matrix of a graph. The major difference is that the edge weights can have positive or negative values and can be considered as the generalized Laplacian matrix of a graph. In this study, we commence by considering the scenario where the dynamics of the agents are defined using triple-integrator dynamics. This is inspired by the consideration that a broad range of systems can be modelled by triple-integrator dynamics. For instance, the DC motor which serves as actuator in most mechanical control systems. The longitudinal dynamics of individual vehicles in an n-vehicle system travelling on a single lane in a drive-train model is approximated by triple-integrator dynamics in some existing literature. It is therefore important to widen the application area by considering triple-integrator agent dynamics. Here, the cases where the inter-agent communications are in continuous-time and sampled-data are considered. Under the proposed control laws, the group of agents are able to track time-varying targets that are affine transformations of a given nominal formation, and the desired formation maneuvers are only known by the leaders. Furthermore, the affine formation control problem of general linear systems with uncertainty is considered. A variety of control laws are presented to address different cases. The proposed laws consider the general linear case, the case with uncertainty and the fully distributed case using robust and adaptive strategies. Under the proposed laws, the collection of agents can track any targets that are affine transforms of a defined reference configuration. Experimental results are presented to demonstrate the effectiveness of the proposed control laws.