A relative position detecting system of a tubular device includes a shape sensor and a relative position detecting section. The shape sensor is configured to detect a shape of the tubular device to be inserted into a tubular cavity of an object. The relative position detecting section is configured to detect a relative positional relation between at least one position in a first range in which the shape of the tubular device is detectable by the shape sensor and at least one position in the tubular cavity.