Added param for getting joint limits to choose between safety & hard if both are available.