Custom plugins causes assertion error of boost

Created a custom plugin to apply force to a link. When only one of these plugins are applied to the urdf, the system works fine. When two are applied to different links, this error pops up and gazebo does not open. Also use ros_control for motor actuation. This error happens even if that is disabled as well.