General higher-order theory for rod/pipe like structure