Families of canonical transformations by Hamilton-Jacobi-Poincaré equation. Application to rotational andorbital motion