diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c0fbf1c..4871e0ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,6 @@ target_include_directories(vamp_cpp target_link_libraries_system(vamp_cpp INTERFACE Eigen3::Eigen - nigh pdqsort ) diff --git a/README.md b/README.md index 5e448bb2..b2760602 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ pip install vamp-planner > [!IMPORTANT] > VAMP comes with precompiled robots! If you want to add your own, use [cricket](https://github.com/CoMMALab/cricket) and follow the instructions there. +> +> The two-arm `bimanual_iiwa_tool` robot (two iiwa arms with a gripper each; the gripper tool frames are two end-effectors, so held objects can be attached to either) is not built by default. Select it when installing, e.g. `pip install . -C cmake.define.VAMP_ROBOT_MODULES="panda;bimanual_iiwa_tool" -C cmake.define.VAMP_ROBOT_STRUCTS="Panda;BimanualIiwaTool"`, then see `scripts/bimanual_attachments_example.py` (planning with one attachment per gripper, visualized with viser). VAMP requires the following system dependencies: - [CMake](https://cmake.org/) version 3.16 or greater. @@ -100,7 +102,6 @@ VAMP requires the following system dependencies: VAMP fetches the following external dependencies via [CPM](https://github.com/cpm-cmake/CPM.cmake): - [`nanobind`](https://github.com/wjakob/nanobind): for Python bindings -- [`nigh`](https://github.com/KavrakiLab/nigh): a fork of the original [`nigh`](https://github.com/UNC-Robotics/nigh) [[4]](#4) to better use our vector types - [`pdqsort`](https://github.com/orlp/pdqsort): for fast sorting - [`SIMDxorshift`](https://github.com/lemire/SIMDxorshift): alternative fast random numbers for x86 machines diff --git a/cmake/CompilerSettings.cmake b/cmake/CompilerSettings.cmake index 7f9219d2..bd0fcccb 100644 --- a/cmake/CompilerSettings.cmake +++ b/cmake/CompilerSettings.cmake @@ -24,7 +24,10 @@ set(VAMP_FAST_ARGS "-fno-math-errno -fno-signed-zeros -fno-trapping-math -fno-ro if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") # x86 supports additional flags string(APPEND VAMP_FAST_ARGS " -fassociative-math") if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # Clang supports additional fine-grained flags over GCC - string(APPEND VAMP_FAST_ARGS " -fno-honor-infinities -fno-honor-nans") + # -fno-honor-nans is deliberately NOT set: together with -fno-honor-infinities it lets the + # compiler break the kd-tree's nearest-neighbor search (it returns an infinite distance and no + # index for a 14-dimensional robot), so every planner fails immediately. + string(APPEND VAMP_FAST_ARGS " -fno-honor-infinities") if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0.0) # clang 11 does not support -fapprox-func string(APPEND VAMP_FAST_ARGS " -fapprox-func") endif() diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 61d2db3c..7c45d760 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -20,21 +20,6 @@ if(NOT Eigen3_FOUND) endif() endif() -CPMAddPackage("gh:kavrakilab/nigh#97130999440647c204e0265d05a997dbd8da4e70") -add_library(nigh INTERFACE) -target_include_directories(nigh INTERFACE $) -if(VAMP_INSTALL_CPP_LIBRARY) - install(TARGETS nigh - EXPORT nigh_TARGETS - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - ) - install(EXPORT nigh_TARGETS FILE nighTargets.cmake NAMESPACE nigh:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/nigh) - export(EXPORT nigh_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/nighTargets.cmake NAMESPACE nigh::) -endif() - CPMAddPackage("gh:orlp/pdqsort#b1ef26a55cdb60d236a5cb199c4234c704f46726") add_library(pdqsort INTERFACE) target_include_directories(pdqsort INTERFACE $) diff --git a/cmake/vampConfig.cmake.in b/cmake/vampConfig.cmake.in index 03ba5d1e..693eeb99 100644 --- a/cmake/vampConfig.cmake.in +++ b/cmake/vampConfig.cmake.in @@ -4,7 +4,7 @@ find_dependency(Eigen3 REQUIRED) # VAMP requires these dependencies but they're bundled -# No need to find_dependency for nigh, pdqsort, or SIMDxorshift +# No need to find_dependency for pdqsort or SIMDxorshift # as they're built as part of VAMP # Include the exported targets diff --git a/resources/bimanual_iiwa_tool/iiwa_bimanual_spherized.urdf b/resources/bimanual_iiwa_tool/iiwa_bimanual_spherized.urdf new file mode 100644 index 00000000..2f74fd32 --- /dev/null +++ b/resources/bimanual_iiwa_tool/iiwa_bimanual_spherized.urdf @@ -0,0 +1,944 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/bimanual_attachments_example.py b/scripts/bimanual_attachments_example.py new file mode 100644 index 00000000..b0590501 --- /dev/null +++ b/scripts/bimanual_attachments_example.py @@ -0,0 +1,182 @@ +"""Planning with two attachments on a bimanual iiwa, visualized with viser. + +The `bimanual_iiwa_tool` robot has two end-effectors, the tool frames of the left and right gripper +(`end_effectors()` lists them). A held object is an `Attachment` riding on one of them: here the +left gripper holds a bottle (three stacked spheres) and the right gripper holds a ball. Both are +checked against the environment and the robot while planning, and against each other, because +they are attached to different end-effectors (attachments on the same end-effector move rigidly +together and are never tested against each other). + +The task: both arms hold their object in front of a pillar standing between them (on a table); the +goal has both objects behind it, so each arm has to carry its object around the pillar on its own +side without touching it, the table, the other arm, or the other object. + +This robot is not built by default. Install it when you install vamp, for example + pip install . -C cmake.define.VAMP_ROBOT_MODULES='panda;bimanual_iiwa_tool' \ + -C cmake.define.VAMP_ROBOT_STRUCTS='Panda;BimanualIiwaTool' + +Run: + python scripts/bimanual_attachments_example.py [--planner rrtc|grrtstar] [--visualize] + +`aorrtc` also works but keeps improving the path until max_iterations (`--max_iterations=...`). +""" + +import time +from pathlib import Path + +import numpy as np +import vamp +from fire import Fire + +ROBOT = "bimanual_iiwa_tool" +ROBOT_DIR = Path(__file__).parents[1] / "resources" / "bimanual_iiwa_tool" +ROBOT_URDF = "iiwa_bimanual_spherized.urdf" + +# Joint order: left arm (7), right arm (7). +START = [ + *[-0.109, -0.509, 0.289, -1.881, -0.118, 0.944, -2.659], + *[1.232, -0.970, -0.660, -1.881, -0.710, 1.154, 0.772], +] +GOAL = [ + *[1.109, 1.689, -1.786, -1.772, -0.043, -0.577, -1.166], + *[-0.714, 0.533, -2.561, 1.570, -1.298, 0.244, 0.692], +] + +# Attachments, in the frame of the end-effector they ride on: (sphere centers, radius). +LEFT_OBJECT = ([[0.0, 0.0, 0.10], [0.0, 0.0, 0.18], [0.0, 0.0, 0.26]], 0.04) # bottle +RIGHT_OBJECT = ([[0.0, 0.0, 0.12]], 0.06) # ball + +# Obstacles: (center, radius) spheres forming a pillar between the arms, and a table cuboid. +PILLAR = [([0.65, 0.385, z], 0.07) for z in (0.2, 0.35, 0.5, 0.65, 0.8)] +TABLE = ([0.55, 0.385, -0.16], [0.6, 0.8, 0.1]) # (center, half extents) + + +def make_attachment(spheres, radius, end_effector): + """An attachment on the given end-effector with the object's spheres in its frame.""" + attachment = vamp.Attachment(np.identity(4), end_effector) + attachment.add_spheres([vamp.Sphere(center, radius) for center in spheres]) + return attachment + + +def make_environment(attachments): + e = vamp.Environment() + for center, radius in PILLAR: + e.add_sphere(vamp.Sphere(center, radius)) + + center, half_extents = TABLE + e.add_cuboid(vamp.Cuboid(center, [0.0, 0.0, 0.0], half_extents)) + for attachment in attachments: + e.attach(attachment) + + return e + + +def main( + planner: str = "rrtc", # One of rrtc, grrtstar, aorrtc. + visualize: bool = False, + **kwargs, +): + module, planner_func, plan_settings, simp_settings = vamp.configure_robot_and_planner_with_kwargs( + ROBOT, planner, **kwargs) + + ends = module.end_effectors() + print(f"end-effectors: {ends}") + + left = make_attachment(*LEFT_OBJECT[:1], LEFT_OBJECT[1], 0) + right = make_attachment(*RIGHT_OBJECT[:1], RIGHT_OBJECT[1], 1) + e = make_environment([left, right]) + + start = np.array(START, dtype=np.float32) + goal = np.array(GOAL, dtype=np.float32) + for name, q in (("start", start), ("goal", goal)): + if not module.validate(q, e): + raise RuntimeError(f"{name} configuration is in collision") + + # The attachments are what makes the arms interact: with the objects removed the same + # configuration may be valid, with them it is not if they touch each other or the robot. + sampler = module.halton() + elapsed = time.perf_counter() + result = planner_func(start, goal, e, plan_settings, sampler) + elapsed = time.perf_counter() - elapsed + if not result.solved: + raise RuntimeError("planning failed") + + simple = module.simplify(result.path, e, simp_settings, sampler) + path = simple.path + path.interpolate_to_resolution(module.resolution()) + + print(f"solved in {elapsed * 1e3:.1f} ms, {result.iterations} iterations; " + f"path {len(result.path)} -> {len(path)} states, cost {path.cost():.3f}") + + trajectory = path.numpy() + print(f"every waypoint valid with both attachments: " + f"{all(module.validate(q, e) for q in trajectory)}") + + if visualize: + show_in_viser(module, trajectory, (left, right), (LEFT_OBJECT, RIGHT_OBJECT)) + + +def show_in_viser(module, trajectory, attachments, objects): + import viser + import yourdfpy + from viser.extras import ViserUrdf + + server = viser.ViserServer() + urdf = yourdfpy.URDF.load( + str(ROBOT_DIR / ROBOT_URDF), load_meshes=False, build_collision_scene_graph=True) + robot = ViserUrdf( + server, urdf, load_meshes=False, load_collision_meshes=True, root_node_name="/robot") + + # yourdfpy's actuated joint order can differ from the module's. + names = list(module.joint_names()) + remap = [names.index(n) for n in urdf.actuated_joint_names] + + for i, (center, radius) in enumerate(PILLAR): + server.scene.add_icosphere( + f"/environment/pillar_{i}", radius=radius, position=tuple(center), color=(160, 110, 60)) + + center, half_extents = TABLE + server.scene.add_box( + "/environment/table", + dimensions=tuple(2.0 * h for h in half_extents), + position=tuple(center), + color=(120, 120, 130)) + + handles = [] + for k, (spheres, radius) in enumerate(objects): + color = (220, 60, 60) if k == 0 else (60, 90, 220) + handles.append([ + server.scene.add_icosphere( + f"/attachment_{k}/sphere_{j}", radius=radius, position=tuple(c), color=color) + for j, c in enumerate(spheres) + ]) + + def show(q): + q = np.asarray(q, dtype=np.float32) + robot.update_cfg(q[remap]) + for k, attachment in enumerate(attachments): + attachment.set_ee_pose(module.eefk(q, attachment.end_effector)) + for handle, sphere in zip(handles[k], attachment.posed_spheres): + handle.position = tuple(sphere.position) + + show(trajectory[0]) + slider = server.gui.add_slider( + "Current Waypoint", min=0, max=len(trajectory) - 1, step=1, initial_value=0) + autoplay = server.gui.add_checkbox("Autoplay", initial_value=True) + rate = server.gui.add_slider( + "Playback Rate (Hz)", min=1.0, max=60.0, step=1.0, initial_value=20.0) + + @slider.on_update + def _(event): + show(trajectory[int(event.target.value)]) + + print("visualization at http://localhost:8080; ctrl-c to exit") + while True: + if autoplay.value: + slider.value = (slider.value + 1) % len(trajectory) + + time.sleep(1.0 / rate.value) + + +if __name__ == "__main__": + Fire(main) diff --git a/scripts/cpp/rrtc_example.cc b/scripts/cpp/rrtc_example.cc index 898c09a2..f7a91dc2 100644 --- a/scripts/cpp/rrtc_example.cc +++ b/scripts/cpp/rrtc_example.cc @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/impl/vamp/bindings/python/api_binder.hh b/src/impl/vamp/bindings/python/api_binder.hh new file mode 100644 index 00000000..f14fa741 --- /dev/null +++ b/src/impl/vamp/bindings/python/api_binder.hh @@ -0,0 +1,277 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include + +namespace vamp::binding +{ + namespace nb_ = nanobind; + namespace vp_ = vamp::planning; + using namespace nb_::literals; + + template + inline void + register_planner_pair(Target &t, const char *name, const std::string &doc, Single single, Multi multi) + { + t.def(name, single, "start"_a, "goal"_a, "environment"_a, "settings"_a, "sampler"_a, doc.c_str()); + t.def(name, multi, "start"_a, "goal"_a, "environment"_a, "settings"_a, "sampler"_a, doc.c_str()); + } + + template + inline void register_planner(Target &t, const char *name) + { + register_planner_pair( + t, + name, + std::string("Plan using ") + name + ".", + &Traits::template solve_single, + &Traits::template solve_multi); + } + + template + inline void bind_robot_methods(Target &t) + { + using Env = typename Traits::Env; + const auto default_env = Env{}; + + t.def( + "fk", + &Traits::fk, + "configuration"_a, + "Forward kinematics. Returns the robot's collision spheres in world frame."); + t.def( + "eefk", + &Traits::eefk, + "configuration"_a, + "end_effector"_a = 0, + "End-effector forward kinematics for the end-effector with the given index (see " + "`end_effectors`). " + "Returns a 4x4 transform."); + t.def( + "debug", + &Traits::debug, + "configuration"_a, + "environment"_a = default_env, + "Per-sphere collision debug: which spheres collide with each other and the environment."); + t.def( + "validate", + &Traits::validate, + "configuration"_a, + "environment"_a = default_env, + "check_bounds"_a = false, + "Check whether a configuration is valid."); + t.def( + "validate_motion", + &Traits::validate_motion, + "configuration_in"_a, + "configuration_out"_a, + "environment"_a = default_env, + "check_bounds"_a = true, + "Check whether a straight-line motion between two configurations is valid."); + t.def( + "filter_self_from_pointcloud", + &Traits::filter_self_from_pointcloud, + "pc"_a, + "point_radius"_a, + "configuration"_a, + "environment"_a = default_env, + "Remove pointcloud points colliding with the robot or environment."); + t.def( + "simplify", + &Traits::simplify, + "path"_a, + "environment"_a, + "settings"_a, + "sampler"_a, + "Simplification heuristics to post-process a path."); + + t.def("halton", &Traits::make_halton, "Create a Halton sampler for this robot."); + t.def("xorshift", &Traits::make_xorshift, "Create an XORShift sampler."); + t.def("phs_sampler", &Traits::make_phs_sampler, "phs"_a, "rng"_a, "Create a PHS sampler."); + + t.def( + "roadmap", + &Traits::roadmap, + "start"_a, + "goal"_a, + "environment"_a, + "settings"_a, + "sampler"_a, + "PRM roadmap construction."); + + register_planner(t, "rrtc"); + register_planner(t, "prm"); + register_planner(t, "fcit"); + register_planner(t, "aorrtc"); + register_planner(t, "grrtstar"); + } + + template + inline auto bind_path_class(nb_::module_ &m, const char *name) -> nb_::class_ + { + using P = typename Traits::Path; + return nb_::class_

(m, name, "Path in configuration space represented as discrete waypoints.") + .def(nb_::init<>(), "Default constructor, creates empty path.") + .def("__len__", &P::size, "Return the number of waypoints in the path.") + .def( + "__getitem__", + [](const P &p, std::size_t i) + { + if (i >= p.size()) + { + throw nb_::index_error(); + } + + return Traits::path_get(p, i); + }, + "Get the i-th configuration in the path.") + .def("cost", &P::cost, "Compute the total path length (by the l2-norm) of the path.") + .def( + "subdivide", + &P::subdivide, + "Subdivide the path by inserting a configuration at the midpoint of every segment.") + .def( + "interpolate_to_n_states", + &P::interpolate_to_n_states, + "n"_a, + "Refine the path by interpolating to n states as evenly as possible.") + .def( + "interpolate_to_resolution", + &P::interpolate_to_resolution, + "resolution"_a, + "Refine the path by interpolating segments up to the given resolution.") + .def( + "validate", + [](P &p, const typename Traits::Env &e) { return Traits::path_validate(p, e); }, + "environment"_a, + "Validate the path in an environment.") + .def( + "numpy", + [](const P &p) { return Traits::path_numpy(p); }, + "Convert this path to an (n_waypoints, dimension) numpy array."); + } + + template + inline void bind_path_io(Klass &k) + { + using P = typename Traits::Path; + using C = typename Traits::Cfg; + k.def( + "__setitem__", + [](P &p, std::size_t i, const C &c) { Traits::path_set(p, i, c); }, + "Set the i-th configuration of the path.") + .def( + "append", + [](P &p, const C &c) { Traits::path_append(p, c); }, + "Append a configuration to the end of the path.") + .def( + "insert", + [](P &p, std::size_t i, const C &c) { Traits::path_insert(p, i, c); }, + "Insert a configuration at index i."); + } + + template + inline auto bind_planning_result(nb_::module_ &m, const char *name) + -> nb_::class_ + { + using R = typename Traits::PlanningResult; + return nb_::class_(m, name, "Result of a planning query.") + .def(nb_::init<>(), "Empty constructor.") + .def_prop_ro( + "solved", + [](const R &r) { return Traits::result_solved(r); }, + "Returns true if a solution was found.") + .def_ro("path", &R::path, "The solution path, if found.") + .def_ro("nanoseconds", &R::nanoseconds, "Nanoseconds taken to find the path.") + .def_ro("iterations", &R::iterations, "Number of planner iterations used to find the path.") + .def_ro( + "size", &R::size, "Sizes of the planner's internal datastructures (e.g. tree node counts)."); + } + + template + inline auto bind_sampler(nb_::module_ &m, const char *name) -> nb_::class_ + { + using S = typename Traits::Sampler; + return nb_::class_(m, name, "Sampler for robot configurations.") + .def("reset", &S::reset, "Reset the sampler to its initial state.") + .def( + "skip", + [](S &s, std::size_t n) { Traits::sampler_skip(s, n); }, + "n"_a, + "Skip the next n samples.") + .def("next", [](S &s) { return Traits::sampler_next(s); }, "Sample the next configuration."); + } + + template + inline auto bind_phs_class(nb_::module_ &m, const char *name) -> nb_::class_ + { + using P = typename Traits::Phs; + return nb_::class_

(m, name, "Prolate hyperspheroid for sampling.") + .def( + "set_transverse_diameter", + [](P &p, float d) { Traits::phs_set_transverse_diameter(p, d); }, + "diameter"_a, + "Set the PHS' transverse diameter."); + } + + template + inline void bind_phs_io(Klass &k) + { + using P = typename Traits::Phs; + using C = typename Traits::Cfg; + k.def( + "__init__", + [](P *self, const C &focus_a, const C &focus_b) + { Traits::phs_construct(self, focus_a, focus_b); }, + "focus_a"_a, + "focus_b"_a, + "Construct from two foci."); + k.def( + "transform", + [](P &p, const C &x) { return Traits::phs_transform(p, x); }, + "x"_a, + "Transform a unit-ball point into the PHS."); + } + + template + inline auto bind_roadmap_class(nb_::module_ &m, const char *name) -> nb_::class_ + { + using R = typename Traits::Roadmap; + return nb_::class_(m, name, "Undirected graph in configuration space.") + .def(nb_::init<>(), "Empty constructor.") + .def( + "__len__", [](const R &r) { return r.vertices.size(); }, "Return the number of vertices.") + .def( + "__getitem__", + [](const R &r, std::size_t i) + { + if (i >= r.vertices.size()) + { + throw nb_::index_error(); + } + + return Traits::roadmap_vertex(r, i); + }, + "Get the i-th vertex.") + .def_ro("vertices", &R::vertices, "List of all vertices (configurations) in the roadmap.") + .def_ro("edges", &R::edges, "List of all undirected edge pairs, by vertex index.") + .def_ro("nanoseconds", &R::nanoseconds, "Nanoseconds taken to construct roadmap.") + .def_ro("iterations", &R::iterations, "Number of iterations taken to construct roadmap."); + } +} // namespace vamp::binding diff --git a/src/impl/vamp/bindings/python/array_helpers.hh b/src/impl/vamp/bindings/python/array_helpers.hh new file mode 100644 index 00000000..4a831621 --- /dev/null +++ b/src/impl/vamp/bindings/python/array_helpers.hh @@ -0,0 +1,110 @@ +#pragma once + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace vamp::binding +{ + namespace nb = nanobind; + + template + inline auto make_ndarray(const float *data, std::array shape) -> NDArray + { + std::size_t total = 1; + for (auto s : shape) + { + total *= s; + } + auto *buf = new float[total]; + std::memcpy(buf, data, total * sizeof(float)); + nb::capsule owner(buf, [](void *p) noexcept { delete[] reinterpret_cast(p); }); + return NDArray(buf, Ndim, shape.data(), owner); + } + + template + inline auto make_ndarray(const float *data, std::array shape) + -> nb::ndarray + { + return make_ndarray, Ndim>(data, shape); + } + + template + inline auto + make_ndarray_filled(std::array shape, FillFn &&fill, std::size_t extra_slop = 0) + -> NDArray + { + std::size_t total = 1; + for (auto s : shape) + { + total *= s; + } + auto *buf = new float[total + extra_slop]; + fill(buf); + nb::capsule owner(buf, [](void *p) noexcept { delete[] reinterpret_cast(p); }); + return NDArray(buf, Ndim, shape.data(), owner); + } + + template + inline auto + make_ndarray_filled(std::array shape, FillFn &&fill, std::size_t extra_slop = 0) + -> nb::ndarray + { + return make_ndarray_filled, Ndim>( + shape, std::forward(fill), extra_slop); + } + + template + inline auto as_flat_1d(const NDArray &a, std::size_t dim, std::vector &scratch, const char *what) + -> const float * + { + if (a.shape(0) != dim) + { + throw std::runtime_error(std::string(what) + " has wrong dimension"); + } + if (a.stride(0) != 1) + { + scratch.resize(dim); + for (std::size_t i = 0; i < dim; ++i) + { + scratch[i] = a(i); + } + return scratch.data(); + } + return a.data(); + } + + template + inline auto + as_flat_2d(const NDArray &a, std::size_t inner_dim, std::vector &scratch, const char *what) + -> std::pair + { + if (a.shape(1) != inner_dim) + { + throw std::runtime_error(std::string(what) + " has wrong inner dimension"); + } + const std::uint64_t n = a.shape(0); + const bool contiguous = (a.stride(0) == static_cast(inner_dim) and a.stride(1) == 1); + if (contiguous) + { + return {a.data(), n}; + } + scratch.resize(n * inner_dim); + for (std::uint64_t i = 0; i < n; ++i) + { + for (std::size_t j = 0; j < inner_dim; ++j) + { + scratch[i * inner_dim + j] = a(i, j); + } + } + return {scratch.data(), n}; + } +} // namespace vamp::binding \ No newline at end of file diff --git a/src/impl/vamp/bindings/python/environment.cc b/src/impl/vamp/bindings/python/environment.cc index 53bbf43e..107b25b0 100644 --- a/src/impl/vamp/bindings/python/environment.cc +++ b/src/impl/vamp/bindings/python/environment.cc @@ -163,8 +163,10 @@ void vamp::binding::init_environment(nanobind::module_ &pymodule) }) .def( "attach", - [](vc::Environment &e, const vc::Attachment &a) { e.attachments.emplace(a); }) - .def("detach", [](vc::Environment &e) { e.attachments.reset(); }) + [](vc::Environment &e, const vc::Attachment &a) { e.attachments.emplace_back(a); }, + "Adds an attachment; multiple attachments (across end-effectors) may coexist.") + .def("detach", [](vc::Environment &e) { e.attachments.clear(); }) + .def_ro("attachments", &vc::Environment::attachments) .def_ro("spheres", &vc::Environment::spheres) .def_ro("cuboids", &vc::Environment::cuboids) .def_ro("z_aligned_cuboids", &vc::Environment::z_aligned_cuboids) @@ -208,13 +210,23 @@ void vamp::binding::init_environment(nanobind::module_ &pymodule) nb::class_>(pymodule, "Attachment") .def( "__init__", - [](vc::Attachment *q, Eigen::Matrix4f &tf) noexcept + [](vc::Attachment *q, Eigen::Matrix4f &tf, std::size_t end_effector) noexcept { Eigen::Isometry3f iso; iso.matrix() = tf; new (q) vc::Attachment(iso); + q->end_effector = end_effector; }, - "Constructor for an attachment centered at a relative transform from the end-effector.") + "tf"_a, + "end_effector"_a = 0, + "Constructor for an attachment centered at a relative transform from the given " + "end-effector (by index into the robot's end-effector list).") + .def_rw("end_effector", &vc::Attachment::end_effector) + .def_rw( + "allowed_links", + &vc::Attachment::allowed_links, + "Link ids (see the robot module's `exempt_links`) this attachment may touch without being " + "flagged.") .def_prop_ro("relative_frame", [](vc::Attachment &a) { return a.tf; }) .def( "add_sphere", diff --git a/src/impl/vamp/bindings/python/robot_helper.hh b/src/impl/vamp/bindings/python/robot_helper.hh index b4d1cef4..60538cd8 100644 --- a/src/impl/vamp/bindings/python/robot_helper.hh +++ b/src/impl/vamp/bindings/python/robot_helper.hh @@ -1,11 +1,32 @@ #pragma once -#include -#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include #if defined(__x86_64__) #include @@ -13,115 +34,136 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include -#include +#include #include +#include +#include #include -#include -#include +#include #include #include -#include -#include +#include +#include -#define DEFINE_HAS_METHOD(method_name) \ - template \ - struct has_##method_name : std::false_type \ - { \ - }; \ - \ - template \ - struct has_##method_name> : std::true_type \ - { \ - }; \ - \ - template \ - constexpr bool has_##method_name##_v = has_##method_name::value; - -DEFINE_HAS_METHOD(set_lows) -DEFINE_HAS_METHOD(set_highs) -DEFINE_HAS_METHOD(set_radius) +VAMP_DEFINE_HAS_METHOD(in_bounds) +VAMP_DEFINE_HAS_METHOD(set_lows) +VAMP_DEFINE_HAS_METHOD(set_highs) +VAMP_DEFINE_HAS_METHOD(set_radius) + +// Robots generated with attachment link tables declare `exempt_link_pairs` and `link_names`. +template +struct robot_has_exempt_link_pairs : std::false_type +{ +}; + +template +struct robot_has_exempt_link_pairs> : std::true_type +{ +}; + +template +constexpr bool robot_has_exempt_link_pairs_v = robot_has_exempt_link_pairs::value; + +// Robots generated with several end-effectors declare `end_effectors` (frame names) and `eefk(x, i)`. +template +struct robot_has_end_effectors : std::false_type +{ +}; + +template +struct robot_has_end_effectors> : std::true_type +{ +}; + +template +constexpr bool robot_has_end_effectors_v = robot_has_end_effectors::value; namespace vamp::binding { + namespace nb = nanobind; + using namespace nb::literals; + static constexpr const std::size_t rake = vamp::FloatVectorWidth; + // Whether a configuration lies within the robot's joint limits. Generated robots may provide + // in_bounds themselves; otherwise it is checked in the normalized [0, 1] cube. template - struct NDArrayInput + inline auto in_bounds(const typename Robot::Configuration &configuration) -> bool { - using Type = nanobind:: - ndarray, nanobind::device::cpu>; + auto trimmed = configuration.trim(); + if constexpr (has_in_bounds_v) + { + return Robot::in_bounds(trimmed); + } + else + { + Robot::descale_configuration(trimmed); + return (trimmed <= 1.F).all() and (trimmed >= 0.F).all(); + } + } + // Conversions shared by the two Python input adapters, written against the derived + // adapter's array(). + template + struct InputOps + { using Configuration = typename Robot::Configuration; using ConfigurationArray = typename Robot::ConfigurationArray; - template - using ConfigurationBlock = typename Robot::template ConfigurationBlock; - - inline static auto from(const Configuration &c) -> Type - { - auto *arr = new FloatT[Robot::dimension]; - auto c_arr = c.to_array(); - for (auto i = 0U; i < Robot::dimension; ++i) - { - arr[i] = c_arr[i]; - } - - nanobind::capsule arr_owner( - arr, [](void *a) noexcept { delete[] reinterpret_cast(a); }); - return Type(arr, {Robot::dimension}, arr_owner); - }; + template + using ConfigurationBlock = typename Robot::template ConfigurationBlock; + template inline static auto to(const Type &a) -> Configuration { - return Configuration(array(a)); - }; + return Configuration(Derived::array(a)); + } - inline static auto array(const Type &a) -> ConfigurationArray + template + inline static auto block(const Type &a) -> ConfigurationBlock { - ConfigurationArray c; + const auto &arr = Derived::array(a); + ConfigurationBlock out; for (auto i = 0U; i < Robot::dimension; ++i) { - c[i] = a(i); + out[i] = arr[i]; } + return out; + } + }; - return c; - }; + template + struct NDArrayInput : InputOps> + { + using Type = nanobind:: + ndarray, nanobind::device::cpu>; - template - inline static auto block(const Type &a) -> ConfigurationBlock + inline static auto from(const typename Robot::Configuration &c) -> Type { - ConfigurationBlock out; - for (auto i = 0U; i < Robot::dimension; ++i) - { - out[i] = a(i); - } + auto c_arr = c.to_array(); + return make_ndarray(c_arr.data(), {Robot::dimension}); + } - return out; + inline static auto array(const Type &a) -> typename Robot::ConfigurationArray + { + typename Robot::ConfigurationArray c; + std::vector scratch; + const auto *ptr = as_flat_1d(a, Robot::dimension, scratch, "configuration"); + std::memcpy(c.data(), ptr, Robot::dimension * sizeof(float)); + return c; } }; template - struct ArrayInput + struct ArrayInput : InputOps> { - using Type = typename Robot::ConfigurationArray; + // A plain std::array, not Robot::ConfigurationArray: the generated type is an aligned struct, + // which nanobind's std::array caster does not accept, so Python lists would be rejected. + using Type = std::array; - using Configuration = typename Robot::Configuration; - using ConfigurationArray = typename Robot::ConfigurationArray; - template - using ConfigurationBlock = typename Robot::template ConfigurationBlock; - - inline static auto from(const Configuration &c) -> Type + inline static auto from(const typename Robot::Configuration &c) -> Type { Type a; auto c_arr = c.to_array(); @@ -129,117 +171,94 @@ namespace vamp::binding { a[i] = c_arr[i]; } - - return a; - }; - - inline static auto to(const Type &a) -> Configuration - { - return Configuration(a); - }; - - inline static auto array(const Type &a) -> ConfigurationArray - { return a; } - template - inline static auto block(const Type &a) -> ConfigurationBlock + inline static auto array(const Type &a) -> const Type & { - ConfigurationBlock out; - for (auto i = 0U; i < Robot::dimension; ++i) - { - out[i] = a[i]; - } - - return out; + return a; } }; template - struct Helper + struct StaticRobotTraits { - using Type = typename Input::Type; - - using Configuration = typename Robot::Configuration; - - using EnvironmentInput = vamp::collision::Environment; - using EnvironmentVector = vamp::collision::Environment>; - + using Cfg = typename Input::Type; + using Pth = std::vector; + using Pc = std::vector; using Path = vamp::planning::Path; using PlanningResult = vamp::planning::PlanningResult; - using Roadmap = vamp::planning::Roadmap; + using Sampler = vamp::rng::RNG; + using Phs = vamp::planning::ProlateHyperspheroid; + using Env = vamp::collision::Environment; + using EnvVec = vamp::collision::Environment>; + using PRMSettings = vamp::planning::RoadmapSettings; + using FCITSettings = vamp::planning::RoadmapSettings; + using Configuration = typename Robot::Configuration; using RNG = vamp::rng::RNG; + using Roadmap = vamp::planning::Roadmap; - template - struct PlannerHelper - { - inline static auto single( - const Type &start, - const Type &goal, - const EnvironmentInput &environment, - const Settings &settings, - typename RNG::Ptr rng) -> PlanningResult - { - return Planner::solve( - Input::to(start), Input::to(goal), EnvironmentVector(environment), settings, rng); - } - - inline static auto multi( - const Type &start, - const std::vector &goals, - const EnvironmentInput &environment, - const Settings &settings, - typename RNG::Ptr rng) -> PlanningResult - { - std::vector goals_v; - goals_v.reserve(goals.size()); - - for (const auto &goal : goals) - { - goals_v.emplace_back(Input::to(goal)); - } + template + using PlannerT = vamp::planning::PlannerClass; - return Planner::solve( - Input::to(start), goals_v, EnvironmentVector(environment), settings, rng); - } + template + static auto solve_single( + const Cfg &start, + const Cfg &goal, + const Env &env, + const Settings &s, + std::shared_ptr rng) -> PlanningResult + { + return PlannerT

::solve(Input::to(start), Input::to(goal), EnvVec(env), s, rng); + } - inline static auto roadmap( - const Type &start, - const Type &goal, - const EnvironmentInput &environment, - const Settings &settings, - typename RNG::Ptr rng) -> Roadmap + template + static auto solve_multi( + const Cfg &start, + const Pth &goals, + const Env &env, + const Settings &s, + std::shared_ptr rng) -> PlanningResult + { + std::vector goals_v; + goals_v.reserve(goals.size()); + for (const auto &g : goals) { - return Planner::build_roadmap( - Input::to(start), Input::to(goal), EnvironmentVector(environment), settings, rng); + goals_v.emplace_back(Input::to(g)); } - }; - - using PRM = PlannerHelper< - vamp::planning::PRM, - vamp::planning::RoadmapSettings>; - - using RRTC = - PlannerHelper, vamp::planning::RRTCSettings>; + return PlannerT

::solve(Input::to(start), goals_v, EnvVec(env), s, rng); + } - using FCIT = PlannerHelper< - vamp::planning::FCIT, - vamp::planning::RoadmapSettings>; + static auto simplify( + const Path &p, + const Env &env, + const vamp::planning::SimplifySettings &settings, + std::shared_ptr rng) -> PlanningResult + { + return vamp::planning::simplify(p, EnvVec(env), settings, rng); + } - using AORRTC = PlannerHelper< - vamp::planning::AORRTC, - vamp::planning::AORRTCSettings>; + static auto roadmap( + const Cfg &start, + const Cfg &goal, + const Env &env, + const PRMSettings &s, + std::shared_ptr rng) -> Roadmap + { + return PlannerT::build_roadmap( + Input::to(start), Input::to(goal), EnvVec(env), s, rng); + } - using GRRTStar = PlannerHelper< - vamp::planning::GRRTStar, - vamp::planning::GRRTStarSettings>; + static auto roadmap_vertex(const Roadmap &r, std::size_t i) + { + return Input::from(r.vertices[i]); + } - inline static auto fk(const Type &c_in) -> std::vector> + static auto fk(const Cfg &c) -> std::vector> { typename Robot::template Spheres<1> out; - Robot::template sphere_fk<1>(Input::template block<1>(c_in), out); + Robot::template sphere_fk<1>(Input::template block<1>(c), out); std::vector> result(Robot::n_spheres); for (auto i = 0U; i < Robot::n_spheres; ++i) @@ -247,81 +266,62 @@ namespace vamp::binding result[i] = vamp::collision::Sphere{ out.x[{i, 0}], out.y[{i, 0}], out.z[{i, 0}], out.r[{i, 0}]}; } - return result; } - inline static auto debug(const Type &c_in, const EnvironmentInput &environment) -> - typename Robot::Debug + static auto eefk(const Cfg &c, std::size_t end_effector) -> Eigen::Matrix4f { - return Robot::fkcc_debug(EnvironmentVector(environment), Input::template block(c_in)); - } - - inline static auto - validate(const Type &c_in, const EnvironmentInput &environment, bool check_bounds = false) -> bool - { - auto configuration = Input::to(c_in); - auto copy = configuration.trim(); - Robot::descale_configuration(copy); + if constexpr (robot_has_end_effectors_v) + { + if (end_effector >= Robot::end_effectors.size()) + { + throw std::out_of_range("end_effector index out of range"); + } - const bool in_bounds = (copy <= 1.F).all() and (copy >= 0.F).all(); + return Robot::eefk(Input::array(c), end_effector).matrix(); + } + else + { + if (end_effector != 0) + { + throw std::out_of_range("end_effector index out of range"); + } - return (not check_bounds or in_bounds) and - vamp::planning::validate_motion( - configuration, configuration, EnvironmentVector(environment)); + return Robot::eefk(Input::array(c)).matrix(); + } } - inline static auto validate_motion( - const Type &c_in, - const Type &c_out, - const EnvironmentInput &environment, - bool check_bounds = false) -> bool + static auto debug(const Cfg &c, const Env &env) -> typename Robot::Debug { - auto configuration_in = Input::to(c_in); - auto copy_in = configuration_in.trim(); - Robot::descale_configuration(copy_in); - - const bool in_bounds_in = (copy_in <= 1.F).all() and (copy_in >= 0.F).all(); - - auto configuration_out = Input::to(c_out); - auto copy_out = configuration_out.trim(); - Robot::descale_configuration(copy_out); - - const bool in_bounds_out = (copy_out <= 1.F).all() and (copy_out >= 0.F).all(); - - return (not check_bounds or (in_bounds_in and in_bounds_out)) and - vamp::planning::validate_motion( - configuration_in, configuration_out, EnvironmentVector(environment)); + return Robot::fkcc_debug(EnvVec(env), Input::template block(c)); } - inline static auto simplify( - const Path &path, - const EnvironmentInput &environment, - const vamp::planning::SimplifySettings &settings, - typename RNG::Ptr rng) -> PlanningResult + static auto validate(const Cfg &c, const Env &env, bool check_bounds) -> bool { - return vamp::planning::simplify( - path, EnvironmentVector(environment), settings, rng); + auto configuration = Input::to(c); + return (not check_bounds or in_bounds(configuration)) and + vamp::planning::validate_motion(configuration, configuration, EnvVec(env)); } - inline static auto eefk(const Type &start) -> Eigen::Matrix4f + static auto validate_motion(const Cfg &c_in, const Cfg &c_out, const Env &env, bool check_bounds) + -> bool { - return Robot::eefk(Input::array(start)).matrix(); + auto cfg_in = Input::to(c_in); + auto cfg_out = Input::to(c_out); + return (not check_bounds or (in_bounds(cfg_in) and in_bounds(cfg_out))) and + vamp::planning::validate_motion(cfg_in, cfg_out, EnvVec(env)); } - inline static auto filter_self_from_pointcloud( - const std::vector &pc, - float point_radius, - const Type &c_in, - const EnvironmentInput &environment) -> std::vector + static auto + filter_self_from_pointcloud(const Pc &pc, float point_radius, const Cfg &c, const Env &env) -> Pc { // TODO: Do this smarter with SIMD CC - EnvironmentVector ev(environment); + EnvVec ev(env); typename Robot::template Spheres<1> out; - Robot::template sphere_fk<1>(Input::template block<1>(c_in), out); + Robot::template sphere_fk<1>(Input::template block<1>(c), out); - std::vector filtered; + Pc filtered; filtered.reserve(pc.size()); for (const auto &point : pc) @@ -331,9 +331,9 @@ namespace vamp::binding bool valid = true; for (auto i = 0U; i < Robot::n_spheres; ++i) { - if (collision::sphere_sphere_sql2( + if (vamp::collision::sphere_sphere_sql2( out.x[{i, 0}], out.y[{i, 0}], out.z[{i, 0}], out.r[{i, 0}], x, y, z, r) < 0 or - sphere_environment_in_collision<>(ev, x, y, z, r)) + vamp::sphere_environment_in_collision<>(ev, x, y, z, r)) { valid = false; break; @@ -348,303 +348,236 @@ namespace vamp::binding return filtered; } + + static auto make_halton() -> std::shared_ptr + { + return std::make_shared>(); + } + + static auto make_xorshift() -> std::shared_ptr + { +#if defined(__x86_64__) + return std::make_shared>(); +#else + throw std::runtime_error("XORShift is not supported on non-x86 systems!"); +#endif + } + + static void phs_construct(Phs *self, const Cfg &focus_a, const Cfg &focus_b) + { + new (self) Phs(Input::to(focus_a), Input::to(focus_b)); + } + + static auto make_phs_sampler(const Phs &phs, std::shared_ptr inner) + -> std::shared_ptr + { + return std::make_shared>(phs, inner); + } + + static auto path_get(const Path &p, std::size_t i) + { + return Input::from(p[i]); + } + + static auto path_validate(Path &p, const Env &e) -> bool + { + return p.template validate(EnvVec(e)); + } + + static auto path_numpy(const Path &p) + { + using ND = nanobind::ndarray; + const std::size_t slop = Robot::Configuration::num_scalars_rounded - Robot::dimension; + return make_ndarray_filled( + {p.size(), Robot::dimension}, + [&](FloatT *dst) + { + for (auto i = 0U; i < p.size(); ++i) + { + p[i].to_array_unaligned(dst + i * Robot::dimension); + } + }, + slop); + } + + static void path_set(Path &p, std::size_t i, const Cfg &c) + { + p[i] = Input::to(c); + } + + static void path_append(Path &p, const Cfg &c) + { + p.emplace_back(Input::to(c)); + } + + static void path_insert(Path &p, std::size_t i, const Cfg &c) + { + p.insert(p.cbegin() + i, Input::to(c)); + } + + static auto result_solved(const PlanningResult &r) -> bool + { + return r.solved; + } + + static void sampler_skip(Sampler &s, std::size_t n) + { + for (auto i = 0U; i < n; ++i) + { + s.next(); + } + } + + static auto sampler_next(Sampler &s) + { + return Input::from(s.next()); + } + + static void phs_set_transverse_diameter(Phs &p, float d) + { + p.set_transverse_diameter(d); + } + + static auto phs_transform(Phs &p, const Cfg &x) + { + return Input::from(p.transform(Input::to(x))); + } }; template inline auto init_robot(nanobind::module_ &pymodule) -> nanobind::module_ { - namespace nb = nanobind; - using namespace nb::literals; - using NA = NDArrayInput; using CA = ArrayInput; - using NDArray = typename NA::Type; - using Array = typename CA::Type; - using HPN = Helper; - using HPA = Helper; + using TA = StaticRobotTraits; + using TC = StaticRobotTraits; auto submodule = pymodule.def_submodule(Robot::name, "Robot-specific submodule"); - submodule.def( - "dimension", - []() { return Robot::dimension; }, - "Dimension of configuration space for this robot."); - submodule.def( - "resolution", - []() { return Robot::resolution; }, - "Collision checking resolution for this robot."); - submodule.def( - "n_spheres", []() { return Robot::n_spheres; }, "Number of spheres in robot collision model."); - submodule.def( - "space_measure", []() { return Robot::space_measure(); }, "Measure of robot's C-space."); + submodule.def("dimension", []() { return Robot::dimension; }); + submodule.def("resolution", []() { return Robot::resolution; }); + submodule.def("n_spheres", []() { return Robot::n_spheres; }); + submodule.def("space_measure", []() { return Robot::space_measure(); }); submodule.def( "min_max_radii", - []() -> std::pair { return {Robot::min_radius, Robot::max_radius}; }, - "Minimum and maximum radii sizes of robot spheres."); - submodule.def( - "joint_names", []() { return Robot::joint_names; }, "Joint names for the robot in order of DoF"); - submodule.def("end_effector", []() { return Robot::end_effector; }, "End-effector frame name."); - + []() -> std::pair { return {Robot::min_radius, Robot::max_radius}; }); + submodule.def("joint_names", []() { return Robot::joint_names; }); + submodule.def("end_effector", []() { return Robot::end_effector; }); submodule.def( - "upper_bounds", - []() -> NDArray + "end_effectors", + []() { - std::array ones; - ones.fill(1.0f); - auto one_v = typename Robot::Configuration(ones); - Robot::scale_configuration(one_v); - return NA::from(one_v); - }); - submodule.def( - "lower_bounds", - []() -> NDArray - { - std::array zeros; - zeros.fill(0.0f); - auto zero_v = typename Robot::Configuration(zeros); - Robot::scale_configuration(zero_v); - return NA::from(zero_v); - }); - using RNG = vamp::rng::RNG; - nb::class_(submodule, "RNG", "RNG for robot configurations.") - .def( - "reset", - [](typename RNG::Ptr rng) { rng->reset(); }, - "Reset the RNG to initial state and seed.") - .def( - "next", - [](typename RNG::Ptr rng) -> NDArray { return NA::from(rng->next()); }, - "Sample the next configuration. Modifies internal RNG state.") - .def( - "skip", - [](typename RNG::Ptr rng, std::size_t n) + std::vector names; + if constexpr (robot_has_end_effectors_v) { - for (auto i = 0U; i < n; ++i) + for (const auto &name : Robot::end_effectors) { - rng->next(); + names.emplace_back(name); } - }, - "Skip the next n iterations."); - - using PHS = vamp::planning::ProlateHyperspheroid; - nb::class_(submodule, "ProlateHyperspheroid", "Prolate Hyperspheroid for Robot.") - .def( - "__init__", - [](PHS *t, const NDArray &a, const NDArray &b) { new (t) PHS(NA::to(a), NA::to(b)); }, - "Construct from two loci.") - .def("set_transverse_diameter", &PHS::set_transverse_diameter) - .def("transform", &PHS::transform); - - submodule.def( - "halton", - []() -> typename RNG::Ptr { return std::make_shared>(); }, - "Creates a new Halton sampler."); - - submodule.def( - "phs_sampler", - [](const planning::ProlateHyperspheroid &phs, typename RNG::Ptr rng) -> typename RNG::Ptr - { return std::make_shared>(phs, rng); }, - "Creates a new PHS sampler."); + } + else + { + names.emplace_back(Robot::end_effector); + } -#if defined(__x86_64__) - submodule.def( - "xorshift", - []() -> typename RNG::Ptr { return std::make_shared>(); }, - "Creates a new XORShift sampler."); -#else - submodule.def( - "xorshift", []() { throw std::runtime_error("XORShift is not supported on non-x86 systems!"); }); -#endif + return names; + }, + "Frame names of the robot's end-effectors; `eefk` and `Attachment` take indices into this list."); - using Path = vamp::planning::Path; - nb::class_(submodule, "Path", "Path in configuration space represented as discrete waypoints.") - .def(nb::init<>(), "Default constructor, creates empty path.") - .def( - "__len__", - [](const Path &p) { return p.size(); }, - "Return the number of waypoints in the path.") - .def( - "__getitem__", - [](const Path &p, std::size_t i) -> NDArray { return NA::from(p[i]); }, - "Get the i-th configuration in the path.") - .def( - "__setitem__", - [](Path &p, std::size_t i, const NDArray &c) { p[i] = NA::to(c); }, - "Set the i-th configuration of the the path.") - .def( - "append", - [](Path &p, const NDArray &c) { p.emplace_back(NA::to(c)); }, - "Append a configuration to the end of this path.") - .def( - "insert", - [](Path &p, std::size_t i, const NDArray &c) { p.insert(p.cbegin() + i, NA::to(c)); }, - "Append a configuration to the end of this path.") - .def( - "__setitem__", - [](Path &p, std::size_t i, const Array &c) { p[i] = CA::to(c); }, - "Set the i-th configuration of the the path.") - .def( - "append", - [](Path &p, const Array &c) { p.emplace_back(CA::to(c)); }, - "Append a configuration to the end of this path.") - .def( - "insert", - [](Path &p, std::size_t i, const Array &c) { p.insert(p.cbegin() + i, CA::to(c)); }, - "Append a configuration to the end of this path.") - .def("cost", &Path::cost, "Compute the total path length (by the l2-norm) of the path.") - .def( - "subdivide", - &Path::subdivide, - "Subdivide the path by inserting a configuration at the midpoint of all existing segments.") - .def( - "interpolate_to_resolution", - &Path::interpolate_to_resolution, - "Refine the path by interpolating all segments up to the resolution provided.") - .def( - "interpolate_to_n_states", - &Path::interpolate_to_n_states, - "Refine the path by interpolating to n states as even as possible.") - .def( - "validate", - [](Path &p, const typename HPN::EnvironmentInput &e) + if constexpr (robot_has_exempt_link_pairs_v) + { + submodule.def( + "link_names", + []() { - const typename HPN::EnvironmentVector ev(e); - return p.template validate(ev); + std::vector names; + for (const auto &name : Robot::link_names) + { + names.emplace_back(name); + } + + return names; }, - "Validate the path in an environment.") - .def( - "numpy", - [](const Path &p) noexcept + "Link (frame) names; their positions are the ids used by `Attachment.allowed_links`."); + + submodule.def( + "exempt_links", + [](const std::vector &names) { - auto *path_arr = new FloatT - [Robot::dimension * p.size() + - (Robot::Configuration::num_scalars_rounded - Robot::dimension)]; - for (auto i = 0U; i < p.size(); ++i) + std::vector links; + const auto add = [&links](std::size_t link) + { + if (std::find(links.begin(), links.end(), link) == links.end()) + { + links.emplace_back(link); + } + }; + + for (const auto &name : names) { - p[i].to_array_unaligned(path_arr + i * Robot::dimension); + const auto it = std::find(Robot::link_names.begin(), Robot::link_names.end(), name); + if (it == Robot::link_names.end()) + { + throw std::invalid_argument("Unknown link '" + name + "'"); + } + + const auto link = static_cast(it - Robot::link_names.begin()); + add(link); + for (const auto &[a, b] : Robot::exempt_link_pairs) + { + if (a == link) + { + add(b); + } + else if (b == link) + { + add(a); + } + } } - nb::capsule arr_owner( - path_arr, [](void *a) noexcept { delete[] reinterpret_cast(a); }); - return nb::ndarray( - path_arr, {p.size(), Robot::dimension}, arr_owner); + return links; }, - "Convert this path to a numpy matrix."); - - nb::class_(submodule, "PlanningResult", "Result of a planning query.") - .def(nb::init<>(), "Empty constructor.") - .def_prop_ro( - "solved", - [](const typename HPN::PlanningResult &p) { return p.path.size() >= 2; }, - "Returns true if solution found.") - .def_ro("path", &HPN::PlanningResult::path, "The solution path, if the path is found.") - .def_ro("nanoseconds", &HPN::PlanningResult::nanoseconds, "Nanoseconds taken to find the path.") - .def_ro( - "iterations", - &HPN::PlanningResult::iterations, - "Number of planner iterations used to find the path.") - .def_ro("size", &HPN::PlanningResult::size, "Size of the internal planner datastructures."); - - nb::class_(submodule, "Roadmap", "Undirected graph in configuration space.") - .def(nb::init<>(), "Empty constructor.") - .def( - "__len__", - [](const typename HPN::Roadmap &r) { return r.vertices.size(); }, - "Return the number of vertices in the roadmap.") - .def( - "__getitem__", - [](const typename HPN::Roadmap &r, std::size_t i) -> NDArray - { return NA::from(r.vertices[i]); }, - "Get the i-th vertex.") - .def_ro( - "vertices", &HPN::Roadmap::vertices, "List of all vertices (configurations) in the roadmap.") - .def_ro("edges", &HPN::Roadmap::edges, "List of all undirected edge pairs, by vertex index.") - .def_ro("nanoseconds", &HPN::Roadmap::nanoseconds, "Nanoseconds taken to construct roadmap.") - .def_ro( - "iterations", &HPN::Roadmap::iterations, "Number of iterations taken to construct roadmap."); - - // Doesn't have an Array/NDArray interface, so only once - submodule.def( - "simplify", - HPN::simplify, - "path"_a, - "environment"_a, - "settings"_a, - "rng"_a, - "Simplification heuristics to post-process a path."); - -#define MF(name, func, desc, ...) \ - submodule.def(name, HPN::func, ##__VA_ARGS__, desc); \ - submodule.def(name, HPA::func, ##__VA_ARGS__, desc); - - MF("fk", - fk, - "Computes the forward kinematics of the robot. Returns array of all collision sphere positions.", - "configuration"_a); - - MF("eefk", - eefk, - "Computes the forward kinematics of the robot's end-effector. Returns XYZ and a XYZW quaternion.", - "configuration"_a); - - MF("debug", - debug, - "Check which spheres of a robot configuration are in collision.", - "configuration"_a, - "environment"_a = vamp::collision::Environment()); - - MF("validate", - validate, - "Check if a configuration is valid. Returns true if valid.", - "configuration"_a, - "environment"_a = vamp::collision::Environment(), - "check_bounds"_a = false); - - MF("validate_motion", - validate_motion, - "Check if a configuration is valid. Returns true if valid.", - "configuration_in"_a, - "configuration_out"_a, - "environment"_a = vamp::collision::Environment(), - "check_bounds"_a = true); - - MF("filter_self_from_pointcloud", - filter_self_from_pointcloud, - "Removes points from pointcloud which collide with the robot and environment.", - "pc"_a, - "point_radius"_a, - "configuration"_a, - "environment"_a = vamp::collision::Environment()); - - MF("roadmap", - PRM::roadmap, - "PRM roadmap construction.", - "start"_a, - "goal"_a, - "environment"_a, - "settings"_a, - "rng"_a); - -#define PLANNER(name, func, desc, ...) \ - MF(name, func::single, desc, "start"_a, "goal"_a, "environment"_a, "settings"_a, "rng"_a); \ - MF(name, func::multi, desc, "start"_a, "goal"_a, "environment"_a, "settings"_a, "rng"_a); - - PLANNER("rrtc", RRTC, "RRTConnect"); - PLANNER("prm", PRM, "PRM"); - PLANNER("fcit", FCIT, "FCIT"); - PLANNER("aorrtc", AORRTC, "AORRTC"); - PLANNER("grrtstar", GRRTStar, "GRRTStar"); + "names"_a, + "Link ids for `Attachment.allowed_links`: the named links plus every link they may touch " + "(their disabled collision pairs)."); + } + + const auto bounds = [](float fill) -> typename NA::Type + { + std::array v; + v.fill(fill); + auto cfg = typename Robot::Configuration(v); + Robot::scale_configuration(cfg); + return NA::from(cfg); + }; + submodule.def("upper_bounds", [bounds]() { return bounds(1.0F); }); + submodule.def("lower_bounds", [bounds]() { return bounds(0.0F); }); + + bind_sampler(submodule, "RNG"); + + auto phs_k = bind_phs_class(submodule, "ProlateHyperspheroid"); + bind_phs_io(phs_k); + bind_phs_io(phs_k); + + auto path_k = bind_path_class(submodule, "Path"); + bind_path_io(path_k); + bind_path_io(path_k); + + bind_planning_result(submodule, "PlanningResult"); + bind_roadmap_class(submodule, "Roadmap"); + + bind_robot_methods(submodule); + bind_robot_methods(submodule); if constexpr (has_set_lows_v) { submodule.def("set_lows", &Robot::set_lows, "Set lower bounds."); } - if constexpr (has_set_highs_v) { submodule.def("set_highs", &Robot::set_highs, "Set upper bounds."); } - if constexpr (has_set_radius_v) { submodule.def("set_radius", &Robot::set_radius, "Set radius."); diff --git a/src/impl/vamp/bindings/python/settings.cc b/src/impl/vamp/bindings/python/settings.cc index 3a3831be..868664eb 100644 --- a/src/impl/vamp/bindings/python/settings.cc +++ b/src/impl/vamp/bindings/python/settings.cc @@ -1,9 +1,9 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -24,7 +24,8 @@ void vamp::binding::init_settings(nanobind::module_ &pymodule) .def_rw("tree_ratio", &vp::RRTCSettings::tree_ratio) .def_rw("max_iterations", &vp::RRTCSettings::max_iterations) .def_rw("max_samples", &vp::RRTCSettings::max_samples) - .def_rw("start_tree_first", &vp::RRTCSettings::start_tree_first); + .def_rw("start_tree_first", &vp::RRTCSettings::start_tree_first) + .def_rw("nn_epsilon", &vp::RRTCSettings::nn_epsilon); nb::class_(pymodule, "AORRTCSettings") .def(nb::init<>()) @@ -60,7 +61,8 @@ void vamp::binding::init_settings(nanobind::module_ &pymodule) .def_rw("prune_threshold", &vp::GRRTStarSettings::prune_threshold) .def_rw("optimize", &vp::GRRTStarSettings::optimize) .def_rw("max_iterations", &vp::GRRTStarSettings::max_iterations) - .def_rw("max_samples", &vp::GRRTStarSettings::max_samples); + .def_rw("max_samples", &vp::GRRTStarSettings::max_samples) + .def_rw("nn_epsilon", &vp::GRRTStarSettings::nn_epsilon); // TODO: Redesign a neater form of RoadmapSettings/NeighborParams // TODO: Expose the other NeighborParams types @@ -78,6 +80,7 @@ void vamp::binding::init_settings(nanobind::module_ &pymodule) .def_rw("max_iterations", &PRMStarSettings::max_iterations) .def_rw("max_samples", &PRMStarSettings::max_samples) .def_rw("neighbor_params", &PRMStarSettings::neighbor_params) + .def_rw("nn_epsilon", &PRMStarSettings::nn_epsilon) .def("max_neighbors", &PRMStarSettings::max_neighbors) .def("neighbor_radius", &PRMStarSettings::neighbor_radius); @@ -97,6 +100,7 @@ void vamp::binding::init_settings(nanobind::module_ &pymodule) .def_rw("batch_size", &FCITStarSettings::batch_size) .def_rw("optimize", &FCITStarSettings::optimize) .def_rw("neighbor_params", &FCITStarSettings::neighbor_params) + .def_rw("nn_epsilon", &FCITStarSettings::nn_epsilon) .def("max_neighbors", &FCITStarSettings::max_neighbors) .def("neighbor_radius", &FCITStarSettings::neighbor_radius); diff --git a/src/impl/vamp/bindings/wasm/robot_helper.hh b/src/impl/vamp/bindings/wasm/robot_helper.hh index 67a5d6c7..19eebfb2 100644 --- a/src/impl/vamp/bindings/wasm/robot_helper.hh +++ b/src/impl/vamp/bindings/wasm/robot_helper.hh @@ -3,10 +3,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include diff --git a/src/impl/vamp/collision/attachments.hh b/src/impl/vamp/collision/attachments.hh index e49edf00..7ad762ab 100644 --- a/src/impl/vamp/collision/attachments.hh +++ b/src/impl/vamp/collision/attachments.hh @@ -27,6 +27,8 @@ namespace vamp::collision template >> Attachment(const Attachment &o) noexcept : Attachment(o.tf) { + end_effector = o.end_effector; + allowed_links = o.allowed_links; spheres.reserve(o.spheres.size()); for (const auto &sphere : o.spheres) { @@ -34,6 +36,25 @@ namespace vamp::collision } } + // Index into the robot's end-effector list this attachment rides on. + std::size_t end_effector = 0; + // Links (the robot's link ids, see Robot::link_names) this attachment may touch without being + // flagged. Empty: the attachment is checked against every link its end-effector is checked against. + std::vector allowed_links; + + inline auto allows(std::size_t link) const noexcept -> bool + { + for (const auto allowed : allowed_links) + { + if (allowed == link) + { + return true; + } + } + + return false; + } + std::vector> spheres; // HACK: To get around passing the environment as const but needing to re-pose the // attachments diff --git a/src/impl/vamp/collision/environment.hh b/src/impl/vamp/collision/environment.hh index a380bf85..4880e0e5 100644 --- a/src/impl/vamp/collision/environment.hh +++ b/src/impl/vamp/collision/environment.hh @@ -4,7 +4,6 @@ #include #include -#include #include #include #include @@ -22,7 +21,7 @@ namespace vamp::collision std::vector> z_aligned_cuboids; std::vector> heightfields; std::vector pointclouds; - std::optional> attachments; + std::vector> attachments; Environment() = default; @@ -73,23 +72,42 @@ namespace vamp::collision friend struct Environment; template - inline auto clone_attachments() const noexcept -> std::optional> + inline auto clone_attachments() const noexcept -> std::vector> { - if (attachments) + std::vector> result; + result.reserve(attachments.size()); + for (const auto &attachment : attachments) { - return Attachment(*attachments); + result.emplace_back(attachment); } - return std::nullopt; + return result; } }; + // Poses every attachment riding on end-effector `end_effector`. template inline auto set_attachment_pose( const Environment &e, + std::size_t end_effector, const Eigen::Transform &p_tf) noexcept { - e.attachments->pose(p_tf); + for (const auto &attachment : e.attachments) + { + if (attachment.end_effector == end_effector) + { + attachment.pose(p_tf); + } + } + } + + // Single-attachment form of the previous generator: poses the attachments of end-effector 0. + template + inline auto set_attachment_pose( + const Environment &e, + const Eigen::Transform &p_tf) noexcept + { + set_attachment_pose(e, std::size_t{0}, p_tf); } } // namespace vamp::collision diff --git a/src/impl/vamp/collision/validity.hh b/src/impl/vamp/collision/validity.hh index b555c13e..32576d04 100644 --- a/src/impl/vamp/collision/validity.hh +++ b/src/impl/vamp/collision/validity.hh @@ -252,24 +252,29 @@ namespace vamp inline constexpr auto attachment_environment_collision(const collision::Environment &e) noexcept -> bool { - for (const auto &s : e.attachments->posed_spheres) + for (const auto &attachment : e.attachments) { - // HACK: The radius needs to be a float, and unfortunately the spheres assume homogeneous - // DataT for storage - // TODO: Fix the sphere representation to allow to store float radii even with vector - // centers - if (sphere_environment_in_collision(e, s.x, s.y, s.z, s.r[{0, 0}])) + for (const auto &s : attachment.posed_spheres) { - return true; + // HACK: The radius needs to be a float, and unfortunately the spheres assume + // homogeneous DataT for storage + // TODO: Fix the sphere representation to allow to store float radii even with vector + // centers + if (sphere_environment_in_collision(e, s.x, s.y, s.z, s.r[{0, 0}])) + { + return true; + } } } return false; } + // Checks a robot sphere against every attachment riding on end-effector `end_effector`. template inline constexpr auto attachment_sphere_collision( const collision::Environment &e, + std::size_t end_effector, ArgT1 sx_, ArgT2 sy_, ArgT3 sz_, @@ -280,12 +285,101 @@ namespace vamp auto sy = static_cast(sy_); auto sz = static_cast(sz_); auto sr = static_cast(sr_); - for (const auto &att_s : e.attachments->posed_spheres) + for (const auto &attachment : e.attachments) { - if (not collision::sphere_sphere_sql2(sx, sy, sz, sr, att_s.x, att_s.y, att_s.z, att_s.r) - .test_zero()) + if (attachment.end_effector != end_effector) { - return true; + continue; + } + + for (const auto &att_s : attachment.posed_spheres) + { + if (not collision::sphere_sphere_sql2(sx, sy, sz, sr, att_s.x, att_s.y, att_s.z, att_s.r) + .test_zero()) + { + return true; + } + } + } + + return false; + } + + // As above for robot link `link`: attachments that are allowed to touch that link are skipped. + template + inline constexpr auto attachment_sphere_collision( + const collision::Environment &e, + std::size_t end_effector, + std::size_t link, + ArgT1 sx_, + ArgT2 sy_, + ArgT3 sz_, + ArgT4 sr_) noexcept -> bool + { + auto sx = static_cast(sx_); + auto sy = static_cast(sy_); + auto sz = static_cast(sz_); + auto sr = static_cast(sr_); + for (const auto &attachment : e.attachments) + { + if (attachment.end_effector != end_effector or attachment.allows(link)) + { + continue; + } + + for (const auto &att_s : attachment.posed_spheres) + { + if (not collision::sphere_sphere_sql2(sx, sy, sz, sr, att_s.x, att_s.y, att_s.z, att_s.r) + .test_zero()) + { + return true; + } + } + } + + return false; + } + + // Single-attachment form of the previous generator: checks against the attachments of end-effector 0. + template + inline constexpr auto attachment_sphere_collision( + const collision::Environment &e, + ArgT1 sx_, + ArgT2 sy_, + ArgT3 sz_, + ArgT4 sr_) noexcept -> bool + { + return attachment_sphere_collision(e, std::size_t{0}, sx_, sy_, sz_, sr_); + } + + // Checks attachments on different end-effectors against each other; attachments riding + // on the same end-effector move rigidly together and are never tested. + template + inline constexpr auto attachment_attachment_collision(const collision::Environment &e) noexcept + -> bool + { + for (auto i = 0U; i < e.attachments.size(); ++i) + { + const auto &a = e.attachments[i]; + for (auto j = i + 1; j < e.attachments.size(); ++j) + { + const auto &b = e.attachments[j]; + if (a.end_effector == b.end_effector) + { + continue; + } + + for (const auto &sa : a.posed_spheres) + { + for (const auto &sb : b.posed_spheres) + { + if (not collision::sphere_sphere_sql2(sa.x, sa.y, sa.z, sa.r, sb.x, sb.y, sb.z, sb.r) + .test_zero()) + { + return true; + } + } + } } } diff --git a/src/impl/vamp/planning/aox_nn.hh b/src/impl/vamp/planning/aox_nn.hh deleted file mode 100644 index 642ef1f4..00000000 --- a/src/impl/vamp/planning/aox_nn.hh +++ /dev/null @@ -1,836 +0,0 @@ -#pragma once - -// Implementation taken from OMPL, license reproduced here: - -/********************************************************************* - * Software License Agreement (BSD License) - * - * Copyright (c) 2011, Rice University - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of the Rice University nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - *********************************************************************/ - -/* Author: Mark Moll, Bryant Gipson */ - -#include -#include -#include -#include -#include - -#include -#include - -#include - -namespace vamp::planning -{ - template - struct GNATNode - { - std::size_t index; - float cost; - FloatVector array; - - // AOX distance function - inline static auto distance(const GNATNode &a, const GNATNode &b) -> float - { - // Configuration space distance + Cost space distance - return std::sqrt(std::pow(a.array.distance(b.array), 2) + std::pow(a.cost - b.cost, 2)); - } - }; - - template - inline bool operator==(const GNATNode &lhs, const GNATNode &rhs) - { - return lhs.index == rhs.index; - } - - template - inline bool operator!=(const GNATNode &lhs, const GNATNode &rhs) - { - return not(lhs == rhs); - } - - /** \brief Geometric Near-neighbor Access Tree (GNAT), a data - structure for nearest neighbor search. - - If GNAT_SAMPLER is defined, then extra code will be enabled to sample - elements from the GNAT with probability inversely proportial to their - local density. - - @par External documentation - S. Brin, Near neighbor search in large metric spaces, in Proc. 21st - Conf. on Very Large Databases (VLDB), pp. 574–584, 1995. - - B. Gipson, M. Moll, and L.E. Kavraki, Resolution independent density - estimation for motion planning in high-dimensional spaces, in - IEEE Intl. Conf. on Robotics and Automation, 2013. - [[PDF]](http://www.kavrakilab.org/publications/gipson-moll2013resolution-independent-density.pdf) - */ - template - class NearestNeighborsGNAT - { - protected: - // internally, we use a priority queue for nearest neighbors, paired - // with their distance to the query point - using NearQueue = std::priority_queue>; - - // another internal data structure is a priority queue of nodes to - // check next for possible nearest neighbors - class Node; - using NodeDist = std::pair; - - struct NodeDistCompare - { - auto operator()(const NodeDist &n0, const NodeDist &n1) const noexcept -> bool - { - return (n0.second - n0.first->maxRadius_) > (n1.second - n1.first->maxRadius_); - } - }; - - using NodeQueue = std::priority_queue, NodeDistCompare>; - - public: - using DistanceFunction = std::function; - - explicit NearestNeighborsGNAT( - std::size_t degree = 8, - std::size_t minDegree = 4, - std::size_t maxDegree = 12, - std::size_t maxNumPtsPerLeaf = 50, - std::size_t removedCacheSize = 500, - bool rebalancing = false) noexcept - : degree_(degree) - , minDegree_(std::min(degree, minDegree)) - , maxDegree_(std::max(maxDegree, degree)) - , maxNumPtsPerLeaf_(maxNumPtsPerLeaf) - , rebuildSize_(rebalancing ? maxNumPtsPerLeaf * degree : std::numeric_limits::max()) - , removedCacheSize_(removedCacheSize) - { - } - - ~NearestNeighborsGNAT() noexcept - { - delete tree_; - } - - void clear() noexcept - { - if (tree_) - { - delete tree_; - tree_ = nullptr; - } - - size_ = 0; - removed_.clear(); - if (rebuildSize_ != std::numeric_limits::max()) - { - rebuildSize_ = maxNumPtsPerLeaf_ * degree_; - } - } - - void add(const _T &data) noexcept - { - if (tree_) - { - if (isRemoved(data)) - { - rebuildDataStructure(); - } - tree_->add(*this, data); - } - else - { - tree_ = new Node(degree_, maxNumPtsPerLeaf_, data); - size_ = 1; - } - } - - void add(const std::vector<_T> &data) noexcept - { - if (tree_) - { - for (const auto &elt : data) - { - add(elt); - } - } - else if (not data.empty()) - { - tree_ = new Node(degree_, maxNumPtsPerLeaf_, data[0]); - tree_->data_.insert(tree_->data_.end(), data.begin() + 1, data.end()); - size_ += data.size(); - - if (tree_->needToSplit(*this)) - { - tree_->split(*this); - } - } - } - - /// \brief Rebuild the internal data structure. - void rebuildDataStructure() noexcept - { - std::vector<_T> lst; - lst.reserve(size()); - list(lst); - clear(); - add(lst); - } - - /// \brief Remove data from the tree. - /// The element won't actually be removed immediately, but just marked - /// for removal in the removed_ cache. When the cache is full, the tree - /// will be rebuilt and the elements marked for removal will actually - /// be removed. - auto remove(const _T &data) noexcept -> bool - { - if (size_ == 0U) - { - return false; - } - - NearQueue nbhQueue; - - // find data in tree - const bool isPivot = nearestKInternal(data, 1, nbhQueue); - const _T *d = nbhQueue.top().second; - - if (*d != data) - { - return false; - } - - removed_.insert(d); - size_--; - - // if we removed a pivot or if the capacity of removed elements - // has been reached, we rebuild the entire GNAT - if (isPivot or removed_.size() >= removedCacheSize_) - { - rebuildDataStructure(); - } - - return true; - } - - auto nearest(const _T &data) const noexcept -> _T - { - if (size_) - { - NearQueue nbhQueue; - nearestKInternal(data, 1, nbhQueue); - - if (not nbhQueue.empty()) - { - return *nbhQueue.top().second; - } - } - } - - /// Return the k nearest neighbors in sorted order - void nearestK(const _T &data, std::size_t k, std::vector<_T> &nbh) const noexcept - { - nbh.clear(); - - if (k != 0 and size_) - { - NearQueue nbhQueue; - nearestKInternal(data, k, nbhQueue); - postprocessNearest(nbhQueue, nbh); - } - } - - /// Return the nearest neighbors within distance \c radius in sorted order - void nearestR(const _T &data, float radius, std::vector<_T> &nbh) const noexcept - { - nbh.clear(); - - if (size_) - { - NearQueue nbhQueue; - nearestRInternal(data, radius, nbhQueue); - postprocessNearest(nbhQueue, nbh); - } - } - - auto size() const noexcept -> std::size_t - { - return size_; - } - - void list(std::vector<_T> &data) const noexcept - { - data.clear(); - data.reserve(size()); - - if (tree_) - { - tree_->list(*this, data); - } - } - - protected: - using GNAT = NearestNeighborsGNAT<_T>; - - /// Return true iff data has been marked for removal. - auto isRemoved(const _T &data) const noexcept -> bool - { - return not removed_.empty() and removed_.find(&data) != removed_.end(); - } - - /// \brief Return in nbhQueue the k nearest neighbors of data. - /// For k=1, return true if the nearest neighbor is a pivot. - /// (which is important during removal; removing pivots is a - /// special case). - auto nearestKInternal(const _T &data, std::size_t k, NearQueue &nbhQueue) const noexcept -> bool - { - NodeDist nodeDist; - NodeQueue nodeQueue; - - const float dist = _T::distance(data, tree_->pivot_); - bool isPivot = tree_->insertNeighborK(nbhQueue, k, tree_->pivot_, data, dist); - tree_->nearestK(*this, data, k, nbhQueue, nodeQueue, isPivot); - - while (not nodeQueue.empty()) - { - dist = nbhQueue.top().first; // note the difference with nearestRInternal - nodeDist = nodeQueue.top(); - nodeQueue.pop(); - - if (nbhQueue.size() == k and (nodeDist.second > nodeDist.first->maxRadius_ + dist or - nodeDist.second < nodeDist.first->minRadius_ - dist)) - { - continue; - } - - nodeDist.first->nearestK(*this, data, k, nbhQueue, nodeQueue, isPivot); - } - - return isPivot; - } - - /// \brief Return in nbhQueue the elements that are within distance radius of data. - void nearestRInternal(const _T &data, float radius, NearQueue &nbhQueue) const noexcept - { - const float dist = radius; // note the difference with nearestKInternal - NodeQueue nodeQueue; - NodeDist nodeDist; - - tree_->insertNeighborR(nbhQueue, radius, tree_->pivot_, _T::distance(data, tree_->pivot_)); - tree_->nearestR(*this, data, radius, nbhQueue, nodeQueue); - - while (not nodeQueue.empty()) - { - nodeDist = nodeQueue.top(); - nodeQueue.pop(); - if (nodeDist.second > nodeDist.first->maxRadius_ + dist or - nodeDist.second < nodeDist.first->minRadius_ - dist) - { - continue; - } - - nodeDist.first->nearestR(*this, data, radius, nbhQueue, nodeQueue); - } - } - - /// \brief Convert the internal data structure used for storing neighbors - /// to the vector that NearestNeighbor API requires. - void postprocessNearest(NearQueue &nbhQueue, std::vector<_T> &nbh) const noexcept - { - nbh.resize(nbhQueue.size()); - for (auto it = nbh.rbegin(); it != nbh.rend(); it++, nbhQueue.pop()) - { - *it = *nbhQueue.top().second; - } - } - - void kcenters( - const std::vector<_T> &data, - std::size_t k, - std::vector ¢ers, - Eigen::MatrixXf &dists) noexcept - { - // array containing the minimum distance between each data point - // and the centers computed so far - std::vector minDist(data.size(), std::numeric_limits::infinity()); - centers.clear(); - centers.reserve(k); - - if (static_cast(dists.rows()) < data.size() or - static_cast(dists.cols()) < k) - { - dists.resize(std::max(2U * (std::size_t)dists.rows() + 1U, data.size()), k); - } - // first center is picked randomly - - centers.emplace_back(rng_.uniform_integer(0, static_cast(data.size()) - 1)); - - for (auto i = 1U; i < k; ++i) - { - std::size_t ind = 0; - const _T ¢er = data[centers[i - 1]]; - float maxDist = -std::numeric_limits::infinity(); - - for (auto j = 0U; j < data.size(); ++j) - { - if ((dists(j, i - 1) = _T::distance(data[j], center)) < minDist[j]) - { - minDist[j] = dists(j, i - 1); - } - - // the j-th center is the one furthest away from center 0,..,j-1 - if (minDist[j] > maxDist) - { - ind = j; - maxDist = minDist[j]; - } - } - - // no more centers available - if (maxDist < std::numeric_limits::epsilon()) - { - break; - } - - centers.emplace_back(ind); - } - - const _T ¢er = data[centers.back()]; - const auto i = centers.size() - 1; - - for (auto j = 0U; j < data.size(); ++j) - { - dists(j, i) = _T::distance(data[j], center); - } - } - - /// The class used internally to define the GNAT. - class Node - { - public: - /// \brief Construct a node of given degree with at most - /// \e capacity data elements and with given pivot. - Node(std::size_t degree, std::size_t capacity, _T pivot) - : degree_(degree) - , pivot_(std::move(pivot)) - , minRadius_(std::numeric_limits::infinity()) - , maxRadius_(-minRadius_) - , minRange_(degree, minRadius_) - , maxRange_(degree, maxRadius_) - { - // The "+1" is needed because we add an element before we check whether to split - data_.reserve(capacity + 1); - } - - ~Node() - { - for (auto &child : children_) - { - delete child; - } - } - - /// \brief Update minRadius_ and maxRadius_, given that an element - /// was added with distance dist to the pivot. - void updateRadius(float dist) - { - if (minRadius_ > dist) - { - minRadius_ = dist; - } - - if (maxRadius_ < dist) - { - maxRadius_ = dist; - } - } - - /// \brief Update minRange_[i] and maxRange_[i], given that an - /// element was added to the i-th child of the parent that has - /// distance dist to this Node's pivot. - void updateRange(std::size_t i, float dist) - { - if (minRange_[i] > dist) - { - minRange_[i] = dist; - } - - if (maxRange_[i] < dist) - { - maxRange_[i] = dist; - } - } - - /// Add an element to the tree rooted at this node. - void add(GNAT &gnat, const _T &data) - { - if (children_.empty()) - { - data_.emplace_back(data); - gnat.size_++; - if (needToSplit(gnat)) - { - if (not gnat.removed_.empty()) - { - gnat.rebuildDataStructure(); - } - else if (gnat.size_ >= gnat.rebuildSize_) - { - gnat.rebuildSize_ <<= 1; - gnat.rebuildDataStructure(); - } - else - { - split(gnat); - } - } - } - else - { - std::vector dist(children_.size()); - float minDist = dist[0] = _T::distance(data, children_[0]->pivot_); - std::size_t minInd = 0; - - for (auto i = 1U; i < children_.size(); ++i) - { - if ((dist[i] = _T::distance(data, children_[i]->pivot_)) < minDist) - { - minDist = dist[i]; - minInd = i; - } - } - - for (auto i = 0U; i < children_.size(); ++i) - { - children_[i]->updateRange(minInd, dist[i]); - } - - children_[minInd]->updateRadius(minDist); - children_[minInd]->add(gnat, data); - } - } - - /// Return true iff the node needs to be split into child nodes. - auto needToSplit(const GNAT &gnat) const noexcept -> bool - { - const auto sz = data_.size(); - return sz > gnat.maxNumPtsPerLeaf_ and sz > degree_; - } - - /// \brief The split operation finds pivot elements for the child - /// nodes and moves each data element of this node to the appropriate - /// child node. - void split(GNAT &gnat) - { - Eigen::MatrixXf dists(data_.size(), degree_); - std::vector pivots; - - children_.reserve(degree_); - gnat.kcenters(data_, degree_, pivots, dists); - for (const auto &pivot : pivots) - { - children_.emplace_back(new Node(degree_, gnat.maxNumPtsPerLeaf_, data_[pivot])); - } - - degree_ = pivots.size(); // in case fewer than degree_ pivots were found - - for (auto j = 0U; j < data_.size(); ++j) - { - std::size_t k = 0; - for (auto i = 1U; i < degree_; ++i) - { - if (dists(j, i) < dists(j, k)) - { - k = i; - } - } - - auto *child = children_[k]; - if (j != pivots[k]) - { - child->data_.emplace_back(data_[j]); - child->updateRadius(dists(j, k)); - } - - for (auto i = 0U; i < degree_; ++i) - { - children_[i]->updateRange(k, dists(j, i)); - } - } - - for (auto &child : children_) - { - // make sure degree lies between minDegree_ and maxDegree_ - child->degree_ = std::min( - std::max( - static_cast((degree_ * child->data_.size()) / data_.size()), - gnat.minDegree_), - gnat.maxDegree_); - - // singleton - if (child->minRadius_ >= std::numeric_limits::infinity()) - { - child->minRadius_ = child->maxRadius_ = 0.; - } - } - - // this does more than clear(); it also sets capacity to 0 and frees the memory - std::vector<_T> tmp; - data_.swap(tmp); - - // check if new leaves need to be split - for (auto &child : children_) - { - if (child->needToSplit(gnat)) - { - child->split(gnat); - } - } - } - - /// Insert data in nbh if it is a near neighbor. Return true iff data was added to nbh. - auto insertNeighborK(NearQueue &nbh, std::size_t k, const _T &data, const _T &key, float dist) - const noexcept -> bool - { - if (nbh.size() < k) - { - nbh.emplace(dist, &data); - return true; - } - - if (dist < nbh.top().first or (dist < std::numeric_limits::epsilon() and data == key)) - { - nbh.pop(); - nbh.emplace(dist, &data); - return true; - } - - return false; - } - - /// \brief Compute the k nearest neighbors of data in the tree. - /// For k=1, isPivot is true if the nearest neighbor is a pivot - /// (which is important during removal; removing pivots is a - /// special case). The nodeQueue, which contains other Nodes - /// that need to be checked for nearest neighbors, is updated. - void nearestK( - const GNAT &gnat, - const _T &data, - std::size_t k, - NearQueue &nbh, - NodeQueue &nodeQueue, - bool &isPivot) const noexcept - { - for (const auto &d : data_) - { - if (not gnat.isRemoved(d)) - { - if (insertNeighborK(nbh, k, d, data, _T::distance(data, d))) - { - isPivot = false; - } - } - } - - if (!children_.empty()) - { - std::size_t sz = children_.size(); - std::size_t offset = gnat.offset_++; - std::vector distToPivot(sz); - std::vector permutation(sz); - - for (auto i = 0U; i < sz; ++i) - { - permutation[i] = (i + offset) % sz; - } - - for (auto i = 0U; i < sz; ++i) - { - if (permutation[i] >= 0) - { - const auto &child = children_[permutation[i]]; - distToPivot[permutation[i]] = _T::distance(data, child->pivot_); - if (insertNeighborK(nbh, k, child->pivot_, data, distToPivot[permutation[i]])) - { - isPivot = true; - } - - if (nbh.size() == k) - { - const auto dist = nbh.top().first; // note difference with nearestR - for (auto j = 0U; j < sz; ++j) - { - if (permutation[j] >= 0 and i != j and - (distToPivot[permutation[i]] - dist > - child->maxRange_[permutation[j]] or - distToPivot[permutation[i]] + dist < - child->minRange_[permutation[j]])) - { - permutation[j] = -1; - } - } - } - } - } - - const auto dist = nbh.top().first; - for (auto p : permutation) - { - if (p >= 0) - { - const auto &child = children_[p]; - if (nbh.size() < k or (distToPivot[p] - dist <= child->maxRadius_ and - distToPivot[p] + dist >= child->minRadius_)) - { - nodeQueue.emplace(child, distToPivot[p]); - } - } - } - } - } - - /// Insert data in nbh if it is a near neighbor. - void insertNeighborR(NearQueue &nbh, float r, const _T &data, float dist) const noexcept - { - if (dist <= r) - { - nbh.emplace(dist, &data); - } - } - - void nearestR(const GNAT &gnat, const _T &data, float r, NearQueue &nbh, NodeQueue &nodeQueue) - const noexcept - { - float dist = r; // note difference with nearestK - - for (const auto &d : data_) - { - if (not gnat.isRemoved(d)) - { - insertNeighborR(nbh, r, d, _T::distance(data, d)); - } - } - - if (not children_.empty()) - { - std::size_t sz = children_.size(); - std::size_t offset = gnat.offset_++; - std::vector distToPivot(sz); - std::vector permutation(sz); - - // Not a random permutation, but processing the children in slightly different order is - // "good enough" to get a performance boost. A call to std::shuffle takes too long. - for (auto i = 0U; i < sz; ++i) - { - permutation[i] = (i + offset) % sz; - } - - for (auto i = 0U; i < sz; ++i) - { - if (permutation[i] >= 0) - { - const auto &child = children_[permutation[i]]; - distToPivot[permutation[i]] = _T::distance(data, child->pivot_); - insertNeighborR(nbh, r, child->pivot_, distToPivot[permutation[i]]); - - for (auto j = 0U; j < sz; ++j) - { - if (permutation[j] >= 0 and i != j and - (distToPivot[permutation[i]] - dist > child->maxRange_[permutation[j]] or - distToPivot[permutation[i]] + dist < child->minRange_[permutation[j]])) - { - permutation[j] = -1; - } - } - } - } - - for (const auto &p : permutation) - { - if (p >= 0) - { - const auto &child = children_[p]; - - if (distToPivot[p] - dist <= child->maxRadius_ and - distToPivot[p] + dist >= child->minRadius_) - { - nodeQueue.emplace(child, distToPivot[p]); - } - } - } - } - } - - void list(const GNAT &gnat, std::vector<_T> &data) const noexcept - { - if (not gnat.isRemoved(pivot_)) - { - data.emplace_back(pivot_); - } - - for (const auto &d : data_) - { - if (not gnat.isRemoved(d)) - { - data.emplace_back(d); - } - } - - for (const auto &child : children_) - { - child->list(gnat, data); - } - } - - std::size_t degree_; - const _T pivot_; - float minRadius_; - float maxRadius_; - std::vector minRange_; - std::vector maxRange_; - std::vector<_T> data_; - std::vector children_; - }; - - Node *tree_{nullptr}; - std::size_t degree_; - std::size_t minDegree_; - std::size_t maxDegree_; - std::size_t maxNumPtsPerLeaf_; - std::size_t size_{0}; - std::size_t rebuildSize_; - std::size_t removedCacheSize_; - std::unordered_set removed_; - vamp::rng::Distribution rng_; - mutable std::size_t offset_{0}; - }; -} // namespace vamp::planning diff --git a/src/impl/vamp/planning/local_planner.hh b/src/impl/vamp/planning/local_planner.hh new file mode 100644 index 00000000..7770ae5d --- /dev/null +++ b/src/impl/vamp/planning/local_planner.hh @@ -0,0 +1,165 @@ +#pragma once + +#include +#include +#include +#include + +#include +#include +#include +#include + +namespace vamp::planning +{ + enum struct SteerStatus : std::uint8_t + { + Rejected, // the caller's cost bound pruned the candidate before validation + Trapped, // no progress: the first step of the local path was invalid + Advanced, // moved toward the target but did not reach it + Reached, // the target configuration was attained + }; + + // Result of a local-planner extension: a status plus the accepted waypoints of the local + // path, in execution order. The waypoints view a buffer owned by the local planner and + // are valid only until its next steer/connect_within call; they are empty on + // Rejected/Trapped, and empty on success when the local path has no interior waypoints + // (connect_within). + template + struct [[nodiscard]] Extension + { + using Configuration = typename Robot::Configuration; + + SteerStatus status; + const std::vector &waypoints; + + // The last accepted waypoint. Only meaningful on Advanced/Reached with a nonempty + // chain (always true for steer). + [[nodiscard]] inline auto endpoint() const noexcept -> const Configuration & + { + return waypoints.back(); + } + }; + + // Insert an extension's waypoints as a chain of tree nodes: add_node(configuration, + // parent_index) inserts one node and returns its index, or std::nullopt if the tree is + // full. Returns the index of the last inserted node (or `parent` if none were) and + // whether insertion was truncated by a full tree. + template + inline auto insert_chain(Iterator begin, Iterator end, std::size_t parent, AddNode &&add_node) + -> std::pair + { + for (; begin != end; ++begin) + { + const auto index = add_node(*begin, parent); + if (not index) + { + return {parent, true}; + } + + parent = *index; + } + + return {parent, false}; + } + + template + inline auto insert_chain( + const std::vector &waypoints, + std::size_t parent, + AddNode &&add_node) -> std::pair + { + return insert_chain(waypoints.begin(), waypoints.end(), parent, std::forward(add_node)); + } + + // Local planners generate and validate the local paths that connect configurations. All + // operations are directed: a local path from a to b is traversed in execution order + // (start to goal), which matters for planners whose goal-tree edges run child to parent. + // + // The default local planner steers by Robot::interpolate and validates with + // validate_motion; its local paths have no interior waypoints, so planners using it + // perform the same arithmetic as calling those primitives directly (bit-identical + // under -ffp-contract=off; under the release flags' -ffp-contract=fast, inlining + // context may contract FMAs differently, which can shift results by 1 ULP). + template + struct UnconstrainedLocalPlanner + { + using Configuration = typename Robot::Configuration; + using Environment = collision::Environment>; + + UnconstrainedLocalPlanner() = default; + + // Validity of the local path a -> b. `a` is the configuration already known to be valid and + // `b` the new one: validate_motion does not check its start, so the path is always checked + // in this order. The straight-line path is the same in either direction, so `forward` does + // not matter here (swapping the endpoints for goal trees would leave the new node, and so + // every goal-tree node, unchecked). + inline auto validate( + const Configuration &a, + const Configuration &b, + const Environment &e, + bool /* forward */ = true) const noexcept -> bool + { + return validate_motion(a, b, e); + } + + // Admit the local path a -> b only if it is valid, has fewer interior waypoints than + // `max_states`, and costs no more than `budget()`. The budget is lazy so that this + // planner, whose local paths have no interior waypoints and never re-cost, does not + // evaluate it at all. Reached on success (with the interior waypoints, here none), + // Trapped otherwise. + template + inline auto connect_within( + const Configuration &a, + const Configuration &b, + const Environment &e, + Budget &&, + std::size_t max_states) const noexcept -> Extension + { + chain_.clear(); + const bool valid = 0 < max_states and validate(a, b, e); + return {(valid) ? SteerStatus::Reached : SteerStatus::Trapped, chain_}; + } + + // Steer from `from` toward `target` by at most `range`. `forward` is true iff `from` + // precedes `target` in execution order. `distance` is robots::distance(from, target), + // precomputed by callers (usually from a nearest-neighbor query). `accept` is invoked + // on the candidate endpoint after interpolation but before + // validation; returning false aborts with Rejected, letting optimizing planners + // prune an extension on cost before paying for the validity check. + template + inline auto steer( + const Configuration &from, + const Configuration &target, + float distance, + float range, + bool forward, + const Environment &e, + Accept &&accept = Accept()) const noexcept -> Extension + { + chain_.clear(); + + const bool reach = distance < range; + const float step = range / distance; + const auto next = (reach) ? target : + (forward) ? robots::interpolate(from, target, step) : + robots::interpolate(target, from, 1.F - step); + + if (not accept(next)) + { + return {SteerStatus::Rejected, chain_}; + } + + if (not validate(from, next, e, forward)) + { + return {SteerStatus::Trapped, chain_}; + } + + chain_.emplace_back(next); + return {(reach) ? SteerStatus::Reached : SteerStatus::Advanced, chain_}; + } + + private: + mutable std::vector chain_; + }; +} // namespace vamp::planning diff --git a/src/impl/vamp/planning/nn.hh b/src/impl/vamp/planning/nn.hh deleted file mode 100644 index 8eb5a714..00000000 --- a/src/impl/vamp/planning/nn.hh +++ /dev/null @@ -1,96 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include - -namespace vamp::planning -{ - template - struct NNFloatArray - { - inline static constexpr auto dim = dim_; - float *v; - - // NOTE: This lint (google-explicit-constructor) is incorrect in this case; we want implicit - // conversion - inline operator Eigen::Matrix() const - { - return EigenFloatVectorMap(v); - } - }; -} // namespace vamp::planning - -namespace unc::robotics::nigh::metric -{ - template - struct Space, LP<2>> - { - using Type = vamp::planning::NNFloatArray; - using Metric = LP<2>; - using Distance = float; - static constexpr int kDimensions = dim; - - static auto isValid(const Type & /*v*/) -> bool - { - return true; - } - - static auto coeff(const Type &v, std::size_t i) -> float - { - return *(v.v + i); - } - - [[nodiscard]] static constexpr auto dimensions() -> unsigned - { - return kDimensions; - } - - static auto distance(const Type &a, const Type &b) -> float - { - const auto diff = vamp::FloatVector(a.v) - vamp::FloatVector(b.v); - return diff.l2_norm(); - } - }; -} // namespace unc::robotics::nigh::metric - -namespace vamp::planning -{ - namespace nigh = unc::robotics::nigh; - - template - using Space = nigh::metric::Space, nigh::metric::LP<2>>; - - template - struct NNNode - { - std::size_t index; - NNFloatArray array; - - [[nodiscard]] inline auto as_vector() const noexcept -> FloatVector - { - return FloatVector(array.v); - } - }; - - template - struct NNNodeKey - { - inline auto operator()(const NNNode &node) const noexcept - -> const NNFloatArray & - { - return node.array; - } - }; - - template - using NN = nigh::Nigh< - NNNode, // - Space, // - NNNodeKey, // - nigh::NoThreadSafety, // - nigh::KDTreeBatch>; -} // namespace vamp::planning diff --git a/src/impl/vamp/planning/nn/kdtree.hh b/src/impl/vamp/planning/nn/kdtree.hh new file mode 100644 index 00000000..b81f74d6 --- /dev/null +++ b/src/impl/vamp/planning/nn/kdtree.hh @@ -0,0 +1,634 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#ifdef __linux__ +#include +#include +#endif + +namespace vamp::planning +{ + // Incremental batched kd-tree over robot configurations. + // + // Leaves hold up to leaf_capacity configurations in SoA blocks (dimension-major, + // FloatVectorWidth lanes) scanned with SIMD row operations. Every node maintains an + // axis-aligned bounding box, grown along the insertion path and used for traversal + // pruning, so correctness never depends on the split heuristic. Splits happen when a + // leaf overflows: median of the widest box axis, ties broken by insertion index. + // + // Metric: L2 over the configuration, except quaternion blocks (Robot::so3_offsets) + // which use the sign-minimized chordal distance min(|a - b|, |a + b|). Because each + // block contributes an independent term to the squared sum, the minimum over sign + // choices factorizes per block: box lower bounds and leaf distances take the min of + // the +/- contributions per block, so one traversal computes the exact metric. + // Stored quaternions are canonicalized to a fixed hemisphere to keep boxes tight; + // queries are used as-is since both signs are always evaluated. + // + // Deterministic and single-threaded: no RNG, candidate ties broken by lowest index, + // and pruning is strict (bound > best) so the lowest-index minimum is always found. + template + struct KDTree + { + static constexpr std::size_t dim = Robot::dimension; + static constexpr std::size_t width = FloatVectorWidth; + static constexpr std::size_t n_blocks = (leaf_capacity + width - 1) / width; + static_assert(leaf_capacity % width == 0, "leaf_capacity must be a multiple of the SIMD width"); + + using Row = FloatVector; + + static constexpr std::uint32_t nil = std::numeric_limits::max(); + static constexpr float inf = std::numeric_limits::infinity(); + + static constexpr std::array is_quat = []() + { + std::array mask{}; + for (const auto offset : robots::so3_offsets_v) + { + for (auto j = 0U; j < 4U; ++j) + { + mask[offset + j] = true; + } + } + + return mask; + }(); + + static constexpr std::size_t n_base = dim - 4 * robots::so3_offsets_v.size(); + + static constexpr std::array base_dims = []() + { + std::array idx{}; + std::size_t n = 0; + for (std::size_t j = 0; j < dim; ++j) + { + if (not is_quat[j]) + { + idx[n++] = j; + } + } + + return idx; + }(); + + // Leaf-scan early exit: re-test the partial sums against the live bound every + // checkpoint base dimensions. No checkpoint fires unless n_base > checkpoint, + // so low-dim robots pay nothing; high-dim scans skip the bulk of far blocks. + static constexpr std::size_t checkpoint = 8; + + struct Leaf + { + // Zero-initialized so partially filled blocks never read uninitialized lanes. + alignas(FloatVectorAlignment) std::array data = {}; + std::array indices = {}; + std::uint32_t count = 0; + + [[nodiscard]] auto coord(std::size_t i, std::size_t j) const noexcept -> float + { + return data[((i / width) * dim + j) * width + (i % width)]; + } + + [[nodiscard]] auto row(std::size_t block, std::size_t j) const noexcept -> Row + { + return Row(data.data() + (block * dim + j) * width); + } + + void append(const std::array &q, std::uint32_t index) noexcept + { + for (auto j = 0U; j < dim; ++j) + { + data[((count / width) * dim + j) * width + (count % width)] = q[j]; + } + + indices[count] = index; + count++; + } + }; + + struct Node + { + std::array lo, hi; + float split = 0.F; + std::array children = {nil, nil}; + std::uint32_t leaf = nil; + std::uint32_t axis = 0; + }; + + KDTree() + { + init_root(); + } + + [[nodiscard]] auto size() const noexcept -> std::size_t + { + return size_; + } + + // (1 + epsilon)-approximate queries: prune subtrees and leaf blocks that cannot + // improve the current best by more than the epsilon factor, so any reported + // neighbor is within (1 + epsilon) of the true nearest distance. Also shrinks + // the effective radius of bounded queries by the same factor. epsilon = 0 is + // exact and bit-identical to a tree without this feature. + void set_epsilon(float epsilon) noexcept + { + const auto s = 1.F + std::max(epsilon, 0.F); + prune_scale_ = 1.F / (s * s); + } + + void reserve(std::size_t n) + { + leaves_.reserve(2 * n / leaf_capacity + 2); + nodes_.reserve(4 * n / leaf_capacity + 3); + advise_huge(leaves_.data(), leaves_.capacity() * sizeof(Leaf)); + advise_huge(nodes_.data(), nodes_.capacity() * sizeof(Node)); + } + + void clear() + { + nodes_.clear(); + leaves_.clear(); + size_ = 0; + init_root(); + } + + void insert(std::size_t index, const float *q) + { + std::array qa; + std::copy_n(q, dim, qa.begin()); + canonicalize(qa); + + auto ni = 0U; + while (true) + { + grow(nodes_[ni], qa); + + if (nodes_[ni].leaf == nil) + { + const auto &n = nodes_[ni]; + ni = n.children[qa[n.axis] < n.split ? 0 : 1]; + continue; + } + + if (leaves_[nodes_[ni].leaf].count == leaf_capacity) + { + split_leaf(ni); + const auto &n = nodes_[ni]; + ni = n.children[qa[n.axis] < n.split ? 0 : 1]; + continue; + } + + leaves_[nodes_[ni].leaf].append(qa, static_cast(index)); + size_++; + return; + } + } + + [[nodiscard]] auto nearest(const float *q) const noexcept + -> std::optional> + { + if (size_ == 0) + { + return std::nullopt; + } + + const auto qp = prepare(q); + auto best_d2 = inf; + auto best_index = std::numeric_limits::max(); + search_one(0, q, qp, best_d2, best_index); + return std::make_pair(best_index, std::sqrt(best_d2)); + } + + // K-nearest within an optional radius, sorted ascending by (distance, index). + void nearest( + std::vector> &out, + const float *q, + std::size_t k, + float radius = inf) const + { + out.clear(); + if (size_ == 0 or k == 0) + { + return; + } + + const auto qp = prepare(q); + const auto r2 = (radius == inf) ? inf : radius * radius; + scratch_.clear(); + search_k(0, q, qp, k, r2); + + std::sort(scratch_.begin(), scratch_.end()); + out.reserve(scratch_.size()); + for (const auto &[d2, index] : scratch_) + { + out.emplace_back(index, std::sqrt(d2)); + } + } + + private: + using Rows = std::array; + + void init_root() + { + Node root; + root.lo.fill(inf); + root.hi.fill(-inf); + root.leaf = 0; + nodes_.push_back(root); + leaves_.emplace_back(); + } + + static void canonicalize(std::array &q) noexcept + { + for (const auto offset : robots::so3_offsets_v) + { + auto sign = 0.F; + for (auto j = 0U; j < 4U; ++j) + { + const auto v = q[offset + 3 - j]; + if (v != 0.F) + { + sign = v; + break; + } + } + + if (sign < 0.F) + { + for (auto j = 0U; j < 4U; ++j) + { + q[offset + j] = -q[offset + j]; + } + } + } + } + + static void grow(Node &n, const std::array &q) noexcept + { + for (auto j = 0U; j < dim; ++j) + { + n.lo[j] = std::min(n.lo[j], q[j]); + n.hi[j] = std::max(n.hi[j], q[j]); + } + } + + static auto prepare(const float *q) noexcept -> Rows + { + Rows qp; + for (auto j = 0U; j < dim; ++j) + { + qp[j] = Row::fill(q[j]); + } + + return qp; + } + + // Next representable float above x (x is a nonnegative squared distance or +inf). + // Converts the strict skip test "partial > bound" into "partial >= next_up(bound)", + // which vectorizes with only min/max/hsum. + static auto next_up(float x) noexcept -> float + { + if (not std::isfinite(x)) + { + return x; + } + + std::uint32_t u; + std::memcpy(&u, &x, sizeof(u)); + ++u; + std::memcpy(&x, &u, sizeof(u)); + return x; + } + + // Cover the hardware prefetcher's ramp-up at the start of a leaf scan. The near + // child's lines arrive under the bound computations; the far child's under the + // whole near-subtree scan. Pruned-leaf prefetches waste a little bandwidth, but + // the traversal is latency-bound, not bandwidth-bound. + void prefetch_leaf(const Node &child) const noexcept + { +#if defined(__GNUC__) or defined(__clang__) + if (child.leaf != nil) + { + const auto *p = reinterpret_cast(leaves_[child.leaf].data.data()); + for (auto i = 0UL; i < 8UL; ++i) + { + __builtin_prefetch(p + 64UL * i, 0, 3); + } + } +#endif + } + + // Queries stream most of the tree per call, so back the storage with huge pages + // where the kernel supports it (no-op unless THP is in madvise/always mode). + static void advise_huge([[maybe_unused]] void *p, [[maybe_unused]] std::size_t bytes) noexcept + { +#ifdef __linux__ + static const auto page = static_cast(sysconf(_SC_PAGESIZE)); + auto lo = reinterpret_cast(p); + auto hi = lo + bytes; + lo = (lo + page - 1) & ~(page - 1); + hi &= ~(page - 1); + if (hi > lo) + { + madvise(reinterpret_cast(lo), hi - lo, MADV_HUGEPAGE); + } +#endif + } + + // Squared lower bound from the query to the node's box under the chordal metric. + static auto bound2(const Node &n, const float *q) noexcept -> float + { + auto b = 0.F; + constexpr auto vec_end = (dim / width) * width; + if constexpr (vec_end > 0) + { + auto acc = Row::fill(0.F); + for (auto j = 0U; j < vec_end; j += width) + { + const Row lo(n.lo.data() + j, false); + const Row hi(n.hi.data() + j, false); + const Row qv(q + j, false); + const auto d = (lo - qv).max(qv - hi).max(0.F); + acc = acc + d * d; + } + + b = acc.hsum(); + } + + for (auto j = vec_end; j < dim; ++j) + { + const auto d = std::max(std::max(n.lo[j] - q[j], q[j] - n.hi[j]), 0.F); + b += d * d; + } + + // The passes above charged quaternion lanes at +q; swap each block's + // contribution for the sign-minimized one. May round slightly negative, + // which only over-visits, never over-prunes. + for (const auto offset : robots::so3_offsets_v) + { + auto bp = 0.F, bm = 0.F; + for (auto j = offset; j < offset + 4; ++j) + { + const auto dp = std::max(std::max(n.lo[j] - q[j], q[j] - n.hi[j]), 0.F); + bp += dp * dp; + const auto dm = std::max(std::max(n.lo[j] + q[j], -q[j] - n.hi[j]), 0.F); + bm += dm * dm; + } + + b += std::min(bp, bm) - bp; + } + + return b; + } + + template + void scan_leaf(const Leaf &leaf, const Rows &qp, Bound &&bound, Visit &&visit) const noexcept + { + const auto active = (leaf.count + width - 1) / width; + for (auto block = 0U; block < active; ++block) + { + // Skip the block once every lane's partial sum strictly exceeds the live + // bound: contributions only grow, so no candidate (including index + // tie-breaks at equal distance) can be lost. A lane is still viable iff + // partial <= bound, i.e. cutoff - partial > 0 with cutoff = next_up(bound). + const auto cutoff = Row::fill(next_up(bound())); + + auto base = Row::fill(0.F); + bool viable = true; + for (auto i = 0U; i < n_base; ++i) + { + if (i != 0 and (i % checkpoint) == 0 and (cutoff - base).max(0.F).hsum() == 0.F) + { + viable = false; + break; + } + + const auto j = base_dims[i]; + const auto diff = leaf.row(block, j) - qp[j]; + base = base + diff * diff; + } + + if (not viable) + { + continue; + } + + for (const auto offset : robots::so3_offsets_v) + { + auto dp = Row::fill(0.F), dm = Row::fill(0.F); + for (auto j = offset; j < offset + 4; ++j) + { + const auto r = leaf.row(block, j); + const auto p = r - qp[j]; + dp = dp + p * p; + const auto m = r + qp[j]; + dm = dm + m * m; + } + + base = base + dp.min(dm); + } + + alignas(FloatVectorAlignment) std::array acc; + base.to_array(acc); + + const auto lanes = std::min(width, leaf.count - block * width); + for (auto lane = 0U; lane < lanes; ++lane) + { + visit(acc[lane], leaf.indices[block * width + lane]); + } + } + } + + void + search_one(std::uint32_t ni, const float *q, const Rows &qp, float &best_d2, std::size_t &best_index) + const noexcept + { + const auto &n = nodes_[ni]; + if (n.leaf != nil) + { + scan_leaf( + leaves_[n.leaf], + qp, + [&best_d2, this] { return best_d2 * prune_scale_; }, + [&best_d2, &best_index](float d2, std::uint32_t index) + { + if (d2 < best_d2 or (d2 == best_d2 and index < best_index)) + { + best_d2 = d2; + best_index = index; + } + }); + return; + } + + const auto &c0 = nodes_[n.children[0]]; + const auto &c1 = nodes_[n.children[1]]; + prefetch_leaf(c0); + prefetch_leaf(c1); + + const std::array bounds = {bound2(c0, q), bound2(c1, q)}; + const auto near = (bounds[0] <= bounds[1]) ? 0U : 1U; + + if (bounds[near] <= best_d2 * prune_scale_) + { + search_one(n.children[near], q, qp, best_d2, best_index); + } + + if (bounds[1 - near] <= best_d2 * prune_scale_) + { + search_one(n.children[1 - near], q, qp, best_d2, best_index); + } + } + + void + search_k(std::uint32_t ni, const float *q, const Rows &qp, std::size_t k, float r2) const noexcept + { + const auto &n = nodes_[ni]; + if (n.leaf != nil) + { + scan_leaf( + leaves_[n.leaf], + qp, + [this, k, r2] + { return ((scratch_.size() < k) ? r2 : scratch_.front().first) * prune_scale_; }, + [this, k, r2](float d2, std::uint32_t index) + { + if (d2 > r2) + { + return; + } + + const auto candidate = std::make_pair(d2, index); + if (scratch_.size() < k) + { + scratch_.push_back(candidate); + std::push_heap(scratch_.begin(), scratch_.end()); + } + else if (candidate < scratch_.front()) + { + std::pop_heap(scratch_.begin(), scratch_.end()); + scratch_.back() = candidate; + std::push_heap(scratch_.begin(), scratch_.end()); + } + }); + return; + } + + const auto &c0 = nodes_[n.children[0]]; + const auto &c1 = nodes_[n.children[1]]; + prefetch_leaf(c0); + prefetch_leaf(c1); + + const std::array bounds = {bound2(c0, q), bound2(c1, q)}; + const auto near = (bounds[0] <= bounds[1]) ? 0U : 1U; + + const auto limit = [&]() + { return ((scratch_.size() < k) ? r2 : scratch_.front().first) * prune_scale_; }; + if (bounds[near] <= limit()) + { + search_k(n.children[near], q, qp, k, r2); + } + + if (bounds[1 - near] <= limit()) + { + search_k(n.children[1 - near], q, qp, k, r2); + } + } + + void split_leaf(std::uint32_t ni) + { + const auto li = nodes_[ni].leaf; + + auto axis = 0U; + auto best_extent = -inf; + for (auto j = 0U; j < dim; ++j) + { + const auto extent = nodes_[ni].hi[j] - nodes_[ni].lo[j]; + if (extent > best_extent) + { + best_extent = extent; + axis = j; + } + } + + const Leaf snapshot = leaves_[li]; + + std::array order; + std::iota(order.begin(), order.end(), 0U); + constexpr auto half = leaf_capacity / 2; + std::nth_element( + order.begin(), + order.begin() + half, + order.end(), + [&snapshot, axis](std::uint32_t a, std::uint32_t b) + { + const auto ca = snapshot.coord(a, axis); + const auto cb = snapshot.coord(b, axis); + if (ca != cb) + { + return ca < cb; + } + + return snapshot.indices[a] < snapshot.indices[b]; + }); + const auto split = snapshot.coord(order[half], axis); + + // Preserve insertion order within each side for determinism. + std::sort(order.begin(), order.begin() + half); + std::sort(order.begin() + half, order.end()); + + const auto ri = static_cast(leaves_.size()); + leaves_.emplace_back(); + leaves_[li] = Leaf{}; + + Node left, right; + left.lo.fill(inf); + left.hi.fill(-inf); + left.leaf = li; + right.lo.fill(inf); + right.hi.fill(-inf); + right.leaf = ri; + + std::array tmp; + for (auto i = 0U; i < leaf_capacity; ++i) + { + const auto pos = order[i]; + for (auto j = 0U; j < dim; ++j) + { + tmp[j] = snapshot.coord(pos, j); + } + + auto &child = (i < half) ? left : right; + grow(child, tmp); + leaves_[child.leaf].append(tmp, snapshot.indices[pos]); + } + + const auto ci = static_cast(nodes_.size()); + nodes_.push_back(left); + nodes_.push_back(right); + + auto &parent = nodes_[ni]; + parent.leaf = nil; + parent.axis = axis; + parent.split = split; + parent.children = {ci, ci + 1}; + } + + float prune_scale_ = 1.F; + std::vector nodes_; + std::vector leaves_; + std::size_t size_ = 0; + mutable std::vector> scratch_; + }; +} // namespace vamp::planning diff --git a/src/impl/vamp/planning/nn/nn.hh b/src/impl/vamp/planning/nn/nn.hh new file mode 100644 index 00000000..da9e7e0a --- /dev/null +++ b/src/impl/vamp/planning/nn/nn.hh @@ -0,0 +1,9 @@ +#pragma once + +#include + +namespace vamp::planning +{ + template + using NN = KDTree; +} // namespace vamp::planning diff --git a/src/impl/vamp/planning/phs.hh b/src/impl/vamp/planning/phs.hh index e6665627..61a45ba3 100644 --- a/src/impl/vamp/planning/phs.hh +++ b/src/impl/vamp/planning/phs.hh @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include #include @@ -73,12 +73,12 @@ namespace vamp::planning inline auto measure() const noexcept -> float { - return phs_measure; + return measure_; } inline auto measure(float transverse_diameter_in) const noexcept -> float { - return phs_measure(min_transverse_diameter, transverse_diameter_in); + return utils::phs_measure(min_transverse_diameter, transverse_diameter_in); } inline auto get_min_transverse_diameter() const noexcept -> float @@ -98,7 +98,7 @@ namespace vamp::planning float transverse_diameter{0.}; float min_transverse_diameter; - float phs_measure; + float measure_; using EigenVector = Eigen::Vector; using EigenMatrix = Eigen::Matrix; @@ -141,7 +141,7 @@ namespace vamp::planning diag(0) = 0.5 * transverse_diameter; tf_world_from_ellipse = rot_world_from_ellipse * diag.asDiagonal(); - phs_measure = utils::phs_measure(min_transverse_diameter, transverse_diameter); + measure_ = utils::phs_measure(min_transverse_diameter, transverse_diameter); } }; diff --git a/src/impl/vamp/planning/plan.hh b/src/impl/vamp/planning/plan.hh index 07e8a7e7..4c277ef2 100644 --- a/src/impl/vamp/planning/plan.hh +++ b/src/impl/vamp/planning/plan.hh @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include namespace vamp::planning @@ -178,6 +178,7 @@ namespace vamp::planning struct PlanningResult { Path path; + bool solved{false}; float cost{0.}; std::size_t nanoseconds{0}; std::size_t iterations{0}; diff --git a/src/impl/vamp/planning/planner.hh b/src/impl/vamp/planning/planner.hh new file mode 100644 index 00000000..bf7dda50 --- /dev/null +++ b/src/impl/vamp/planning/planner.hh @@ -0,0 +1,109 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace vamp::planning +{ + enum class Planner + { + RRTC, + PRM, + FCIT, + AORRTC, + GRRTSTAR, + }; + + struct PlannerDescriptor + { + std::string_view name; + std::string_view class_name; + std::string_view settings_class; + std::string_view header; + std::string_view settings_header; + bool local_planner; + }; + + inline constexpr std::array PLANNERS = {{ + {"rrtc", "RRTC", "RRTCSettings", "rrtc.hh", "rrtc_settings.hh", true}, + {"prm", + "PRM", + "RoadmapSettings", + "prm.hh", + "roadmap.hh", + false}, + {"fcit", + "FCIT", + "RoadmapSettings", + "fcit.hh", + "roadmap.hh", + false}, + {"aorrtc", "AORRTC", "AORRTCSettings", "aorrtc.hh", "aorrtc_settings.hh", true}, + {"grrtstar", "GRRTStar", "GRRTStarSettings", "grrtstar.hh", "grrtstar_settings.hh", true}, + }}; + + inline constexpr std::size_t N_PLANNERS = PLANNERS.size(); + + constexpr auto planner_descriptor(Planner p) -> const PlannerDescriptor & + { + return PLANNERS[static_cast(p)]; + } + + constexpr auto planner_name(Planner p) -> std::string_view + { + return planner_descriptor(p).name; + } + + inline auto planner_from_name(std::string_view name) -> Planner + { + for (std::size_t i = 0; i < PLANNERS.size(); ++i) + { + if (PLANNERS[i].name == name) + { + return static_cast(i); + } + } + throw std::runtime_error("vamp::planning: unknown planner '" + std::string(name) + "'"); + } + + namespace detail + { + template + constexpr auto pick_planner() + { + if constexpr (P == Planner::RRTC) + { + return static_cast *>(nullptr); + } + else if constexpr (P == Planner::PRM) + { + return static_cast *>(nullptr); + } + else if constexpr (P == Planner::FCIT) + { + return static_cast *>(nullptr); + } + else if constexpr (P == Planner::AORRTC) + { + return static_cast *>(nullptr); + } + else if constexpr (P == Planner::GRRTSTAR) + { + return static_cast *>(nullptr); + } + } + } // namespace detail + + template + using PlannerClass = std::remove_pointer_t())>; +} // namespace vamp::planning diff --git a/src/impl/vamp/planning/aorrtc.hh b/src/impl/vamp/planning/planners/aorrtc.hh similarity index 50% rename from src/impl/vamp/planning/aorrtc.hh rename to src/impl/vamp/planning/planners/aorrtc.hh index 692ac40c..7ca738f6 100644 --- a/src/impl/vamp/planning/aorrtc.hh +++ b/src/impl/vamp/planning/planners/aorrtc.hh @@ -1,18 +1,25 @@ #pragma once +#include +#include +#include #include #include +#include #include -#include +#include +#include +#include #include #include #include #include -#include -#include +#include +#include #include #include +#include #include namespace vamp::planning @@ -24,22 +31,48 @@ namespace vamp::planning static constexpr auto dimension = Robot::dimension; using RNG = typename vamp::rng::RNG; - using NNNode = GNATNode; - using NN = NearestNeighborsGNAT; + // Cost-augmented NN: nodes are keyed by the configuration lifted with the node's + // cost-to-come as one extra L2 coordinate, so the tree metric is + // sqrt(dist(a, b)^2 + (cost_a - cost_b)^2). + struct LiftedRobot + { + static constexpr std::size_t dimension = Robot::dimension + 1; + static constexpr auto so3_offsets = robots::so3_offsets_v; + }; - std::unique_ptr buffer; - std::vector parents; - std::vector radii; - std::vector costs; + using NN = KDTree; + + struct alignas(FloatVectorAlignment) Key : std::array + { + }; + + struct Vertex + { + std::size_t index; + float cost; + Configuration array; + }; + + vamp::utils::buffer_ptr buffer; + vamp::utils::buffer_ptr parents; + vamp::utils::buffer_ptr radii; + vamp::utils::buffer_ptr costs; + std::vector> near_list_; inline auto buffer_index(std::size_t index) -> float * { return buffer.get() + index * Configuration::num_scalars_rounded; }; + inline static void make_key(const Configuration &c, float cost, Key &key) + { + c.to_array(key.data()); + key[dimension] = cost; + } + inline auto add_to_tree(NN *nn, const Configuration &c, std::size_t index, std::size_t parent_index, float cost) - -> NNNode + -> Vertex { c.to_array(buffer_index(index)); @@ -47,10 +80,18 @@ namespace vamp::planning parents[index] = parent_index; costs[index] = cost; - auto node = NNNode{index, cost, c}; - nn->add(node); + Key key; + make_key(c, cost, key); + nn->insert(index, key.data()); - return node; + return Vertex{index, cost, c}; + }; + + struct NearestResult + { + Vertex node; + float distance; // configuration-space distance (steering / dynamic domain / extension) + float edge_cost; // directed edge cost between the tree node and c (execution order) }; // Get r-disc neighbours, then iterate through list until a valid connection is found @@ -58,57 +99,70 @@ namespace vamp::planning //* ------------------ ------ ------------------- // Only need to check nodes that are closer than the root of the tree, since connecting to the // root will always be valid - inline auto find_nearest(NN *nn, const NNNode &root, const Configuration &c, float cost) - -> std::pair + inline auto + find_nearest(NN *nn, const Vertex &root, const Configuration &c, float cost_bound, bool tree_is_start) + -> NearestResult { - std::vector near_list; + Key key; + make_key(c, cost_bound, key); + + // Only need to consider nodes closer (in the lifted metric) than the root of + // the tree, since connecting to the root is always valid. + const float radius = std::sqrt( + std::pow(robots::distance(c, root.array), 2) + std::pow(cost_bound - root.cost, 2)); // Almost always just pulls in the entire graph, but good to be principled. - near_list.reserve(nn->size()); + nn->nearest(near_list_, key.data(), nn->size(), radius); - auto temp_node = NNNode{0, cost, c}; - nn->nearestR(temp_node, NNNode::distance(temp_node, root), near_list); + // Start-tree edges execute node -> c; goal-tree edges execute c -> node + const auto edge_cost = [&c, tree_is_start](const Configuration &node) -> float + { return (tree_is_start) ? planning::cost(node, c) : planning::cost(c, node); }; // Explicitly handle case where no neighbors are within r distance. - if (near_list.empty()) + if (near_list_.empty()) { - return {root, c.distance(root.array)}; + return {root, robots::distance(c, root.array), edge_cost(root.array)}; } - const auto *new_nearest_node = &near_list[0]; - float new_nearest_distance = c.distance(new_nearest_node->array); + auto pick = near_list_[0].first; + auto pick_array = Configuration(buffer_index(pick)); + float pick_edge_cost = edge_cost(pick_array); - for (auto idx = 1U; new_nearest_node->cost > 0 // - and cost < new_nearest_node->cost + new_nearest_distance // - and idx < near_list.size(); + for (auto idx = 1U; costs[pick] > 0 // + and cost_bound < costs[pick] + pick_edge_cost // + and idx < near_list_.size(); ++idx) { - new_nearest_node = &near_list[idx]; - new_nearest_distance = c.distance(new_nearest_node->array); + pick = near_list_[idx].first; + pick_array = Configuration(buffer_index(pick)); + pick_edge_cost = edge_cost(pick_array); } - return {*new_nearest_node, new_nearest_distance}; + return { + Vertex{pick, costs[pick], pick_array}, + robots::distance(c, pick_array), + pick_edge_cost}; } AOX_RRTC(std::size_t max_samples) : buffer( - std::unique_ptr( - vamp::utils::vector_alloc( - max_samples * Configuration::num_scalars_rounded), - &free)) + vamp::utils::buffer_alloc( + max_samples * Configuration::num_scalars_rounded)) + , parents(vamp::utils::buffer_alloc(max_samples)) + , radii(vamp::utils::buffer_alloc(max_samples)) + , costs(vamp::utils::buffer_alloc(max_samples)) { - parents.resize(max_samples); - radii.resize(max_samples); - costs.resize(max_samples); } + template > inline auto solve( const Configuration &start, const std::vector &goals, const collision::Environment> &environment, const AORRTCSettings &settings, const float max_cost, - typename RNG::Ptr rng) noexcept -> PlanningResult + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult { static constexpr std::size_t start_index = 0; const RRTCSettings &rrtc_settings = settings.rrtc; @@ -116,6 +170,10 @@ namespace vamp::planning NN start_tree; NN goal_tree; + start_tree.reserve(rrtc_settings.max_samples); + goal_tree.reserve(rrtc_settings.max_samples); + start_tree.set_epsilon(rrtc_settings.nn_epsilon); + goal_tree.set_epsilon(rrtc_settings.nn_epsilon); std::size_t iter = 0; std::size_t free_index = start_index + 1; @@ -123,7 +181,7 @@ namespace vamp::planning auto start_vert = add_to_tree(&start_tree, start, start_index, start_index, 0); // Add goals to tree - std::vector goal_verts; + std::vector goal_verts; goal_verts.reserve(goals.size()); for (const auto &goal : goals) @@ -137,6 +195,30 @@ namespace vamp::planning auto *tree_a = (rrtc_settings.start_tree_first) ? &goal_tree : &start_tree; auto *tree_b = (rrtc_settings.start_tree_first) ? &start_tree : &goal_tree; + // Directed cost of a tree edge from parent to child: start-tree edges execute + // parent -> child, goal-tree edges child -> parent. + const auto chain_edge_cost = + [&tree_a_is_start](const Configuration &parent, const Configuration &child) -> float + { + return (tree_a_is_start) ? planning::cost(parent, child) : + planning::cost(child, parent); + }; + + // Insert one waypoint into tree_a with its accumulated directed cost; nullopt + // when the sample limit is hit. + const auto add_node = [&](const Configuration &c, + std::size_t parent) -> std::optional + { + if (free_index >= rrtc_settings.max_samples) + { + return std::nullopt; + } + + const float c_cost = costs[parent] + chain_edge_cost(Configuration(buffer_index(parent)), c); + add_to_tree(tree_a, c, free_index, parent, c_cost); + return free_index++; + }; + // Search loop while (iter++ < rrtc_settings.max_iterations and free_index < rrtc_settings.max_samples) { @@ -153,17 +235,21 @@ namespace vamp::planning const auto temp = rng->next(); - NNNode goal_vert = *std::min_element( + Vertex goal_vert = *std::min_element( goal_verts.begin(), goal_verts.end(), [&temp](const auto &a, const auto &b) - { return temp.distance(a.array) < temp.distance(b.array); }); + { return planning::cost(temp, a.array) < planning::cost(temp, b.array); }); const auto &root_vert = tree_a_is_start ? start_vert : goal_vert; const auto &target_vert = tree_a_is_start ? goal_vert : start_vert; - const float g_hat = temp.distance(root_vert.array); - const float h_hat = temp.distance(target_vert.array); + // Admissible cost-to-come/cost-to-go through temp, in execution direction: the + // start-tree root precedes temp, the goal-tree root follows it + const float g_hat = (tree_a_is_start) ? planning::cost(root_vert.array, temp) : + planning::cost(temp, root_vert.array); + const float h_hat = (tree_a_is_start) ? planning::cost(temp, target_vert.array) : + planning::cost(target_vert.array, temp); const float f_hat = g_hat + h_hat; // The range between the minimum possible cost and maximum allowable cost @@ -176,33 +262,43 @@ namespace vamp::planning const float c_rand = (rng->dist.uniform_01() * c_range) + g_hat; // Find nearest with asymmetric cost function - auto [nearest_node, nearest_distance] = find_nearest(tree_a, root_vert, temp, c_rand); + auto [nearest_node, nearest_distance, nearest_edge_cost] = + find_nearest(tree_a, root_vert, temp, c_rand, tree_a_is_start); if (rrtc_settings.dynamic_domain and radii[nearest_node.index] < nearest_distance) { continue; } - const auto nearest_vector = temp - nearest_node.array; - bool reach = nearest_distance < rrtc_settings.range; - const auto extension_vector = - (reach) ? nearest_vector : nearest_vector * (rrtc_settings.range / nearest_distance); + // Edges are executed from start to goal: goal-tree edges run child -> parent, so + // steer and validate along the local path in that direction (identical for + // symmetric interpolation). + const auto extension = lp.steer( + nearest_node.array, + temp, + nearest_distance, + rrtc_settings.range, + tree_a_is_start, + environment); // Evaluate edge reaching towards sample - if (validate_vector( - nearest_node.array, - extension_vector, - (reach) ? nearest_distance : rrtc_settings.range, - environment)) + if (extension.status != SteerStatus::Trapped) { - const auto new_configuration = nearest_node.array + extension_vector; + const bool reach = (extension.status == SteerStatus::Reached); + const auto &waypoints = extension.waypoints; - // Calculate and store actual node cost - auto new_cost = nearest_node.cost + new_configuration.distance(nearest_node.array); + // Calculate and store actual node cost (directed, mirroring the steer); + // reuse the precomputed edge cost when the sample itself was reached + auto new_cost = + nearest_node.cost + ((reach and waypoints.size() == 1) ? + nearest_edge_cost : + chain_edge_cost(nearest_node.array, waypoints.front())); // If resampling costs to try and find a better parent... if (settings.cost_bound_resample) { - const float g_hat = new_configuration.distance(root_vert.array); + const float g_hat = (tree_a_is_start) ? + planning::cost(root_vert.array, waypoints.front()) : + planning::cost(waypoints.front(), root_vert.array); // Continuously resample cost until an invalid connection is found for (auto i = 0U; i < settings.max_cost_bound_resamples; ++i) @@ -210,29 +306,30 @@ namespace vamp::planning const float c_range = std::max(new_cost - g_hat, 0.0F); const float c_rand = (rng->dist.uniform_01() * c_range) + g_hat; - auto [new_nearest_node, new_nearest_distance] = - find_nearest(tree_a, root_vert, new_configuration, c_rand); + auto [new_nearest_node, new_nearest_distance, new_nearest_edge_cost] = + find_nearest(tree_a, root_vert, waypoints.front(), c_rand, tree_a_is_start); // If we have connected: // to the same parent // with a worse cost - // to the best possible parent before this (crange == 0 \equiv cost == g^) + // to the best possible parent before this + // (crange == 0 \equiv cost == g^) // ...then stop spending effort resampling costs if (new_nearest_node.index == nearest_node.index or - new_nearest_node.cost + new_nearest_distance >= new_cost or c_range == 0) + new_nearest_node.cost + new_nearest_edge_cost >= new_cost or c_range == 0) { break; } // Validate edge to newly found parent - else if (validate_vector( + else if (lp.validate( new_nearest_node.array, - new_configuration - new_nearest_node.array, - new_nearest_distance, - environment)) + waypoints.front(), + environment, + tree_a_is_start)) { // Congratulations to the new parent nearest_node = new_nearest_node; - new_cost = new_nearest_node.cost + new_nearest_distance; + new_cost = new_nearest_node.cost + new_nearest_edge_cost; } // The edge is invalid, we have failed a connection. Stop resampling! else @@ -242,7 +339,9 @@ namespace vamp::planning } } - add_to_tree(tree_a, new_configuration, free_index, nearest_node.index, new_cost); + // The first waypoint's edge cost is precomputed above (and possibly + // re-parented); the remainder of the chain accumulates through add_node. + add_to_tree(tree_a, waypoints.front(), free_index, nearest_node.index, new_cost); free_index++; if (rrtc_settings.dynamic_domain and @@ -251,6 +350,16 @@ namespace vamp::planning radii[nearest_node.index] *= (1 + rrtc_settings.alpha); } + const auto [new_index, extend_truncated] = + insert_chain(waypoints.begin() + 1, waypoints.end(), free_index - 1, add_node); + + if (extend_truncated) + { + continue; + } + + new_cost = costs[new_index]; + // Extend to goal tree // Because we are extending to the other tree, we need to change our upper cost bound @@ -259,42 +368,61 @@ namespace vamp::planning // through the current tree, must be lesser than our maximum path cost // Therefore, our maximum allowable cost for a connection through the other tree is // max_cost - vertex_cost - const auto [other_nearest_node, other_nearest_distance] = - find_nearest(tree_b, target_vert, new_configuration, max_cost - new_cost); - const auto other_nearest_vector = other_nearest_node.array - new_configuration; + const auto [other_nearest_node, other_nearest_distance, other_nearest_edge_cost] = + find_nearest( + tree_b, + target_vert, + extension.endpoint(), + max_cost - new_cost, + not tree_a_is_start); // Just to be safe, make sure we've improved upon our best solution - if (new_cost + other_nearest_distance + other_nearest_node.cost >= max_cost) + if (new_cost + other_nearest_edge_cost + other_nearest_node.cost >= max_cost) { continue; } // Extend incrementally towards other tree const std::size_t n_extensions = std::ceil(other_nearest_distance / rrtc_settings.range); - const float increment_length = other_nearest_distance / static_cast(n_extensions); - const auto increment = other_nearest_vector * (1.0F / static_cast(n_extensions)); std::size_t i_extension = 0; - auto prior = new_configuration; - for (; i_extension < n_extensions and - validate_vector( - prior, increment, increment_length, environment) and - free_index < rrtc_settings.max_samples; - ++i_extension) + bool connected = false; + Configuration prior = extension.endpoint(); + std::size_t prior_index = free_index - 1; + while (not connected and i_extension < n_extensions and + free_index < rrtc_settings.max_samples) { - const auto next = prior + increment; - add_to_tree( - tree_a, - next, - free_index, - free_index - 1, - increment_length + costs[free_index - 1]); - - free_index++; - prior = next; + const float remaining = robots::distance(prior, other_nearest_node.array); + const bool final_step = + (i_extension == n_extensions - 1) or (remaining <= rrtc_settings.range); + + const auto step = lp.steer( + prior, + other_nearest_node.array, + remaining, + (final_step) ? std::numeric_limits::max() : rrtc_settings.range, + tree_a_is_start, + environment); + + if (step.status == SteerStatus::Trapped) + { + break; + } + + const auto [step_index, step_truncated] = + insert_chain(step.waypoints, prior_index, add_node); + if (step_truncated) + { + break; + } + + connected = (step.status == SteerStatus::Reached); + i_extension++; + prior = step.endpoint(); + prior_index = step_index; } - if (i_extension == n_extensions) // connected + if (connected) { auto current = free_index - 1; result.path.emplace_back(buffer_index(current)); @@ -302,8 +430,6 @@ namespace vamp::planning { auto parent = parents[current]; result.path.emplace_back(buffer_index(parent)); - result.cost += result.path[result.path.size() - 1].distance( - result.path[result.path.size() - 2]); current = parent; } @@ -314,8 +440,6 @@ namespace vamp::planning { auto parent = parents[current]; result.path.emplace_back(buffer_index(parent)); - result.cost += result.path[result.path.size() - 1].distance( - result.path[result.path.size() - 2]); current = parent; } @@ -324,6 +448,9 @@ namespace vamp::planning std::reverse(result.path.begin(), result.path.end()); } + // Path is now in execution order; cost is directed-edge sum + result.cost = result.path.cost(); + result.solved = true; break; } } @@ -362,34 +489,38 @@ namespace vamp::planning using AOX_RRTC = typename vamp::planning::AOX_RRTC; using RRTC = typename vamp::planning::RRTC; + template > inline static auto solve( const Configuration &start, const Configuration &goal, const collision::Environment> &environment, const AORRTCSettings &settings, - typename RNG::Ptr rng) noexcept -> PlanningResult + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult { - return solve(start, std::vector{goal}, environment, settings, rng); + return solve(start, std::vector{goal}, environment, settings, rng, lp); } + template > inline static auto solve( const Configuration &start, const std::vector &goals, const collision::Environment> &environment, const AORRTCSettings &settings_in, - typename RNG::Ptr rng) noexcept -> PlanningResult + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult { auto start_time = std::chrono::steady_clock::now(); // Update the settings for internal searches AORRTCSettings settings = settings_in; // make a mutable copy - const std::size_t &max_samples = settings.max_samples; - const std::size_t &max_iterations = settings.max_iterations; - // Configure internal RRTC settings + // Cap the internal RRTC limits by the total budget without discarding + // user-set nested values. max_samples in particular must not exceed the + // top-level value: it bounds the AOX_RRTC buffer allocation below. RRTCSettings &rrtc_settings = settings.rrtc; - rrtc_settings.max_iterations = max_iterations; - rrtc_settings.max_samples = max_samples; + rrtc_settings.max_iterations = std::min(rrtc_settings.max_iterations, settings.max_iterations); + rrtc_settings.max_samples = std::min(rrtc_settings.max_samples, settings.max_samples); PlanningResult result; float best_path_cost = std::numeric_limits::max(); @@ -398,14 +529,15 @@ namespace vamp::planning do { // Find an initial solution - result = RRTC::solve(start, goals, environment, rrtc_settings, rng); + result = RRTC::solve(start, goals, environment, rrtc_settings, rng, lp); iters += result.iterations; } while (result.path.empty() and iters < settings.max_iterations); // Simplify solution if enabled if (settings.simplify_intermediate and not result.path.empty()) { - result = simplify(result.path, environment, settings.simplify, rng); + result = + simplify(result.path, environment, settings.simplify, rng, lp); } result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); @@ -420,53 +552,55 @@ namespace vamp::planning // We have a new best solution PlanningResult final_result; final_result.path = result.path; + final_result.solved = true; best_path_cost = result.path.cost(); float best_possible_cost = std::numeric_limits::max(); for (const auto &goal : goals) { - best_possible_cost = std::min(best_possible_cost, start.distance(goal)); + best_possible_cost = std::min(best_possible_cost, planning::cost(start, goal)); } - ProlateHyperspheroid phs(start, goals[0]); - phs.set_transverse_diameter(best_path_cost); + // Informed sampler: PHS keyed by the single-goal best_path_cost. Disabled for + // robots with a custom cost: the L2 spheroid is not admissible for C_loc. + typename rng::RNG::Ptr informed_rng; + std::function update_informed_bound = [](float) {}; + if constexpr (not has_cost_v) + { + if (settings.use_phs and goals.size() == 1) + { + ProlateHyperspheroid phs(start, goals[0]); + phs.set_transverse_diameter(best_path_cost); - auto phs_rng = std::make_shared>(phs, rng); + auto phs_rng = std::make_shared>(phs, rng); + informed_rng = phs_rng; + update_informed_bound = [phs_rng](float c) { phs_rng->phs.set_transverse_diameter(c); }; + } + } - AOX_RRTC instance(max_samples); + AOX_RRTC instance(settings.max_samples); // If we get close to straight line, just call it. // Also handles numerical issues with PHS when too close to straight line... - while (iters < max_iterations and (best_path_cost - best_possible_cost) > 1e-8) + while (iters < settings.max_iterations and (best_path_cost - best_possible_cost) > 1e-8) { - // Update internal maximum iterations - rrtc_settings.max_iterations = - std::min(settings.max_iterations - iters, settings.max_internal_iterations); + // Update internal maximum iterations: remaining total budget, the per-search + // cap, and the user's nested RRTC limit + rrtc_settings.max_iterations = std::min( + {settings_in.rrtc.max_iterations, + settings.max_iterations - iters, + settings.max_internal_iterations}); + + auto &sample_rng = informed_rng ? informed_rng : rng; - // By default, use AORRTC if (not settings.anytime) { - // If there is a single goal, sample with PHS - if (settings.use_phs and goals.size() == 1) - { - result = instance.solve(start, goals, environment, settings, best_path_cost, phs_rng); - } - else - { - result = instance.solve(start, goals, environment, settings, best_path_cost, rng); - } + result = + instance.solve(start, goals, environment, settings, best_path_cost, sample_rng, lp); } - // If anytime, use Anytime RRTC else { - if (settings.use_phs and goals.size() == 1) - { - result = RRTC::solve(start, goals, environment, rrtc_settings, phs_rng); - } - else - { - result = RRTC::solve(start, goals, environment, rrtc_settings, rng); - } + result = RRTC::solve(start, goals, environment, rrtc_settings, sample_rng, lp); } iters += result.iterations; @@ -478,7 +612,7 @@ namespace vamp::planning if (settings.simplify_intermediate) { result = simplify( - result.path, environment, settings.simplify, rng); + result.path, environment, settings.simplify, rng, lp); } // To be safe, ensure new path is actually a better solution @@ -488,7 +622,7 @@ namespace vamp::planning final_result.path = result.path; best_path_cost = result.path.cost(); - phs_rng->phs.set_transverse_diameter(best_path_cost); + update_informed_bound(best_path_cost); } } } diff --git a/src/impl/vamp/planning/aorrtc_settings.hh b/src/impl/vamp/planning/planners/aorrtc_settings.hh similarity index 92% rename from src/impl/vamp/planning/aorrtc_settings.hh rename to src/impl/vamp/planning/planners/aorrtc_settings.hh index 096377d0..b9a0786d 100644 --- a/src/impl/vamp/planning/aorrtc_settings.hh +++ b/src/impl/vamp/planning/planners/aorrtc_settings.hh @@ -1,6 +1,6 @@ #pragma once -#include +#include #include namespace vamp::planning diff --git a/src/impl/vamp/planning/fcit.hh b/src/impl/vamp/planning/planners/fcit.hh similarity index 77% rename from src/impl/vamp/planning/fcit.hh rename to src/impl/vamp/planning/planners/fcit.hh index 23fd65dc..82c6c819 100644 --- a/src/impl/vamp/planning/fcit.hh +++ b/src/impl/vamp/planning/planners/fcit.hh @@ -3,15 +3,18 @@ #include #include #include +#include #include -#include +#include +#include #include #include -#include +#include #include #include #include +#include #include #include @@ -66,7 +69,6 @@ namespace vamp::planning struct FCIT { using Configuration = typename Robot::Configuration; - static constexpr auto dimension = Robot::dimension; using RNG = typename vamp::rng::RNG; inline static auto solve( @@ -79,6 +81,25 @@ namespace vamp::planning return solve(start, std::vector{goal}, environment, settings, rng); } + // Roadmap edges are straight lines: only the unconstrained local planner is + // supported. Constrained, phase, and chart planning require RRTC, AORRTC, or + // GRRTStar. + template + inline static auto solve( + const Configuration &start, + const Goal &goal, + const collision::Environment> &environment, + const RoadmapSettings &settings, + typename RNG::Ptr &rng, + const LocalPlanner &) noexcept -> PlanningResult + { + static_assert( + std::is_same_v>, + "FCIT only supports the unconstrained local planner: constrained, phase, and " + "chart planning require RRTC, AORRTC, or GRRTStar"); + return solve(start, goal, environment, settings, rng); + } + inline static auto solve( const Configuration &start, const std::vector &goals, @@ -89,14 +110,13 @@ namespace vamp::planning auto start_time = std::chrono::steady_clock::now(); PlanningResult result; - NN roadmap; + NN roadmap; + roadmap.reserve(settings.max_samples); + roadmap.set_epsilon(settings.nn_epsilon); std::size_t iter = 0; - typename Robot::template ConfigurationBlock temp_block; - auto states = std::unique_ptr( - vamp::utils::vector_alloc( - settings.max_samples * Configuration::num_scalars_rounded), - &free); + auto states = vamp::utils::buffer_alloc( + settings.max_samples * Configuration::num_scalars_rounded); // TODO: Is it better to just use arrays for these since we're reserving full capacity // anyway? Test it! @@ -113,9 +133,10 @@ namespace vamp::planning float *start_state = state_index(start_index); start.to_array(start_state); - parents.emplace_back(std::numeric_limits::max()); + // recover_path convention: the root is its own parent. + parents.emplace_back(start_index); nodes.emplace_back(start_index, 0.0); - roadmap.insert(NNNode{start_index, {start_state}}); + roadmap.insert(start_index, start_state); auto &start_node = nodes[start_index]; start_node.neighbor_iterator = start_node.neighbors.begin(); @@ -126,13 +147,17 @@ namespace vamp::planning goal.to_array(goal_state); parents.emplace_back(std::numeric_limits::max()); nodes.emplace_back(index); - roadmap.insert(NNNode{index, {goal_state}}); + roadmap.insert(index, goal_state); } Configuration temp_config; Configuration temp_config_self; std::vector open_set; + // Goal nodes occupy indices [1, goals.size()]; reached ones have a parent. + const auto reached = [&parents](unsigned int goal_index) -> bool + { return parents[goal_index] != std::numeric_limits::max(); }; + // Search until Initial Solution while (nodes.size() < settings.max_samples and iter++ < settings.max_iterations) { @@ -152,14 +177,14 @@ namespace vamp::planning const auto neighbor_index = it->index; temp_config = state_index(neighbor_index); - const auto neighbor_distance = start.distance(temp_config); + const auto neighbor_distance = robots::distance(start, temp_config); start_node.sampleIdx = std::max(neighbor_index, start_node.sampleIdx); // g(p) + c^(p,c) < g(c) if (neighbor_distance < it->g) { // f^(c) = g(p) + c^(p,c) + h^(c) - const auto cost = neighbor_distance + goal.distance(temp_config); + const auto cost = neighbor_distance + robots::distance(goal, temp_config); start_node.neighbors.emplace_back( typename FCITRoadmapNode::Neighbor{neighbor_index, cost}); } @@ -202,7 +227,7 @@ namespace vamp::planning const auto &node = nodes[(*parent_node.neighbor_iterator).index]; if ((*parent_node.neighbor_iterator).distance < - node.g + goal.distance(state_index(node.index))) + node.g + robots::distance(goal, state_index(node.index))) { open_set.emplace_back( QueueEdge{ @@ -220,7 +245,7 @@ namespace vamp::planning if (parents[current_index] != current_p) { temp_config_self = state_index(current_index); - const auto dist_to_goal = goal.distance(temp_config_self); + const auto dist_to_goal = robots::distance(goal, temp_config_self); if (current.cost <= goal_node.g) { @@ -244,8 +269,8 @@ namespace vamp::planning { // Update the node's parent and g value parents[current_index] = current_p; - current_g = - parent_node.g + temp_config.distance(temp_config_self); + current_g = parent_node.g + robots::distance( + temp_config, temp_config_self); current_node.g = current_g; } else @@ -281,11 +306,13 @@ namespace vamp::planning const auto neighbor_index = it->index; temp_config = state_index(neighbor_index); - const auto neighbor_distance = temp_config_self.distance(temp_config); + const auto neighbor_distance = + robots::distance(temp_config_self, temp_config); current_node.sampleIdx = std::max(neighbor_index, current_node.sampleIdx); // f^(c) = g(p) + c^(p,c) + h^(c) - auto cost = current_g + neighbor_distance + goal.distance(temp_config); + auto cost = + current_g + neighbor_distance + robots::distance(goal, temp_config); current_node.neighbors.emplace_back( typename FCITRoadmapNode::Neighbor{neighbor_index, cost}); @@ -314,7 +341,19 @@ namespace vamp::planning } // If we have a solution and just want an initial solution, break - if (not settings.optimize and parents[1] != std::numeric_limits::max()) + const auto any_reached = [&]() -> bool + { + for (auto i = 1U; i <= goals.size(); ++i) + { + if (reached(i)) + { + return true; + } + } + return false; + }; + + if (not settings.optimize and any_reached()) { break; } @@ -323,14 +362,7 @@ namespace vamp::planning new_samples < settings.batch_size and nodes.size() < settings.max_samples;) { auto rng_temp = rng->next(); - - // Check sample validity - for (auto i = 0U; i < dimension; ++i) - { - temp_block[i] = rng_temp.broadcast(i); - } - - if (not Robot::template fkcc(environment, temp_block)) + if (not validate_configuration(rng_temp, environment)) { continue; } @@ -342,14 +374,28 @@ namespace vamp::planning parents.emplace_back(std::numeric_limits::max()); auto &node = nodes.emplace_back(nodes.size()); - auto road_node = NNNode{node.index, {state}}; - roadmap.insert(road_node); + roadmap.insert(node.index, state); new_samples++; } } - utils::recover_path(parents, state_index, result.path); - result.cost = nodes[1].g; + // Recover from the cheapest reached goal, if any. + unsigned int best_goal = 0; + for (auto i = 1U; i <= goals.size(); ++i) + { + if (reached(i) and (best_goal == 0 or nodes[i].g < nodes[best_goal].g)) + { + best_goal = i; + } + } + + if (best_goal != 0) + { + utils::recover_path(parents.data(), state_index, result.path, best_goal); + result.solved = true; + result.cost = nodes[best_goal].g; + } + result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); result.iterations = iter; result.size.emplace_back(roadmap.size()); diff --git a/src/impl/vamp/planning/grrtstar.hh b/src/impl/vamp/planning/planners/grrtstar.hh similarity index 60% rename from src/impl/vamp/planning/grrtstar.hh rename to src/impl/vamp/planning/planners/grrtstar.hh index 46b14b5f..8c8d9b96 100644 --- a/src/impl/vamp/planning/grrtstar.hh +++ b/src/impl/vamp/planning/planners/grrtstar.hh @@ -28,19 +28,24 @@ #include #include #include +#include +#include #include #include #include -#include +#include +#include +#include #include #include -#include +#include #include -#include +#include #include #include +#include #include namespace vamp::planning @@ -51,25 +56,28 @@ namespace vamp::planning using Configuration = typename Robot::Configuration; static constexpr auto dimension = Robot::dimension; using RNG = typename vamp::rng::RNG; - using NNNodeType = NNNode; - using NNTree = NN; + using NNTree = NN; + template > inline static auto solve( const Configuration &start, const Configuration &goal, const collision::Environment> &environment, const GRRTStarSettings &settings, - typename RNG::Ptr rng) noexcept -> PlanningResult + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult { - return solve(start, std::vector{goal}, environment, settings, rng); + return solve(start, std::vector{goal}, environment, settings, rng, lp); } + template > inline static auto solve( const Configuration &start, const std::vector &goals, const collision::Environment> &environment, const GRRTStarSettings &settings, - typename RNG::Ptr rng) noexcept -> PlanningResult + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult { PlanningResult result; @@ -77,38 +85,42 @@ namespace vamp::planning NNTree start_tree; NNTree goal_tree; + start_tree.reserve(settings.max_samples); + goal_tree.reserve(settings.max_samples); + start_tree.set_epsilon(settings.nn_epsilon); + goal_tree.set_epsilon(settings.nn_epsilon); constexpr const std::size_t start_index = 0; - auto buffer = std::unique_ptr( - vamp::utils::vector_alloc( - settings.max_samples * Configuration::num_scalars_rounded), - &free); + auto buffer = vamp::utils::buffer_alloc( + settings.max_samples * Configuration::num_scalars_rounded); const auto buffer_index = [&buffer](std::size_t index) -> float * { return buffer.get() + index * Configuration::num_scalars_rounded; }; - std::vector parents(settings.max_samples); - std::vector costs(settings.max_samples, std::numeric_limits::max()); - std::vector radii(settings.max_samples); + // Uninitialized: every element (including pruned) is written when its node is + // created, before any read + auto parents = vamp::utils::buffer_alloc(settings.max_samples); + auto costs = vamp::utils::buffer_alloc(settings.max_samples); + auto radii = vamp::utils::buffer_alloc(settings.max_samples); + auto in_start_tree = vamp::utils::buffer_alloc(settings.max_samples); + auto pruned = vamp::utils::buffer_alloc(settings.max_samples); std::vector> children(settings.max_samples); - std::vector in_start_tree(settings.max_samples, 0); - std::vector pruned(settings.max_samples, 0); // Best solution tracking float best_cost = std::numeric_limits::max(); float greedy_best_cost = std::numeric_limits::max(); Path best_path; - // Heuristic cost lower bound for a node + // Heuristic cost lower bound for a node (directed: start precedes it, goals follow) const auto solution_heuristic = [&](std::size_t idx) -> float { Configuration cfg(buffer_index(idx)); - float g_hat = cfg.distance(start); + float g_hat = planning::cost(start, cfg); float h_hat = std::numeric_limits::max(); for (const auto &goal : goals) { - h_hat = std::min(h_hat, cfg.distance(goal)); + h_hat = std::min(h_hat, planning::cost(cfg, goal)); } return g_hat + h_hat; }; @@ -142,11 +154,12 @@ namespace vamp::planning // Initialize start node start.to_array(buffer_index(start_index)); - start_tree.insert(NNNodeType{start_index, {buffer_index(start_index)}}); + start_tree.insert(start_index, buffer_index(start_index)); parents[start_index] = start_index; costs[start_index] = 0.F; radii[start_index] = std::numeric_limits::max(); in_start_tree[start_index] = 1; + pruned[start_index] = 0; std::size_t free_index = start_index + 1; @@ -156,11 +169,12 @@ namespace vamp::planning for (const auto &goal : goals) { goal.to_array(buffer_index(free_index)); - goal_tree.insert(NNNodeType{free_index, {buffer_index(free_index)}}); + goal_tree.insert(free_index, buffer_index(free_index)); parents[free_index] = free_index; costs[free_index] = 0.F; radii[free_index] = std::numeric_limits::max(); in_start_tree[free_index] = 0; + pruned[free_index] = 0; goal_indices.push_back(free_index); free_index++; } @@ -173,7 +187,7 @@ namespace vamp::planning { if (not pruned[i] and static_cast(in_start_tree[i]) == is_start) { - tree.insert(NNNodeType{i, {buffer_index(i)}}); + tree.insert(i, buffer_index(i)); } } }; @@ -208,11 +222,12 @@ namespace vamp::planning rebuild_tree(goal_tree, false); }; - // PHS for informed sampling (single goal only) + // PHS for informed sampling (single goal only; an L2 construction, so disabled for + // robots with a non-metric edge cost) bool has_solution = false; std::unique_ptr> phs_ptr; std::shared_ptr> phs_rng_ptr; - if (settings.use_phs and goals.size() == 1) + if (settings.use_phs and goals.size() == 1 and not has_cost_v) { phs_ptr = std::make_unique>(start, goals[0]); phs_rng_ptr = std::make_shared>(*phs_ptr, rng); @@ -301,10 +316,47 @@ namespace vamp::planning auto *tree_a = &goal_tree; auto *tree_b = &start_tree; + // Directed cost of a tree edge from parent to child: start-tree edges execute + // parent -> child, goal-tree edges child -> parent. + const auto chain_edge_cost = + [&tree_a_is_start](const Configuration &parent, const Configuration &child) -> float + { + return (tree_a_is_start) ? planning::cost(parent, child) : + planning::cost(child, parent); + }; + + // Insert one waypoint into tree_a with its accumulated directed cost and full + // node bookkeeping; nullopt when the sample limit is hit. + const auto add_node = [&](const Configuration &c, + std::size_t parent) -> std::optional + { + if (free_index >= settings.max_samples) + { + return std::nullopt; + } + + float *ptr = buffer_index(free_index); + c.to_array(ptr); + tree_a->insert(free_index, ptr); + parents[free_index] = parent; + costs[free_index] = costs[parent] + chain_edge_cost(Configuration(buffer_index(parent)), c); + radii[free_index] = std::numeric_limits::max(); + in_start_tree[free_index] = tree_a_is_start ? 1 : 0; + pruned[free_index] = 0; + children[parent].push_back(free_index); + return free_index++; + }; + std::size_t iter = 0; - std::vector> neighbors; + std::vector> neighbors; neighbors.reserve(settings.max_samples); + // (node, nn distance, directed parent-edge cost to the new configuration); the edge + // cost equals the nn distance for symmetric-cost robots but must be computed + // separately under an asymmetric cost + std::vector> neighbor_edges; + neighbor_edges.reserve(settings.max_samples); + while (iter++ < settings.max_iterations and free_index < settings.max_samples) { // Balanced bidirectional tree swapping @@ -321,14 +373,14 @@ namespace vamp::planning // Sample auto temp = sample(); - // Cost gating + // Cost gating (directed heuristics; admissible under the directed triangle inequality) if (has_solution) { - float g_hat = temp.distance(start); + float g_hat = planning::cost(start, temp); float h_hat = std::numeric_limits::max(); for (const auto &goal : goals) { - h_hat = std::min(h_hat, temp.distance(goal)); + h_hat = std::min(h_hat, planning::cost(temp, goal)); } float f_hat = g_hat + h_hat; if (f_hat >= best_cost) @@ -346,82 +398,100 @@ namespace vamp::planning typename Robot::ConfigurationBuffer temp_array; temp.to_array(temp_array.data()); - auto nearest_result = tree_a->nearest(NNFloatArray{temp_array.data()}); + auto nearest_result = tree_a->nearest(temp_array.data()); if (not nearest_result) { continue; } - const auto &[nearest_node, nearest_distance] = *nearest_result; + // Not a structured binding: nearest_index is captured by the lambda below, which is + // only allowed from C++20. + const std::size_t nearest_index = nearest_result->first; + const float nearest_distance = nearest_result->second; // Dynamic domain check - if (settings.dynamic_domain and radii[nearest_node.index] < nearest_distance) + if (settings.dynamic_domain and radii[nearest_index] < nearest_distance) { continue; } - const auto nearest_configuration = nearest_node.as_vector(); - auto nearest_vector = temp - nearest_configuration; - - bool reach = nearest_distance < settings.range; - auto extension_vector = - (reach) ? nearest_vector : nearest_vector * (settings.range / nearest_distance); - float extension_distance = reach ? nearest_distance : settings.range; + const auto nearest_configuration = Configuration(buffer_index(nearest_index)); - auto new_configuration = nearest_configuration + extension_vector; - float new_cost = costs[nearest_node.index] + extension_distance; - std::size_t best_parent = nearest_node.index; - - // Cost gate on the new state BEFORE the collision check (mirrors OMPL + // Cost bound on the new state BEFORE the collision check (mirrors OMPL // GreedyRRTstar): reject an extension that cannot improve the current best // before paying for the motion-validity check. - if (has_solution) + float new_cost = 0.F; + const auto accept = [&](const Configuration &candidate) -> bool { + // Directed edge cost, mirroring the steer direction + new_cost = costs[nearest_index] + chain_edge_cost(nearest_configuration, candidate); + + if (not has_solution) + { + return true; + } + float h_hat; if (tree_a_is_start) { h_hat = std::numeric_limits::max(); for (const auto &g : goals) { - h_hat = std::min(h_hat, new_configuration.distance(g)); + h_hat = std::min(h_hat, planning::cost(candidate, g)); } } else { - h_hat = new_configuration.distance(start); - } - if (new_cost + h_hat >= best_cost) - { - continue; + h_hat = planning::cost(start, candidate); } + + return new_cost + h_hat < best_cost; + }; + + // Edges are executed from start to goal: goal-tree edges run child -> parent, so + // steer and validate along the local path in that direction (identical for + // symmetric interpolation). + const auto extension = lp.steer( + nearest_configuration, + temp, + nearest_distance, + settings.range, + tree_a_is_start, + environment, + accept); + + if (extension.status == SteerStatus::Rejected) + { + continue; } - // Validate extension edge (collision check) - if (not validate_vector( - nearest_configuration, extension_vector, extension_distance, environment)) + if (extension.status == SteerStatus::Trapped) { if (settings.dynamic_domain) { - if (radii[nearest_node.index] == std::numeric_limits::max()) + if (radii[nearest_index] == std::numeric_limits::max()) { - radii[nearest_node.index] = settings.dd_radius; + radii[nearest_index] = settings.dd_radius; } else { - radii[nearest_node.index] = std::max( - radii[nearest_node.index] * (1.F - settings.dd_alpha), - settings.dd_min_radius); + radii[nearest_index] = std::max( + radii[nearest_index] * (1.F - settings.dd_alpha), settings.dd_min_radius); } } continue; } + std::size_t best_parent = nearest_index; + const auto &waypoints = extension.waypoints; + // Write config to buffer once (before both parent selection and node addition) float *new_config_ptr = buffer_index(free_index); - new_configuration.to_array(new_config_ptr); + waypoints.front().to_array(new_config_ptr); - // RRT* parent selection and rewiring (skip until first solution if delay_rewiring) - bool do_rewire = not settings.delay_rewiring or has_solution; + // RRT* parent selection and rewiring (skip until first solution if + // delay_rewiring) + const bool do_rewire = not settings.delay_rewiring or has_solution; if (do_rewire) { @@ -429,36 +499,51 @@ namespace vamp::planning // cardDbl = tStart_->size() + tGoal_->size() + 1 const auto card = static_cast(start_tree.size() + goal_tree.size() + 1); - NNFloatArray new_key{new_config_ptr}; - - // Query neighbors using nigh KD-tree (returns sorted by distance) + // Query neighbors (returns sorted by distance) neighbors.clear(); if (settings.use_k_nearest) { std::size_t k = std::min( static_cast(std::ceil(k_rrt_star * std::log(card))), settings.max_k_neighbors); - tree_a->nearest(neighbors, new_key, k); + tree_a->nearest(neighbors, new_config_ptr, k); } else { float r = static_cast(std::min( static_cast(settings.range), r_rrt_star * std::pow(std::log(card) / card, inverse_dim))); - tree_a->nearest(neighbors, new_key, std::numeric_limits::max(), r); + tree_a->nearest( + neighbors, new_config_ptr, std::numeric_limits::max(), r); + } + + // Attach the directed edge cost of each neighbor as a candidate parent + neighbor_edges.clear(); + for (const auto &[nbr_index, nbr_dist] : neighbors) + { + float edge = nbr_dist; + if constexpr (has_cost_v) + { + const auto nbr_config = Configuration(buffer_index(nbr_index)); + edge = chain_edge_cost(nbr_config, extension.endpoint()); + } + neighbor_edges.emplace_back(nbr_index, nbr_dist, edge); } if (settings.delay_cc) { pdqsort( - neighbors.begin(), - neighbors.end(), + neighbor_edges.begin(), + neighbor_edges.end(), [&](const auto &a, const auto &b) - { return costs[a.first.index] + a.second < costs[b.first.index] + b.second; }); + { + return costs[std::get<0>(a)] + std::get<2>(a) < + costs[std::get<0>(b)] + std::get<2>(b); + }); - for (const auto &[nbr_node, nbr_dist] : neighbors) + for (const auto &[nbr_index, nbr_dist, nbr_cost] : neighbor_edges) { - float candidate_cost = costs[nbr_node.index] + nbr_dist; + float candidate_cost = costs[nbr_index] + nbr_cost; if (candidate_cost >= new_cost) { break; @@ -466,12 +551,12 @@ namespace vamp::planning if (settings.use_k_nearest or nbr_dist < settings.range) { - const auto nbr_config = nbr_node.as_vector(); - if (validate_motion( - nbr_config, new_configuration, environment)) + const auto nbr_config = Configuration(buffer_index(nbr_index)); + if (lp.validate( + nbr_config, extension.endpoint(), environment, tree_a_is_start)) { new_cost = candidate_cost; - best_parent = nbr_node.index; + best_parent = nbr_index; break; } } @@ -479,17 +564,17 @@ namespace vamp::planning } else { - for (const auto &[nbr_node, nbr_dist] : neighbors) + for (const auto &[nbr_index, nbr_dist, nbr_cost] : neighbor_edges) { - float candidate_cost = costs[nbr_node.index] + nbr_dist; + float candidate_cost = costs[nbr_index] + nbr_cost; if (candidate_cost < new_cost) { - const auto nbr_config = nbr_node.as_vector(); - if (validate_motion( - nbr_config, new_configuration, environment)) + const auto nbr_config = Configuration(buffer_index(nbr_index)); + if (lp.validate( + nbr_config, extension.endpoint(), environment, tree_a_is_start)) { new_cost = candidate_cost; - best_parent = nbr_node.index; + best_parent = nbr_index; } } } @@ -497,42 +582,52 @@ namespace vamp::planning } // Add new node (config already written to buffer) - tree_a->insert(NNNodeType{free_index, {new_config_ptr}}); + tree_a->insert(free_index, new_config_ptr); parents[free_index] = best_parent; costs[free_index] = new_cost; radii[free_index] = std::numeric_limits::max(); in_start_tree[free_index] = tree_a_is_start ? 1 : 0; + pruned[free_index] = 0; children[best_parent].push_back(free_index); const std::size_t new_node_index = free_index; free_index++; // Dynamic domain grow - if (settings.dynamic_domain and - radii[nearest_node.index] != std::numeric_limits::max()) + if (settings.dynamic_domain and radii[nearest_index] != std::numeric_limits::max()) { - radii[nearest_node.index] *= (1 + settings.dd_alpha); + radii[nearest_index] *= (1 + settings.dd_alpha); } // Rewiring if (do_rewire) { - for (const auto &[nbr_node, nbr_dist] : neighbors) + for (const auto &[nbr_index, nbr_dist, nbr_cost] : neighbor_edges) { - if (nbr_node.index == best_parent) + if (nbr_index == best_parent) { continue; } - float nbr_new_cost = new_cost + nbr_dist; - if (nbr_new_cost < costs[nbr_node.index]) + // Rewired edges run new node -> neighbor: opposite direction to the + // candidate-parent edge, mirroring the motion_valid ternary below + float rewire_edge_cost = nbr_dist; + if constexpr (has_cost_v) + { + const auto nbr_config = Configuration(buffer_index(nbr_index)); + rewire_edge_cost = chain_edge_cost(extension.endpoint(), nbr_config); + } + + float nbr_new_cost = new_cost + rewire_edge_cost; + if (nbr_new_cost < costs[nbr_index]) { bool motion_valid; if (settings.use_k_nearest or nbr_dist < settings.range) { - motion_valid = validate_motion( - new_configuration, nbr_node.as_vector(), environment); + const auto nbr_config = Configuration(buffer_index(nbr_index)); + motion_valid = lp.validate( + extension.endpoint(), nbr_config, environment, tree_a_is_start); } else { @@ -541,84 +636,112 @@ namespace vamp::planning if (motion_valid) { - float cost_delta = costs[nbr_node.index] - nbr_new_cost; + float cost_delta = costs[nbr_index] - nbr_new_cost; - auto &old_parent_children = children[parents[nbr_node.index]]; + auto &old_parent_children = children[parents[nbr_index]]; auto it = std::find( - old_parent_children.begin(), old_parent_children.end(), nbr_node.index); + old_parent_children.begin(), old_parent_children.end(), nbr_index); if (it != old_parent_children.end()) { *it = old_parent_children.back(); old_parent_children.pop_back(); } - parents[nbr_node.index] = new_node_index; - costs[nbr_node.index] = nbr_new_cost; - children[new_node_index].push_back(nbr_node.index); + parents[nbr_index] = new_node_index; + costs[nbr_index] = nbr_new_cost; + children[new_node_index].push_back(nbr_index); - update_child_costs(update_child_costs, nbr_node.index, cost_delta); + update_child_costs(update_child_costs, nbr_index, cost_delta); } } } } + // Insert the remainder of the chain, each waypoint parented on the previous + const auto [new_index, extend_truncated] = + insert_chain(waypoints.begin() + 1, waypoints.end(), new_node_index, add_node); + + if (extend_truncated) + { + continue; + } + + new_cost = costs[new_index]; + // Connect to other tree if (tree_b->size() == 0) { continue; } - auto other_result = tree_b->nearest(NNFloatArray{new_config_ptr}); + auto other_result = tree_b->nearest(buffer_index(new_index)); if (not other_result) { continue; } - const auto &[other_nearest_node, other_nearest_distance] = *other_result; + const auto [other_nearest_index, other_nearest_distance] = *other_result; + const auto other_nearest_configuration = Configuration(buffer_index(other_nearest_index)); - // Check if connection would improve best solution - float connection_cost = new_cost + other_nearest_distance + costs[other_nearest_node.index]; + // Check if connection would improve best solution (directed connection edge: + // tree_a's new node precedes tree_b's node iff tree_a is the start tree) + float connection_edge = other_nearest_distance; + if constexpr (has_cost_v) + { + connection_edge = chain_edge_cost(extension.endpoint(), other_nearest_configuration); + } + + float connection_cost = new_cost + connection_edge + costs[other_nearest_index]; if (has_solution and connection_cost >= best_cost) { continue; } - const auto other_nearest_configuration = other_nearest_node.as_vector(); - auto other_nearest_vector = other_nearest_configuration - new_configuration; - // Extend incrementally toward other tree const std::size_t n_extensions = std::max( static_cast(std::ceil(other_nearest_distance / settings.range)), static_cast(1)); - const float increment_length = other_nearest_distance / static_cast(n_extensions); - auto increment = other_nearest_vector * (1.0F / static_cast(n_extensions)); std::size_t i_extension = 0; - auto prior = new_configuration; - for (; i_extension < n_extensions and - validate_vector( - prior, increment, increment_length, environment) and - free_index < settings.max_samples; - ++i_extension) + bool connected = false; + Configuration prior = extension.endpoint(); + std::size_t prior_index = new_index; + while (not connected and i_extension < n_extensions and free_index < settings.max_samples) { - auto next = prior + increment; - float *next_ptr = buffer_index(free_index); - next.to_array(next_ptr); - tree_a->insert(NNNodeType{free_index, {next_ptr}}); - parents[free_index] = free_index - 1; - costs[free_index] = costs[free_index - 1] + increment_length; - radii[free_index] = std::numeric_limits::max(); - in_start_tree[free_index] = tree_a_is_start ? 1 : 0; - children[free_index - 1].push_back(free_index); - - free_index++; - prior = next; + const float remaining = robots::distance(prior, other_nearest_configuration); + const bool final_step = + (i_extension == n_extensions - 1) or (remaining <= settings.range); + + const auto step = lp.steer( + prior, + other_nearest_configuration, + remaining, + (final_step) ? std::numeric_limits::max() : settings.range, + tree_a_is_start, + environment); + + if (step.status == SteerStatus::Trapped) + { + break; + } + + const auto [step_index, step_truncated] = + insert_chain(step.waypoints, prior_index, add_node); + if (step_truncated) + { + break; + } + + connected = (step.status == SteerStatus::Reached); + i_extension++; + prior = step.endpoint(); + prior_index = step_index; } - if (i_extension == n_extensions) // connected + if (connected) { std::size_t connect_a_node = free_index - 1; - std::size_t connect_b_node = other_nearest_node.index; + std::size_t connect_b_node = other_nearest_index; float total_cost = costs[connect_a_node] + costs[connect_b_node]; @@ -669,8 +792,8 @@ namespace vamp::planning greedy_best_cost = 0.F; for (std::size_t i = 0; i < best_path.size(); ++i) { - float g_hat = best_path[i].distance(start); - float h_hat = best_path[i].distance(goals[0]); + float g_hat = robots::distance(best_path[i], start); + float h_hat = robots::distance(best_path[i], goals[0]); float f_hat = g_hat + h_hat; greedy_best_cost = std::max(greedy_best_cost, f_hat); } @@ -692,6 +815,7 @@ namespace vamp::planning { result.path = std::move(best_path); result.cost = best_cost; + result.solved = true; } result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); diff --git a/src/impl/vamp/planning/grrtstar_settings.hh b/src/impl/vamp/planning/planners/grrtstar_settings.hh similarity index 87% rename from src/impl/vamp/planning/grrtstar_settings.hh rename to src/impl/vamp/planning/planners/grrtstar_settings.hh index 98564548..94b191ac 100644 --- a/src/impl/vamp/planning/grrtstar_settings.hh +++ b/src/impl/vamp/planning/planners/grrtstar_settings.hh @@ -23,5 +23,8 @@ namespace vamp::planning bool optimize = true; std::size_t max_iterations = 100000; std::size_t max_samples = 100000; + + // (1 + epsilon)-approximate nearest-neighbor queries; 0 is exact. + float nn_epsilon = 0.; }; } // namespace vamp::planning diff --git a/src/impl/vamp/planning/prm.hh b/src/impl/vamp/planning/planners/prm.hh similarity index 74% rename from src/impl/vamp/planning/prm.hh rename to src/impl/vamp/planning/planners/prm.hh index 94d68e8f..9e203414 100644 --- a/src/impl/vamp/planning/prm.hh +++ b/src/impl/vamp/planning/planners/prm.hh @@ -3,13 +3,15 @@ #include #include #include +#include #include #include -#include +#include +#include #include #include -#include +#include #include #include #include @@ -27,7 +29,6 @@ namespace vamp::planning struct PRM { using Configuration = typename Robot::Configuration; - static constexpr auto dimension = Robot::dimension; using RNG = typename vamp::rng::RNG; inline static auto solve( @@ -40,6 +41,25 @@ namespace vamp::planning return solve(start, std::vector{goal}, environment, settings, rng); } + // Roadmap edges are straight lines: only the unconstrained local planner is + // supported. Constrained, phase, and chart planning require RRTC, AORRTC, or + // GRRTStar. + template + inline static auto solve( + const Configuration &start, + const Goal &goal, + const collision::Environment> &environment, + const RoadmapSettings &settings, + typename RNG::Ptr rng, + const LocalPlanner &) noexcept -> PlanningResult + { + static_assert( + std::is_same_v>, + "PRM only supports the unconstrained local planner: constrained, phase, and " + "chart planning require RRTC, AORRTC, or GRRTStar"); + return solve(start, goal, environment, settings, rng); + } + inline static auto solve( const Configuration &start, const std::vector &goals, @@ -49,7 +69,9 @@ namespace vamp::planning { PlanningResult result; - NN roadmap; + NN roadmap; + roadmap.reserve(settings.max_samples); + roadmap.set_epsilon(settings.nn_epsilon); auto start_time = std::chrono::steady_clock::now(); @@ -60,6 +82,8 @@ namespace vamp::planning { result.path.emplace_back(start); result.path.emplace_back(goal); + result.solved = true; + result.cost = result.path.cost(); result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); result.iterations = 0; result.size.emplace_back(1); @@ -70,11 +94,9 @@ namespace vamp::planning } std::size_t iter = 0; - std::vector, float>> neighbors; - typename Robot::template ConfigurationBlock temp_block; - auto states = std::unique_ptr( - vamp::utils::vector_alloc( - settings.max_samples * Configuration::num_scalars_rounded)); + std::vector> neighbors; + auto states = vamp::utils::buffer_alloc( + settings.max_samples * Configuration::num_scalars_rounded); // TODO: Is it better to just use arrays for these since we're reserving full capacity // anyway? Test it! std::vector nodes; @@ -91,7 +113,7 @@ namespace vamp::planning auto *start_state = state_index(start_index); start.to_array(start_state); nodes.emplace_back(start_index, start_index, 0.0); - roadmap.insert(NNNode{start_index, {start_state}}); + roadmap.insert(start_index, start_state); components.emplace_back(utils::ConnectedComponent{start_index, 1}); for (const auto &goal : goals) @@ -100,7 +122,7 @@ namespace vamp::planning auto *goal_state = state_index(index); goal.to_array(goal_state); nodes.emplace_back(index, index); - roadmap.insert(NNNode{index, {goal_state}}); + roadmap.insert(index, goal_state); components.emplace_back(utils::ConnectedComponent{index, 1}); } @@ -109,17 +131,7 @@ namespace vamp::planning while (iter++ < settings.max_iterations and nodes.size() < settings.max_samples) { auto temp = rng->next(); - // TODO: This is a gross hack to get around the instruction cache issue...I realized - // that edge sampling, while valid, wastes too much effort with our current - // validation API - - // Check sample validity - for (auto i = 0U; i < dimension; ++i) - { - temp_block[i] = temp.broadcast(i); - } - - if (not Robot::template fkcc(environment, temp_block)) + if (not validate_configuration(temp, environment)) { continue; } @@ -132,22 +144,22 @@ namespace vamp::planning // Add valid edges const auto k = settings.neighbor_params.max_neighbors(roadmap.size()); const auto r = settings.neighbor_params.neighbor_radius(roadmap.size()); - roadmap.nearest(neighbors, NNFloatArray{state}, k, r); + roadmap.nearest(neighbors, state, k, r); for (const auto &[neighbor, distance] : neighbors) { - if (validate_motion(neighbor.as_vector(), temp, environment)) + if (validate_motion( + Configuration(state_index(neighbor)), temp, environment)) { node.neighbors.emplace_back( - typename RoadmapNode::Neighbor{ - static_cast(neighbor.index), distance}); - nodes[neighbor.index].neighbors.emplace_back( + typename RoadmapNode::Neighbor{static_cast(neighbor), distance}); + nodes[neighbor].neighbors.emplace_back( typename RoadmapNode::Neighbor{node.index, distance}); } } // Insert valid state into roadmap - after query to prevent returning self as // neighbor - roadmap.insert(NNNode{node.index, {state}}); + roadmap.insert(node.index, state); // Unify connected components if (node.neighbors.empty()) @@ -175,10 +187,11 @@ namespace vamp::planning } const auto &goal = goals[i - 1]; - auto parents = utils::astar(nodes, start, goal, state_index); + auto parents = utils::astar(nodes, start, goal, state_index, i); // NOTE: If the connected component check is correct, we can assume that a solution // was found by A* when we've reached this point - utils::recover_path(std::move(parents), state_index, result.path); + utils::recover_path(parents.get(), state_index, result.path, i); + result.solved = true; result.cost = nodes[i].g; result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); result.iterations = iter; @@ -202,7 +215,9 @@ namespace vamp::planning const RoadmapSettings &settings, typename RNG::Ptr rng) noexcept -> Roadmap { - NN roadmap; + NN roadmap; + roadmap.reserve(settings.max_samples); + roadmap.set_epsilon(settings.nn_epsilon); constexpr const unsigned int start_index = 0; constexpr const unsigned int goal_index = 1; @@ -210,12 +225,9 @@ namespace vamp::planning auto start_time = std::chrono::steady_clock::now(); std::size_t iter = 0; - std::vector, float>> neighbors; - typename Robot::template ConfigurationBlock temp_block; - auto states = std::unique_ptr( - vamp::utils::vector_alloc( - settings.max_samples * Configuration::num_scalars_rounded), - &free); + std::vector> neighbors; + auto states = vamp::utils::buffer_alloc( + settings.max_samples * Configuration::num_scalars_rounded); // TODO: Is it better to just use arrays for these since we're reserving full capacity // anyway? Test it! std::vector nodes; @@ -230,24 +242,13 @@ namespace vamp::planning goal.to_array(goal_state); nodes.emplace_back(start_index, start_index, 0.0); nodes.emplace_back(goal_index, goal_index); - roadmap.insert(NNNode{start_index, {state_index(start_index)}}); - roadmap.insert(NNNode{goal_index, {goal_state}}); + roadmap.insert(start_index, state_index(start_index)); + roadmap.insert(goal_index, goal_state); while (iter++ < settings.max_iterations and nodes.size() < settings.max_samples) { auto temp = rng->next(); - - // TODO: This is a gross hack to get around the instruction cache issue...I realized - // that edge sampling, while valid, wastes too much effort with our current - // validation API - - // Check sample validity - for (auto i = 0U; i < dimension; ++i) - { - temp_block[i] = temp.broadcast(i); - } - - if (not Robot::template fkcc(environment, temp_block)) + if (not validate_configuration(temp, environment)) { continue; } @@ -260,22 +261,22 @@ namespace vamp::planning // Add valid edges const auto k = settings.neighbor_params.max_neighbors(roadmap.size()); const auto r = settings.neighbor_params.neighbor_radius(roadmap.size()); - roadmap.nearest(neighbors, NNFloatArray{state}, k, r); + roadmap.nearest(neighbors, state, k, r); for (const auto &[neighbor, distance] : neighbors) { - if (validate_motion(neighbor.as_vector(), temp, environment)) + if (validate_motion( + Configuration(state_index(neighbor)), temp, environment)) { node.neighbors.emplace_back( - typename RoadmapNode::Neighbor{ - static_cast(neighbor.index), distance}); - nodes[neighbor.index].neighbors.emplace_back( + typename RoadmapNode::Neighbor{static_cast(neighbor), distance}); + nodes[neighbor].neighbors.emplace_back( typename RoadmapNode::Neighbor{node.index, distance}); } } // Insert valid state into roadmap - after query to prevent returning self as // neighbor - roadmap.insert(NNNode{node.index, {state}}); + roadmap.insert(node.index, state); } Roadmap result; diff --git a/src/impl/vamp/planning/roadmap.hh b/src/impl/vamp/planning/planners/roadmap.hh similarity index 98% rename from src/impl/vamp/planning/roadmap.hh rename to src/impl/vamp/planning/planners/roadmap.hh index cb7b963a..feb4ea2f 100644 --- a/src/impl/vamp/planning/roadmap.hh +++ b/src/impl/vamp/planning/planners/roadmap.hh @@ -170,6 +170,9 @@ namespace vamp::planning std::size_t max_samples = 100000; std::size_t batch_size = 1000; bool optimize = false; + + // (1 + epsilon)-approximate nearest-neighbor queries; 0 is exact. + float nn_epsilon = 0.; NeighborParams neighbor_params; }; diff --git a/src/impl/vamp/planning/planners/rrtc.hh b/src/impl/vamp/planning/planners/rrtc.hh new file mode 100644 index 00000000..3a37fcf7 --- /dev/null +++ b/src/impl/vamp/planning/planners/rrtc.hh @@ -0,0 +1,294 @@ +#pragma once + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace vamp::planning +{ + template + struct RRTC + { + using Configuration = typename Robot::Configuration; + static constexpr auto dimension = Robot::dimension; + using RNG = typename vamp::rng::RNG; + + template > + inline static auto solve( + const Configuration &start, + const Configuration &goal, + const collision::Environment> &environment, + const RRTCSettings &settings, + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult + { + return solve(start, std::vector{goal}, environment, settings, rng, lp); + } + + template > + inline static auto solve( + const Configuration &start, + const std::vector &goals, + const collision::Environment> &environment, + const RRTCSettings &settings, + typename RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) noexcept -> PlanningResult + { + PlanningResult result; + + NN start_tree; + NN goal_tree; + start_tree.reserve(settings.max_samples); + goal_tree.reserve(settings.max_samples); + start_tree.set_epsilon(settings.nn_epsilon); + goal_tree.set_epsilon(settings.nn_epsilon); + + constexpr const std::size_t start_index = 0; + + auto buffer = vamp::utils::buffer_alloc( + settings.max_samples * Configuration::num_scalars_rounded); + auto parents = vamp::utils::buffer_alloc(settings.max_samples); + auto radii = vamp::utils::buffer_alloc(settings.max_samples); + + const auto buffer_index = [&buffer](std::size_t index) -> float * + { return buffer.get() + index * Configuration::num_scalars_rounded; }; + + auto start_time = std::chrono::steady_clock::now(); + + constexpr auto unbounded = [] { return std::numeric_limits::infinity(); }; + + for (const auto &goal : goals) + { + const auto direct = lp.connect_within( + start, goal, environment, unbounded, std::numeric_limits::max()); + if (direct.status == SteerStatus::Reached) + { + result.path.emplace_back(start); + for (const auto &c : direct.waypoints) + { + result.path.emplace_back(c); + } + result.path.emplace_back(goal); + result.solved = true; + result.cost = result.path.cost(); + result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); + result.iterations = 0; + result.size.emplace_back(1); + result.size.emplace_back(1); + + return result; + } + } + + // trees + bool tree_a_is_start = not settings.start_tree_first; + auto *tree_a = (settings.start_tree_first) ? &goal_tree : &start_tree; + auto *tree_b = (settings.start_tree_first) ? &start_tree : &goal_tree; + + std::size_t iter = 0; + std::size_t free_index = start_index + 1; + + // add start to tree + start.to_array(buffer_index(start_index)); + start_tree.insert(start_index, buffer_index(start_index)); + parents[start_index] = start_index; + radii[start_index] = std::numeric_limits::max(); + + for (const auto &goal : goals) + { + goal.to_array(buffer_index(free_index)); + goal_tree.insert(free_index, buffer_index(free_index)); + parents[free_index] = free_index; + radii[free_index] = std::numeric_limits::max(); + free_index++; + } + + // Insert one waypoint into tree_a; nullopt when the sample limit is hit. + const auto add_node = [&](const Configuration &c, + std::size_t parent) -> std::optional + { + if (free_index >= settings.max_samples) + { + return std::nullopt; + } + + float *ptr = buffer_index(free_index); + c.to_array(ptr); + tree_a->insert(free_index, ptr); + parents[free_index] = parent; + radii[free_index] = std::numeric_limits::max(); + return free_index++; + }; + + while (iter++ < settings.max_iterations and free_index < settings.max_samples) + { + float asize = tree_a->size(); + float bsize = tree_b->size(); + float ratio = std::abs(asize - bsize) / asize; + + if ((not settings.balance) or ratio < settings.tree_ratio) + { + std::swap(tree_a, tree_b); + tree_a_is_start = not tree_a_is_start; + } + + auto temp = rng->next(); + typename Robot::ConfigurationBuffer temp_array; + temp.to_array(temp_array.data()); + + const auto nearest = tree_a->nearest(temp_array.data()); + if (not nearest) + { + continue; + } + + const auto [nearest_index, nearest_distance] = *nearest; + const auto nearest_radius = radii[nearest_index]; + + if (settings.dynamic_domain and nearest_radius < nearest_distance) + { + continue; + } + + const auto nearest_configuration = Configuration(buffer_index(nearest_index)); + + // Edges are executed from start to goal: goal-tree edges run child -> parent, + // so the local planner steers and validates along the local path in that + // direction (identical for symmetric interpolation). + const auto extension = lp.steer( + nearest_configuration, + temp, + nearest_distance, + settings.range, + tree_a_is_start, + environment); + + if (extension.status != SteerStatus::Trapped) + { + const auto [new_index, extend_truncated] = + insert_chain(extension.waypoints, nearest_index, add_node); + + if (settings.dynamic_domain and nearest_radius != std::numeric_limits::max()) + { + radii[nearest_index] *= (1 + settings.alpha); + } + + if (extend_truncated) + { + continue; + } + + // Extend to goal tree + const auto other_nearest = tree_b->nearest(buffer_index(new_index)); + if (not other_nearest) + { + continue; + } + + const auto [other_nearest_index, other_nearest_distance] = *other_nearest; + const auto other_nearest_configuration = Configuration(buffer_index(other_nearest_index)); + + const std::size_t n_extensions = std::ceil(other_nearest_distance / settings.range); + + std::size_t i_extension = 0; + bool connected = false; + Configuration prior = extension.endpoint(); + std::size_t prior_index = new_index; + while (not connected and i_extension < n_extensions and free_index < settings.max_samples) + { + const float remaining = robots::distance(prior, other_nearest_configuration); + const bool final_step = + (i_extension == n_extensions - 1) or (remaining <= settings.range); + + const auto step = lp.steer( + prior, + other_nearest_configuration, + remaining, + (final_step) ? std::numeric_limits::max() : settings.range, + tree_a_is_start, + environment); + + if (step.status == SteerStatus::Trapped) + { + break; + } + + const auto [step_index, step_truncated] = + insert_chain(step.waypoints, prior_index, add_node); + if (step_truncated) + { + break; + } + + connected = (step.status == SteerStatus::Reached); + i_extension++; + prior = step.endpoint(); + prior_index = step_index; + } + + if (connected) + { + auto current = free_index - 1; + result.path.emplace_back(buffer_index(current)); + while (parents[current] != current) + { + auto parent = parents[current]; + result.path.emplace_back(buffer_index(parent)); + result.cost += robots::distance( + result.path[result.path.size() - 1], result.path[result.path.size() - 2]); + current = parent; + } + + std::reverse(result.path.begin(), result.path.end()); + current = other_nearest_index; + + while (parents[current] != current) + { + auto parent = parents[current]; + result.path.emplace_back(buffer_index(parent)); + result.cost += robots::distance( + result.path[result.path.size() - 1], result.path[result.path.size() - 2]); + current = parent; + } + + if (not tree_a_is_start) + { + std::reverse(result.path.begin(), result.path.end()); + } + + result.solved = true; + break; + } + } + else if (settings.dynamic_domain) + { + if (nearest_radius == std::numeric_limits::max()) + { + radii[nearest_index] = settings.radius; + } + else + { + radii[nearest_index] = + std::max(radii[nearest_index] * (1.F - settings.alpha), settings.min_radius); + } + } + } + + result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); + result.iterations = iter; + result.size.emplace_back(start_tree.size()); + result.size.emplace_back(goal_tree.size()); + return result; + } + }; +} // namespace vamp::planning diff --git a/src/impl/vamp/planning/rrtc_settings.hh b/src/impl/vamp/planning/planners/rrtc_settings.hh similarity index 80% rename from src/impl/vamp/planning/rrtc_settings.hh rename to src/impl/vamp/planning/planners/rrtc_settings.hh index f48428a9..2b7ed237 100644 --- a/src/impl/vamp/planning/rrtc_settings.hh +++ b/src/impl/vamp/planning/planners/rrtc_settings.hh @@ -17,5 +17,8 @@ namespace vamp::planning std::size_t max_iterations = 100000; std::size_t max_samples = 100000; bool start_tree_first = true; + + // (1 + epsilon)-approximate nearest-neighbor queries; 0 is exact. + float nn_epsilon = 0.; }; } // namespace vamp::planning diff --git a/src/impl/vamp/planning/rrtc.hh b/src/impl/vamp/planning/rrtc.hh deleted file mode 100644 index 7c769d63..00000000 --- a/src/impl/vamp/planning/rrtc.hh +++ /dev/null @@ -1,247 +0,0 @@ -#pragma once - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -namespace vamp::planning -{ - template - struct RRTC - { - using Configuration = typename Robot::Configuration; - static constexpr auto dimension = Robot::dimension; - using RNG = typename vamp::rng::RNG; - - inline static auto solve( - const Configuration &start, - const Configuration &goal, - const collision::Environment> &environment, - const RRTCSettings &settings, - typename RNG::Ptr rng) noexcept -> PlanningResult - { - return solve(start, std::vector{goal}, environment, settings, rng); - } - - inline static auto solve( - const Configuration &start, - const std::vector &goals, - const collision::Environment> &environment, - const RRTCSettings &settings, - typename RNG::Ptr rng) noexcept -> PlanningResult - { - PlanningResult result; - - NN start_tree; - NN goal_tree; - - constexpr const std::size_t start_index = 0; - - auto buffer = std::unique_ptr( - vamp::utils::vector_alloc( - settings.max_samples * Configuration::num_scalars_rounded), - &free); - - const auto buffer_index = [&buffer](std::size_t index) -> float * - { return buffer.get() + index * Configuration::num_scalars_rounded; }; - - std::vector parents(settings.max_samples); - std::vector radii(settings.max_samples); - - auto start_time = std::chrono::steady_clock::now(); - - for (const auto &goal : goals) - { - if (validate_motion(start, goal, environment)) - { - result.path.emplace_back(start); - result.path.emplace_back(goal); - result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); - result.iterations = 0; - result.size.emplace_back(1); - result.size.emplace_back(1); - - return result; - } - } - - // trees - bool tree_a_is_start = not settings.start_tree_first; - auto *tree_a = (settings.start_tree_first) ? &goal_tree : &start_tree; - auto *tree_b = (settings.start_tree_first) ? &start_tree : &goal_tree; - - std::size_t iter = 0; - std::size_t free_index = start_index + 1; - - // add start to tree - start.to_array(buffer_index(start_index)); - start_tree.insert(NNNode{start_index, {buffer_index(start_index)}}); - parents[start_index] = start_index; - radii[start_index] = std::numeric_limits::max(); - - for (const auto &goal : goals) - { - goal.to_array(buffer_index(free_index)); - goal_tree.insert(NNNode{free_index, {buffer_index(free_index)}}); - parents[free_index] = free_index; - radii[free_index] = std::numeric_limits::max(); - free_index++; - } - - while (iter++ < settings.max_iterations and free_index < settings.max_samples) - { - float asize = tree_a->size(); - float bsize = tree_b->size(); - float ratio = std::abs(asize - bsize) / asize; - - if ((not settings.balance) or ratio < settings.tree_ratio) - { - std::swap(tree_a, tree_b); - tree_a_is_start = not tree_a_is_start; - } - - auto temp = rng->next(); - typename Robot::ConfigurationBuffer temp_array; - temp.to_array(temp_array.data()); - - const auto nearest = tree_a->nearest(NNFloatArray{temp_array.data()}); - if (not nearest) - { - continue; - } - - const auto &[nearest_node, nearest_distance] = *nearest; - const auto nearest_radius = radii[nearest_node.index]; - - if (settings.dynamic_domain and nearest_radius < nearest_distance) - { - continue; - } - - const auto nearest_configuration = nearest_node.as_vector(); - - auto nearest_vector = temp - nearest_configuration; - - bool reach = nearest_distance < settings.range; - auto extension_vector = - (reach) ? nearest_vector : nearest_vector * (settings.range / nearest_distance); - - if (validate_vector( - nearest_configuration, - extension_vector, - (reach) ? nearest_distance : settings.range, - environment)) - { - float *new_configuration_index = buffer_index(free_index); - auto new_configuration = nearest_configuration + extension_vector; - new_configuration.to_array(new_configuration_index); - tree_a->insert(NNNode{free_index, {new_configuration_index}}); - - parents[free_index] = nearest_node.index; - radii[free_index] = std::numeric_limits::max(); - - free_index++; - - if (settings.dynamic_domain and nearest_radius != std::numeric_limits::max()) - { - radii[nearest_node.index] *= (1 + settings.alpha); - } - - // Extend to goal tree - const auto other_nearest = - tree_b->nearest(NNFloatArray{new_configuration_index}); - if (not other_nearest) - { - continue; - } - - const auto &[other_nearest_node, other_nearest_distance] = *other_nearest; - const auto other_nearest_configuration = other_nearest_node.as_vector(); - auto other_nearest_vector = other_nearest_configuration - new_configuration; - - const std::size_t n_extensions = std::ceil(other_nearest_distance / settings.range); - const float increment_length = other_nearest_distance / static_cast(n_extensions); - auto increment = other_nearest_vector * (1.0F / static_cast(n_extensions)); - - std::size_t i_extension = 0; - auto prior = new_configuration; - for (; i_extension < n_extensions and - validate_vector( - prior, increment, increment_length, environment) and - free_index < settings.max_samples; - ++i_extension) - { - auto next = prior + increment; - float *next_index = buffer_index(free_index); - next.to_array(next_index); - tree_a->insert(NNNode{free_index, {next_index}}); - parents[free_index] = free_index - 1; - radii[free_index] = std::numeric_limits::max(); - - free_index++; - - prior = next; - } - - if (i_extension == n_extensions) // connected - { - auto current = free_index - 1; - result.path.emplace_back(buffer_index(current)); - while (parents[current] != current) - { - auto parent = parents[current]; - result.path.emplace_back(buffer_index(parent)); - result.cost += result.path[result.path.size() - 1].distance( - result.path[result.path.size() - 2]); - current = parent; - } - - std::reverse(result.path.begin(), result.path.end()); - current = other_nearest_node.index; - - while (parents[current] != current) - { - auto parent = parents[current]; - result.path.emplace_back(buffer_index(parent)); - result.cost += result.path[result.path.size() - 1].distance( - result.path[result.path.size() - 2]); - current = parent; - } - - if (not tree_a_is_start) - { - std::reverse(result.path.begin(), result.path.end()); - } - - break; - } - } - else if (settings.dynamic_domain) - { - if (nearest_radius == std::numeric_limits::max()) - { - radii[nearest_node.index] = settings.radius; - } - else - { - radii[nearest_node.index] = - std::max(radii[nearest_node.index] * (1.F - settings.alpha), settings.min_radius); - } - } - } - - result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); - result.iterations = iter; - result.size.emplace_back(start_tree.size()); - result.size.emplace_back(goal_tree.size()); - return result; - } - }; -} // namespace vamp::planning diff --git a/src/impl/vamp/planning/simplify.hh b/src/impl/vamp/planning/simplify.hh index 9d3043d0..2eae6784 100644 --- a/src/impl/vamp/planning/simplify.hh +++ b/src/impl/vamp/planning/simplify.hh @@ -1,42 +1,99 @@ #pragma once -#include +#include #include +#include +#include #include #include #include #include +#include #include namespace vamp::planning { - template + template + inline static auto segment_cost(const Path &path, std::size_t from, std::size_t to) -> float + { + float total = 0.F; + for (auto i = from; i < to; ++i) + { + total += cost(path[i], path[i + 1]); + } + + return total; + } + + template inline static auto smooth_bspline( Path &path, const collision::Environment> &environment, - const BSplineSettings &settings) -> bool + const BSplineSettings &settings, + const LocalPlanner &lp) -> bool { if (path.size() < 3) { return false; } + // Subdivided edges inherit validity from the edge they split only when + // interpolation is a straight line. + constexpr bool preserves_edges = robots::is_euclidean_v; + + // Subdivision can also lengthen the path even when every later midpoint move is + // cost-nonincreasing, so snapshot the input and revert the whole pass if it + // does not pay off. + [[maybe_unused]] Path original; + [[maybe_unused]] float original_cost = 0.F; + if constexpr (not preserves_edges) + { + original = path; + original_cost = path.cost(); + } + bool changed = false; for (auto step = 0U; step < settings.max_steps; ++step) { - path.subdivide(); + // Bail out (reverting this step's subdivision) unless every new edge + // revalidates. + if constexpr (not preserves_edges) + { + auto backup = path; + path.subdivide(); + + bool admitted = true; + for (auto index = 1U; admitted and index < path.size(); index += 2) + { + admitted = lp.validate(path[index - 1], path[index], environment) and + lp.validate(path[index], path[index + 1], environment); + } + + if (not admitted) + { + path = std::move(backup); + break; + } + } + else + { + path.subdivide(); + } bool updated = false; for (auto index = 2U; index < path.size() - 1; index += 2) { - const auto temp_1 = path[index].interpolate(path[index - 1], settings.midpoint_interpolation); - const auto temp_2 = path[index].interpolate(path[index + 1], settings.midpoint_interpolation); - const auto midpoint = temp_1.interpolate(temp_2, 0.5); - - if (path[index].distance(midpoint) > settings.min_change and - validate_motion(path[index - 1], midpoint, environment) and - validate_motion(midpoint, path[index + 1], environment)) + const auto temp_1 = + robots::interpolate(path[index], path[index - 1], settings.midpoint_interpolation); + const auto temp_2 = + robots::interpolate(path[index], path[index + 1], settings.midpoint_interpolation); + auto midpoint = robots::interpolate(temp_1, temp_2, 0.5); + + if (robots::distance(path[index], midpoint) > settings.min_change and + cost_nonincreasing(path[index - 1], path[index], midpoint, path[index + 1]) and + lp.validate(path[index - 1], midpoint, environment) and + lp.validate(midpoint, path[index + 1], environment)) { path[index] = midpoint; changed |= (updated = true); @@ -49,15 +106,25 @@ namespace vamp::planning } } + if constexpr (not preserves_edges) + { + if (path.cost() > original_cost) + { + path = std::move(original); + return false; + } + } + return changed; } - template + template inline static auto reduce_path_vertices( Path &path, const collision::Environment> &environment, const ReduceSettings &settings, - const typename vamp::rng::RNG::Ptr rng) -> bool + const typename vamp::rng::RNG::Ptr rng, + const LocalPlanner &lp) -> bool { if (path.size() < 3) { @@ -68,7 +135,7 @@ namespace vamp::planning const auto max_empty_steps = (not settings.max_empty_steps) ? path.size() : settings.max_empty_steps; bool result = false; - for (auto i = 0U, no_change = 0U; i < max_steps or no_change < max_empty_steps; ++i, ++no_change) + for (auto i = 0U, no_change = 0U; i < max_steps and no_change < max_empty_steps; ++i, ++no_change) { int initial_size = path.size(); int max_n = initial_size - 1; @@ -101,9 +168,21 @@ namespace vamp::planning std::swap(point_0, point_1); } - if (validate_motion(path[point_0], path[point_1], environment)) + // Reject non-shrinking chains (see shortcut_path): every success resets + // no_change, so accepting growth would loop forever. The cost budget rejects + // chains that cost more than the segment despite having fewer states. + const auto extension = lp.connect_within( + path[point_0], + path[point_1], + environment, + [&] { return segment_cost(path, point_0, point_1); }, + static_cast(point_1 - point_0 - 1)); + + if (extension.status == SteerStatus::Reached) { path.erase(path.begin() + point_0 + 1, path.begin() + point_1); + path.insert( + path.begin() + point_0 + 1, extension.waypoints.begin(), extension.waypoints.end()); no_change = 0; result = true; } @@ -112,40 +191,83 @@ namespace vamp::planning return result; } - template + template inline static auto shortcut_path( Path &path, const collision::Environment> &environment, - const ShortcutSettings & /*settings*/) -> bool + const ShortcutSettings & /*settings*/, + const LocalPlanner &lp) -> bool { if (path.size() < 3) { return false; } + // Deterministic longest-first shortcutting: rank the current path edges by + // planning::cost and try to collapse the widest valid skip starting from the + // most expensive edge. After each successful shortcut the ranking changes, so we + // re-score and re-sort. Terminates because every iteration either shrinks the path + // by >= 1 or exits: shortcuts whose emitted waypoint chain does not shrink the + // segment are rejected, since accepting them would grow the path and re-shortcut + // its own output forever. bool result = false; - for (auto i = 0U; i < path.size() - 2; ++i) + while (path.size() >= 3) { - for (auto j = path.size() - 1; j > i + 1; --j) + std::vector> ranked; + ranked.reserve(path.size() - 1); + for (std::size_t i = 0; i + 1 < path.size(); ++i) + { + ranked.emplace_back(planning::cost(path[i], path[i + 1]), i); + } + std::sort( + ranked.begin(), ranked.end(), [](const auto &a, const auto &b) { return a.first > b.first; }); + + bool did_shortcut = false; + for (const auto &entry : ranked) { - if (validate_motion(path[i], path[j], environment)) + const std::size_t i = entry.second; + for (auto j = path.size() - 1; j > i + 1; --j) + { + // The cost budget rejects chains that cost more than the segment + // despite having fewer states. + const auto extension = lp.connect_within( + path[i], + path[j], + environment, + [&] { return segment_cost(path, i, j); }, + j - i - 1); + + if (extension.status == SteerStatus::Reached) + { + path.erase(path.begin() + i + 1, path.begin() + j); + path.insert( + path.begin() + i + 1, extension.waypoints.begin(), extension.waypoints.end()); + result = true; + did_shortcut = true; + break; + } + } + if (did_shortcut) { - path.erase(path.begin() + i + 1, path.begin() + j); - result = true; break; } } + if (not did_shortcut) + { + break; + } } return result; } - template + template inline static auto perturb_path( Path &path, const collision::Environment> &environment, const PerturbSettings &settings, - const typename vamp::rng::RNG::Ptr rng) -> bool + const typename vamp::rng::RNG::Ptr rng, + const LocalPlanner &lp) -> bool { if (path.size() < 3) { @@ -164,19 +286,20 @@ namespace vamp::planning auto before_state = path[to_perturb_idx - 1]; auto after_state = path[to_perturb_idx + 1]; - float old_cost = perturb_state.distance(before_state) + perturb_state.distance(after_state); + float old_cost = + cost(before_state, perturb_state) + cost(perturb_state, after_state); for (auto attempt = 0U; attempt < settings.perturbation_attempts; ++attempt) { - auto perturbation = rng->next(); - Robot::scale_configuration(perturbation); + // next() already returns a joint-space configuration; do not rescale it. + const auto perturbation = rng->next(); + const auto new_state = + robots::interpolate(perturb_state, perturbation, settings.range); - const auto new_state = perturb_state.interpolate(perturbation, settings.range); - float new_cost = new_state.distance(before_state) + new_state.distance(after_state); + float new_cost = cost(before_state, new_state) + cost(new_state, after_state); - if (new_cost < old_cost and - validate_motion(before_state, new_state, environment) and - validate_motion(after_state, new_state, environment)) + if (new_cost < old_cost and lp.validate(before_state, new_state, environment) and + lp.validate(new_state, after_state, environment)) { no_change = 0; changed = true; @@ -189,42 +312,73 @@ namespace vamp::planning return changed; } - template + template < + typename Robot, + std::size_t rake, + std::size_t resolution, + typename LocalPlanner = UnconstrainedLocalPlanner> inline auto simplify( const Path &path, const collision::Environment> &environment, const SimplifySettings &settings, - const typename vamp::rng::RNG::Ptr rng) -> PlanningResult + const typename vamp::rng::RNG::Ptr rng, + const LocalPlanner &lp = LocalPlanner()) -> PlanningResult { auto start_time = std::chrono::steady_clock::now(); PlanningResult result; - const auto bspline = [&result, &environment, settings]() - { return smooth_bspline(result.path, environment, settings.bspline); }; - const auto reduce = [&result, &environment, settings, rng]() + const auto run = [&](SimplifyRoutine op) -> bool { - return reduce_path_vertices( - result.path, environment, settings.reduce, rng); - }; - const auto shortcut = [&result, &environment, settings]() - { return shortcut_path(result.path, environment, settings.shortcut); }; - const auto perturb = [&result, &environment, settings, rng]() - { return perturb_path(result.path, environment, settings.perturb, rng); }; - - const std::map> operations = { - {BSPLINE, bspline}, - {REDUCE, reduce}, - {SHORTCUT, shortcut}, - {PERTURB, perturb}, + switch (op) + { + case BSPLINE: + return smooth_bspline( + result.path, environment, settings.bspline, lp); + case REDUCE: + return reduce_path_vertices( + result.path, environment, settings.reduce, rng, lp); + case SHORTCUT: + return shortcut_path( + result.path, environment, settings.shortcut, lp); + case PERTURB: + return perturb_path( + result.path, environment, settings.perturb, rng, lp); + } + + return false; }; - // Check if straight line is valid - if (path.size() == 2 or (path.size() > 2 and validate_motion( - path.front(), path.back(), environment))) + // Check if the direct local path from start to goal is valid; the cost budget + // rejects a direct chain that costs more than the input path. + if (path.size() > 2) + { + const auto direct = lp.connect_within( + path.front(), + path.back(), + environment, + [&] { return path.cost(); }, + std::numeric_limits::max()); + + if (direct.status == SteerStatus::Reached) + { + result.path.emplace_back(path.front()); + for (const auto &c : direct.waypoints) + { + result.path.emplace_back(c); + } + result.path.emplace_back(path.back()); + result.solved = true; + result.cost = result.path.cost(); + result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); + return result; + } + } + else if (path.size() == 2) { - result.path.emplace_back(path.front()); - result.path.emplace_back(path.back()); + result.path = path; + result.solved = true; + result.cost = result.path.cost(); result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); return result; } @@ -245,7 +399,7 @@ namespace vamp::planning bool any = false; for (const auto &op : settings.operations) { - any |= operations.find(op)->second(); + any |= run(op); } if (not any) @@ -255,6 +409,8 @@ namespace vamp::planning } } + result.solved = true; + result.cost = result.path.cost(); result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); return result; } diff --git a/src/impl/vamp/planning/utils.hh b/src/impl/vamp/planning/utils.hh index 9ab52085..45567784 100644 --- a/src/impl/vamp/planning/utils.hh +++ b/src/impl/vamp/planning/utils.hh @@ -7,9 +7,10 @@ #include -#include +#include #include -#include +#include +#include #include namespace vamp::planning::utils @@ -72,12 +73,15 @@ namespace vamp::planning::utils } }; - template + // Parent-array convention shared by astar and recover_path: unreached nodes hold + // max(), the root (the start, index 0) is its own parent. + template inline auto astar( std::vector &graph, const Configuration &start, const Configuration &goal, - const StateLookupFn &state_index) noexcept -> std::unique_ptr + const StateLookupFn &state_index, + unsigned int goal_index = 1) noexcept -> std::unique_ptr { // TODO: With C++20, use make_unique_for_overwrite here auto parents = std::make_unique(graph.size()); @@ -88,12 +92,11 @@ namespace vamp::planning::utils expanded[i] = false; } - // NOTE: Assumes that the start is the first element of the graph and the goal is the second + // NOTE: Assumes that the start is the first element of the graph constexpr const unsigned int start_index = 0; - constexpr const unsigned int goal_index = 1; parents[start_index] = start_index; std::vector open_set; - open_set.emplace_back(utils::QueueNode{start_index, goal.distance(start)}); + open_set.emplace_back(utils::QueueNode{start_index, robots::distance(goal, start)}); Configuration temp; while (not open_set.empty()) { @@ -124,7 +127,7 @@ namespace vamp::planning::utils parents[neighbor_index] = current_node.index; temp = state_index(neighbor_index); open_set.emplace_back( - utils::QueueNode{neighbor_index, neighbor_node.g + goal.distance(temp)}); + utils::QueueNode{neighbor_index, neighbor_node.g + robots::distance(goal, temp)}); } pdqsort( @@ -141,15 +144,16 @@ namespace vamp::planning::utils return parents; } + // Walk the parent array from goal_index back to the root (the root is its own + // parent), emitting the path in start-to-goal order. The goal must have been + // reached: unreached entries hold max() and are not valid to walk from. template inline void recover_path( - const std::unique_ptr parents, + const unsigned int *parents, const StateLookupFn &state_index, - Path &path) noexcept + Path &path, + unsigned int goal_index = 1) noexcept { - // NOTE: Assumes that the start is the first element of the graph and the goal is the second - constexpr const unsigned int start_index = 0; - constexpr const unsigned int goal_index = 1; auto current_index = goal_index; while (parents[current_index] != current_index) { @@ -157,45 +161,7 @@ namespace vamp::planning::utils current_index = parents[current_index]; } - path.emplace_back(state_index(start_index)); - std::reverse(path.begin(), path.end()); - } - - template - inline void recover_path( - const std::vector &parents, - const StateLookupFn &state_index, - Path &path) noexcept - { - // NOTE: Assumes that the start is the first element of the graph and the goal is the second - constexpr const unsigned int start_index = 0; - constexpr const unsigned int goal_index = 1; - auto current_index = goal_index; - while (parents[current_index] != std::numeric_limits::max()) - { - path.emplace_back(state_index(current_index)); - current_index = parents[current_index]; - } - path.emplace_back(state_index(start_index)); - std::reverse(path.begin(), path.end()); - } - - inline auto recover_path_indices(const std::unique_ptr parents) noexcept - -> std::vector - { - // NOTE: Assumes that the start is the first element of the graph and the goal is the second - constexpr const unsigned int start_index = 0; - constexpr const unsigned int goal_index = 1; - auto current_index = goal_index; - std::vector path; - while (parents[current_index] != current_index) - { - path.emplace_back(current_index); - current_index = parents[current_index]; - } - - path.emplace_back(start_index); + path.emplace_back(state_index(current_index)); std::reverse(path.begin(), path.end()); - return path; } } // namespace vamp::planning::utils diff --git a/src/impl/vamp/planning/validate.hh b/src/impl/vamp/planning/validate.hh index 2fd9a200..9dbbfcf5 100644 --- a/src/impl/vamp/planning/validate.hh +++ b/src/impl/vamp/planning/validate.hh @@ -9,6 +9,16 @@ namespace vamp::planning { + // Default accept predicate: accepts every candidate. + struct AlwaysTrue + { + template + constexpr auto operator()(const T &) const noexcept -> bool + { + return true; + } + }; + template inline constexpr auto generate_percents(std::index_sequence) -> std::array { @@ -28,16 +38,37 @@ namespace vamp::planning const collision::Environment> &environment, const typename Robot::template ConfigurationBlock &block) noexcept -> bool { - return (environment.attachments) ? Robot::template fkcc_attach(environment, block) : - Robot::template fkcc(environment, block); + return (not environment.attachments.empty()) ? Robot::template fkcc_attach(environment, block) : + Robot::template fkcc(environment, block); } - template + // Collision-check a single configuration by broadcasting it across every rake lane + // and running the fused FK+CC kernel once. + template + inline auto validate_configuration( + const typename Robot::Configuration &configuration, + const collision::Environment> &environment) noexcept -> bool + { + typename Robot::template ConfigurationBlock block; + for (auto i = 0U; i < Robot::dimension; ++i) + { + block[i] = configuration.broadcast(i); + } + + return fkcc_block(environment, block); + } + + // `block_accept` is invoked on every interpolated sample block before the collision + // check; returning false invalidates the motion. All rake lanes of every block are + // legitimate samples of the motion (trailing batches backstep over earlier ones), so + // the predicate must judge all lanes. The default accepts everything at zero cost. + template inline constexpr auto validate_vector( const typename Robot::Configuration &start, const typename Robot::Configuration &vector, float distance, - const collision::Environment> &environment) -> bool + const collision::Environment> &environment, + const BlockAccept &block_accept = BlockAccept()) -> bool { // TODO: Fix use of reinterpret_cast in pack() so that this can be constexpr const auto percents = FloatVector(Percents::percents); @@ -52,7 +83,7 @@ namespace vamp::planning const std::size_t n = std::max(std::ceil(distance / static_cast(rake) * resolution), 1.F); - bool valid = fkcc_block(environment, block); + bool valid = block_accept(block) and fkcc_block(environment, block); if (not valid or n == 1) { return valid; @@ -66,7 +97,7 @@ namespace vamp::planning block[j] = block[j] - backstep.broadcast(j); } - bool valid = fkcc_block(environment, block); + bool valid = block_accept(block) and fkcc_block(environment, block); if (not valid) { return false; @@ -76,22 +107,24 @@ namespace vamp::planning return true; } - template + template inline constexpr auto validate_motion( const typename Robot::Configuration &start, const typename Robot::Configuration &goal, - const collision::Environment> &environment) -> bool + const collision::Environment> &environment, + const BlockAccept &block_accept = BlockAccept()) -> bool { if constexpr (robots::is_euclidean_v) { auto vector = goal - start; - return validate_vector(start, vector, vector.l2_norm(), environment); + return validate_vector( + start, vector, vector.l2_norm(), environment, block_accept); } else { // Joint-aware motion validation: interpolate via Robot::interpolate_block. // Total sub-states needed: ceil(distance * resolution); processed in batches of `rake`. - const float distance = Robot::distance(start, goal); + const float distance = robots::distance(start, goal); const std::size_t n = std::max(std::ceil(distance / static_cast(rake) * resolution), 1.F); const auto percents = FloatVector(Percents::percents); const auto t_step = FloatVector::fill(1.F / static_cast(rake * n)); @@ -100,7 +133,7 @@ namespace vamp::planning auto t_block = percents; Robot::template interpolate_block(start, goal, t_block, block); - bool valid = fkcc_block(environment, block); + bool valid = block_accept(block) and fkcc_block(environment, block); if (not valid or n == 1) { return valid; @@ -111,7 +144,7 @@ namespace vamp::planning t_block = t_block - t_step; Robot::template interpolate_block(start, goal, t_block, block); - valid = fkcc_block(environment, block); + valid = block_accept(block) and fkcc_block(environment, block); if (not valid) { return false; diff --git a/src/impl/vamp/robots/bimanual_iiwa_tool.hh b/src/impl/vamp/robots/bimanual_iiwa_tool.hh new file mode 100644 index 00000000..4aaafd5c --- /dev/null +++ b/src/impl/vamp/robots/bimanual_iiwa_tool.hh @@ -0,0 +1,225587 @@ +#pragma once + +#include +#include +#include +#include + +// NOLINTBEGIN(*-magic-numbers) +namespace vamp::robots +{ +struct BimanualIiwaTool +{ + static constexpr const char *name = "bimanual_iiwa_tool"; + static constexpr std::size_t dimension = 14; + static constexpr std::size_t sample_dimension = 14; + static constexpr std::size_t n_spheres = 100; + static constexpr float min_radius = 0.026925290003418922; + static constexpr float max_radius = 0.10722988098859787; + static constexpr float min_radius_mobile = 0.026925290003418922; + static constexpr float max_radius_mobile = 0.10722988098859787; + static constexpr float min_bounding_radius_mobile = 0.06798327714204788; + static constexpr float max_bounding_radius_mobile = 0.17503377795219421; + static constexpr std::array base_position = { 0.0, 0.3824999928474426, 0.1574999988079071 }; + static constexpr std::size_t resolution = 32; + static constexpr bool euclidean = true; + + static constexpr std::array joint_names = {"iiwa_left/iiwa_joint_1", "iiwa_left/iiwa_joint_2", "iiwa_left/iiwa_joint_3", "iiwa_left/iiwa_joint_4", "iiwa_left/iiwa_joint_5", "iiwa_left/iiwa_joint_6", "iiwa_left/iiwa_joint_7", "iiwa_right/iiwa_joint_1", "iiwa_right/iiwa_joint_2", "iiwa_right/iiwa_joint_3", "iiwa_right/iiwa_joint_4", "iiwa_right/iiwa_joint_5", "iiwa_right/iiwa_joint_6", "iiwa_right/iiwa_joint_7"}; + static constexpr const char *end_effector = "wsg_left/tool"; + static constexpr std::array end_effectors = {"wsg_left/tool", "wsg_right/tool"}; + + // Frame names, indexed by the link ids used below and by Attachment::allowed_links. + static constexpr std::array link_names = {"universe", "world", "iiwa_left/weld_base", "iiwa_left/base", "iiwa_left/iiwa_base_joint", "iiwa_left/iiwa_link_0", "iiwa_left/iiwa_joint_1", "iiwa_left/iiwa_link_1", "iiwa_left/iiwa_joint_2", "iiwa_left/iiwa_link_2", "iiwa_left/iiwa_joint_3", "iiwa_left/iiwa_link_3", "iiwa_left/iiwa_joint_4", "iiwa_left/iiwa_link_4", "iiwa_left/iiwa_joint_5", "iiwa_left/iiwa_link_5", "iiwa_left/iiwa_joint_6", "iiwa_left/iiwa_link_6", "iiwa_left/iiwa_joint_7", "iiwa_left/iiwa_link_7", "iiwa_left/iiwa_joint_ee", "iiwa_left/iiwa_link_ee_kuka", "iiwa_left/tool0_joint", "iiwa_left/iiwa_link_ee", "wsg_left/weld_body", "wsg_left/body", "wsg_left/left_finger_sliding_joint", "wsg_left/left_finger", "wsg_left/right_finger_sliding_joint", "wsg_left/right_finger", "wsg_left/tool_joint", "wsg_left/tool", "iiwa_right/weld_base", "iiwa_right/base", "iiwa_right/iiwa_base_joint", "iiwa_right/iiwa_link_0", "iiwa_right/iiwa_joint_1", "iiwa_right/iiwa_link_1", "iiwa_right/iiwa_joint_2", "iiwa_right/iiwa_link_2", "iiwa_right/iiwa_joint_3", "iiwa_right/iiwa_link_3", "iiwa_right/iiwa_joint_4", "iiwa_right/iiwa_link_4", "iiwa_right/iiwa_joint_5", "iiwa_right/iiwa_link_5", "iiwa_right/iiwa_joint_6", "iiwa_right/iiwa_link_6", "iiwa_right/iiwa_joint_7", "iiwa_right/iiwa_link_7", "iiwa_right/iiwa_joint_ee", "iiwa_right/iiwa_link_ee_kuka", "iiwa_right/tool0_joint", "iiwa_right/iiwa_link_ee", "wsg_right/weld_body", "wsg_right/body", "wsg_right/left_finger_sliding_joint", "wsg_right/left_finger", "wsg_right/right_finger_sliding_joint", "wsg_right/right_finger", "wsg_right/tool_joint", "wsg_right/tool"}; + + // Pairs of links (a <= b, a == b included) that are never self-collision checked, i.e. links that + // may touch each other. An attachment that is allowed to touch a link is also allowed to touch these. + static constexpr std::array, 61> exempt_link_pairs = { + std::array{ 5, 5 }, + std::array{ 5, 7 }, + std::array{ 5, 9 }, + std::array{ 5, 11 }, + std::array{ 5, 35 }, + std::array{ 7, 7 }, + std::array{ 7, 9 }, + std::array{ 7, 11 }, + std::array{ 9, 9 }, + std::array{ 9, 11 }, + std::array{ 11, 11 }, + std::array{ 11, 13 }, + std::array{ 13, 13 }, + std::array{ 13, 15 }, + std::array{ 13, 17 }, + std::array{ 13, 19 }, + std::array{ 15, 15 }, + std::array{ 15, 17 }, + std::array{ 15, 19 }, + std::array{ 17, 17 }, + std::array{ 17, 19 }, + std::array{ 19, 19 }, + std::array{ 19, 25 }, + std::array{ 19, 27 }, + std::array{ 19, 29 }, + std::array{ 25, 25 }, + std::array{ 25, 27 }, + std::array{ 25, 29 }, + std::array{ 27, 27 }, + std::array{ 27, 29 }, + std::array{ 29, 29 }, + std::array{ 35, 35 }, + std::array{ 35, 37 }, + std::array{ 35, 39 }, + std::array{ 35, 41 }, + std::array{ 37, 37 }, + std::array{ 37, 39 }, + std::array{ 37, 41 }, + std::array{ 39, 39 }, + std::array{ 39, 41 }, + std::array{ 41, 41 }, + std::array{ 41, 43 }, + std::array{ 43, 43 }, + std::array{ 43, 45 }, + std::array{ 43, 47 }, + std::array{ 43, 49 }, + std::array{ 45, 45 }, + std::array{ 45, 47 }, + std::array{ 45, 49 }, + std::array{ 47, 47 }, + std::array{ 47, 49 }, + std::array{ 49, 49 }, + std::array{ 49, 55 }, + std::array{ 49, 57 }, + std::array{ 49, 59 }, + std::array{ 55, 55 }, + std::array{ 55, 57 }, + std::array{ 55, 59 }, + std::array{ 57, 57 }, + std::array{ 57, 59 }, + std::array{ 59, 59 }, + + }; + + using Configuration = FloatVector; + using ConfigurationArray = std::array; + using Sample = FloatVector; + + static constexpr std::array so3_offsets = { }; + + struct alignas(FloatVectorAlignment) ConfigurationBuffer + : std::array + { + }; + + template + using ConfigurationBlock = FloatVector; + + template + struct Spheres + { + FloatVector x; + FloatVector y; + FloatVector z; + FloatVector r; + }; + + alignas(Configuration::S::Alignment) static constexpr std::array s_m{ + 5.93411922454834, 4.188790321350098, 5.93411922454834, 4.188790321350098, 5.93411922454834, 4.188790321350098, 6.108652591705322, 5.93411922454834, 4.188790321350098, 5.93411922454834, 4.188790321350098, 5.93411922454834, 4.188790321350098, 6.108652591705322 + }; + + alignas(Configuration::S::Alignment) static constexpr std::array s_a{ + -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -3.054326295852661, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -3.054326295852661 + }; + + alignas(Configuration::S::Alignment) static constexpr std::array d_m{ + 0.16851699352264404, 0.23873241245746613, 0.16851699352264404, 0.23873241245746613, 0.16851699352264404, 0.23873241245746613, 0.16370223462581635, 0.16851699352264404, 0.23873241245746613, 0.16851699352264404, 0.23873241245746613, 0.16851699352264404, 0.23873241245746613, 0.16370223462581635 + }; + + static inline void scale_configuration(Configuration& q) noexcept + { + q = q * Configuration(s_m) + Configuration(s_a); + } + + static inline void descale_configuration(Configuration& q) noexcept + { + q = (q - Configuration(s_a)) * Configuration(d_m); + } + + template + static inline void scale_configuration_block(ConfigurationBlock &q) noexcept + { + q[0] = -2.96705961227417 + (q[0] * 5.93411922454834); +q[1] = -2.094395160675049 + (q[1] * 4.188790321350098); +q[2] = -2.96705961227417 + (q[2] * 5.93411922454834); +q[3] = -2.094395160675049 + (q[3] * 4.188790321350098); +q[4] = -2.96705961227417 + (q[4] * 5.93411922454834); +q[5] = -2.094395160675049 + (q[5] * 4.188790321350098); +q[6] = -3.054326295852661 + (q[6] * 6.108652591705322); +q[7] = -2.96705961227417 + (q[7] * 5.93411922454834); +q[8] = -2.094395160675049 + (q[8] * 4.188790321350098); +q[9] = -2.96705961227417 + (q[9] * 5.93411922454834); +q[10] = -2.094395160675049 + (q[10] * 4.188790321350098); +q[11] = -2.96705961227417 + (q[11] * 5.93411922454834); +q[12] = -2.094395160675049 + (q[12] * 4.188790321350098); +q[13] = -3.054326295852661 + (q[13] * 6.108652591705322); + + } + + template + static inline void descale_configuration_block(ConfigurationBlock & q) noexcept + { + q[0] = 0.16851699352264404 * (q[0] - -2.96705961227417); +q[1] = 0.23873241245746613 * (q[1] - -2.094395160675049); +q[2] = 0.16851699352264404 * (q[2] - -2.96705961227417); +q[3] = 0.23873241245746613 * (q[3] - -2.094395160675049); +q[4] = 0.16851699352264404 * (q[4] - -2.96705961227417); +q[5] = 0.23873241245746613 * (q[5] - -2.094395160675049); +q[6] = 0.16370223462581635 * (q[6] - -3.054326295852661); +q[7] = 0.16851699352264404 * (q[7] - -2.96705961227417); +q[8] = 0.23873241245746613 * (q[8] - -2.094395160675049); +q[9] = 0.16851699352264404 * (q[9] - -2.96705961227417); +q[10] = 0.23873241245746613 * (q[10] - -2.094395160675049); +q[11] = 0.16851699352264404 * (q[11] - -2.96705961227417); +q[12] = 0.23873241245746613 * (q[12] - -2.094395160675049); +q[13] = 0.16370223462581635 * (q[13] - -3.054326295852661); + + } + + inline static auto space_measure() noexcept -> float + { + return 8801570816.0; + } + + alignas(Configuration::S::Alignment) static constexpr std::array lower_bound{ + -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -3.054326295852661, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -2.96705961227417, -2.094395160675049, -3.054326295852661 + }; + + alignas(Configuration::S::Alignment) static constexpr std::array upper_bound{ + 2.96705961227417, 2.094395160675049, 2.96705961227417, 2.094395160675049, 2.96705961227417, 2.094395160675049, 3.054326295852661, 2.96705961227417, 2.094395160675049, 2.96705961227417, 2.094395160675049, 2.96705961227417, 2.094395160675049, 3.054326295852661 + }; + + static inline auto in_bounds(const Configuration &x) -> bool + { + return (x <= Configuration(upper_bound)).all() and (x >= Configuration(lower_bound)).all(); + } + + static inline auto sample(const Sample &x_in) -> Configuration + { + + // Euclidean fast path: same affine map as scale_configuration, + // operating on the packed FloatVector in one SIMD step. Sample and + // Configuration alias to the same FloatVector type when Euclidean. + Configuration q = x_in; + scale_configuration(q); + return q; + + } + + static inline auto distance(const Configuration &a_in, const Configuration &b_in) -> float + { + + return a_in.distance(b_in); + + } + + static inline auto interpolate(const Configuration &a_in, const Configuration &b_in, float t) -> Configuration + { + + return a_in.interpolate(b_in, t); + + } + + template + static inline void interpolate_block( + const Configuration &a, + const Configuration &b, + const FloatVector &t, + ConfigurationBlock &out) noexcept + { + // V is referenced by the SIMD-mask form emitted by LanguageCVampBlock + // for non-Euclidean robots; constants and operands get wrapped as + // V(x).blend(V(y), (V(...) CMP V(...))) so .blend() always has a + // vector receiver. + using V = FloatVector; + + out[0] = a.broadcast(0) + t * (b.broadcast(0) - a.broadcast(0)); + out[1] = a.broadcast(1) + t * (b.broadcast(1) - a.broadcast(1)); + out[2] = a.broadcast(2) + t * (b.broadcast(2) - a.broadcast(2)); + out[3] = a.broadcast(3) + t * (b.broadcast(3) - a.broadcast(3)); + out[4] = a.broadcast(4) + t * (b.broadcast(4) - a.broadcast(4)); + out[5] = a.broadcast(5) + t * (b.broadcast(5) - a.broadcast(5)); + out[6] = a.broadcast(6) + t * (b.broadcast(6) - a.broadcast(6)); + out[7] = a.broadcast(7) + t * (b.broadcast(7) - a.broadcast(7)); + out[8] = a.broadcast(8) + t * (b.broadcast(8) - a.broadcast(8)); + out[9] = a.broadcast(9) + t * (b.broadcast(9) - a.broadcast(9)); + out[10] = a.broadcast(10) + t * (b.broadcast(10) - a.broadcast(10)); + out[11] = a.broadcast(11) + t * (b.broadcast(11) - a.broadcast(11)); + out[12] = a.broadcast(12) + t * (b.broadcast(12) - a.broadcast(12)); + out[13] = a.broadcast(13) + t * (b.broadcast(13) - a.broadcast(13)); + + } + + template + static inline void sphere_fk(const ConfigurationBlock &x, Spheres &out) noexcept + { + std::array, 20> v; + std::array, 400> y; + + v[0] = cos(x[0]); + v[1] = sin(x[0]); + v[2] = 0. - v[1]; + y[16] = -0.0304988883435726 * v[0] + -0.0173739213496447 * v[2]; + y[17] = -0.0304988883435726 * v[1] + -0.0173739213496447 * v[0]; + y[20] = 0.0376833528280258 * v[0] + -0.0566041171550751 * v[2]; + y[21] = 0.0376833528280258 * v[1] + -0.0566041171550751 * v[0]; + y[24] = 0.053051695227623 * v[0] + 0.0300084203481674 * v[2]; + y[25] = 0.053051695227623 * v[1] + 0.0300084203481674 * v[0]; + y[28] = -0.0274603478610516 * v[0] + -0.0326122231781483 * v[2]; + y[29] = -0.0274603478610516 * v[1] + -0.0326122231781483 * v[0]; + y[32] = 0.0312839150428772 * v[0] + -0.0324193239212036 * v[2]; + y[33] = 0.0312839150428772 * v[1] + -0.0324193239212036 * v[0]; + v[3] = cos(x[1]); + v[4] = sin(x[1]); + v[5] = -1. * v[3] + 1.01273331923549e-24 * v[4]; + v[6] = -2.06823107110214e-13 * v[3] + -4.89652762780679e-12 * v[4]; + v[7] = v[0] * v[5] + v[2] * v[6]; + v[4] = -1.26217744835362e-29 * v[3] + v[4]; + v[3] = v[4] - 4.89663865010925e-12 * v[6]; + v[8] = 4.89663865010925e-12 * v[5] - -2.06823107110214e-13 * v[4]; + v[9] = v[0] * v[3] + v[2] * v[8]; + v[2] = -2.06823107110214e-13 * v[0] + v[2]; + y[36] = -0.0286435410380363 * v[7] + 0.0075924526900053 * v[9] + 0.0357369221746922 * v[2]; + v[10] = v[1] * v[5] + v[0] * v[6]; + v[8] = v[1] * v[3] + v[0] * v[8]; + v[1] = -2.06823107110214e-13 * v[1] + v[0]; + y[37] = -0.0286435410380363 * v[10] + 0.0075924526900053 * v[8] + 0.0357369221746922 * v[1]; + v[6] = -2.06823107110214e-13 * v[6] - v[5]; + y[38] = 0.36 + -0.0286435410380363 * v[4] + 1.74990794356544e-13 + 0.0075924526900053 * v[6]; + y[40] = 0.0302073135972023 * v[7] + -0.00406156480312347 * v[9] + 0.0409813597798347 * v[2]; + y[41] = 0.0302073135972023 * v[10] + -0.00406156480312347 * v[8] + 0.0409813597798347 * v[1]; + y[42] = 0.36 + 0.0302073135972023 * v[4] + 2.00670910231972e-13 + -0.00406156480312347 * v[6]; + y[44] = -0.0447303093969822 * v[7] + 0.13815912604332 * v[9] + -0.0262443888932467 * v[2]; + y[45] = -0.0447303093969822 * v[10] + 0.13815912604332 * v[8] + -0.0262443888932467 * v[1]; + y[46] = 0.36 + -0.0447303093969822 * v[4] + -1.2850928900317e-13 + 0.13815912604332 * v[6]; + y[48] = 0.0457500033080578 * v[7] + 0.142471238970757 * v[9] + -0.0185553897172213 * v[2]; + y[49] = 0.0457500033080578 * v[10] + 0.142471238970757 * v[8] + -0.0185553897172213 * v[1]; + y[50] = 0.36 + 0.0457500033080578 * v[4] + -9.08590384571854e-14 + 0.142471238970757 * v[6]; + y[52] = 0.00205385428853333 * v[7] + 0.132787525653839 * v[9] + 0.0468450263142586 * v[2]; + y[53] = 0.00205385428853333 * v[10] + 0.132787525653839 * v[8] + 0.0468450263142586 * v[1]; + y[54] = 0.36 + 0.00205385428853333 * v[4] + 2.29383166415784e-13 + 0.132787525653839 * v[6]; + v[5] = cos(x[2]); + v[0] = sin(x[2]); + v[3] = -1. * v[5] + 1.01273331923549e-24 * v[0]; + v[11] = -2.06823107110214e-13 * v[5] + -4.89652762780679e-12 * v[0]; + v[0] = -1.26217744835362e-29 * v[5] + v[0]; + v[5] = v[7] * v[3] + v[9] * v[11] + v[2] * v[0]; + v[12] = v[0] - 4.89663865010925e-12 * v[11]; + v[13] = 4.89663865010925e-12 * v[3] - -2.06823107110214e-13 * v[0]; + v[14] = -2.06823107110214e-13 * v[11] - v[3]; + v[15] = v[7] * v[12] + v[9] * v[13] + v[2] * v[14]; + v[2] = -2.06823107110214e-13 * v[7] + v[9] + 4.89663865010925e-12 * v[2]; + v[9] = 0.2045 * v[9]; + y[56] = -0.033751618117094 * v[5] + -0.0206236597150564 * v[15] + 0.0556587167084217 * v[2] + v[9]; + v[7] = v[10] * v[3] + v[8] * v[11] + v[1] * v[0]; + v[16] = v[10] * v[12] + v[8] * v[13] + v[1] * v[14]; + v[1] = -2.06823107110214e-13 * v[10] + v[8] + 4.89663865010925e-12 * v[1]; + v[8] = 0.2045 * v[8]; + y[57] = -0.033751618117094 * v[7] + -0.0206236597150564 * v[16] + 0.0556587167084217 * v[1] + v[8]; + v[0] = v[4] * v[3] + v[6] * v[11] + 4.89663865010925e-12 * v[0]; + v[14] = v[4] * v[12] + v[6] * v[13] + 4.89663865010925e-12 * v[14]; + v[4] = -2.06823107110214e-13 * v[4] + 2.39770700697438e-23 + v[6]; + v[6] = 0.36 + 0.2045 * v[6]; + y[58] = -0.033751618117094 * v[0] + -0.0206236597150564 * v[14] + 0.0556587167084217 * v[4] + v[6]; + y[60] = 0.036438126116991 * v[5] + -0.0216596964746714 * v[15] + 0.0589511506259441 * v[2] + v[9]; + y[61] = 0.036438126116991 * v[7] + -0.0216596964746714 * v[16] + 0.0589511506259441 * v[1] + v[8]; + y[62] = 0.036438126116991 * v[0] + -0.0216596964746714 * v[14] + 0.0589511506259441 * v[4] + v[6]; + y[64] = 0.00543839018791914 * v[5] + 0.0358658879995346 * v[15] + 0.0723318234086037 * v[2] + v[9]; + y[65] = 0.00543839018791914 * v[7] + 0.0358658879995346 * v[16] + 0.0723318234086037 * v[1] + v[8]; + y[66] = 0.00543839018791914 * v[0] + 0.0358658879995346 * v[14] + 0.0723318234086037 * v[4] + v[6]; + y[68] = -0.00150183925870806 * v[5] + 0.00477686012163758 * v[15] + 0.188644707202911 * v[2] + v[9]; + y[69] = -0.00150183925870806 * v[7] + 0.00477686012163758 * v[16] + 0.188644707202911 * v[1] + v[8]; + y[70] = -0.00150183925870806 * v[0] + 0.00477686012163758 * v[14] + 0.188644707202911 * v[4] + v[6]; + y[72] = -0.000443624390754849 * v[5] + 0.0609206445515156 * v[15] + 0.187817513942719 * v[2] + v[9]; + y[73] = -0.000443624390754849 * v[7] + 0.0609206445515156 * v[16] + 0.187817513942719 * v[1] + v[8]; + y[74] = -0.000443624390754849 * v[0] + 0.0609206445515156 * v[14] + 0.187817513942719 * v[4] + v[6]; + v[13] = cos(x[3]); + v[12] = sin(x[3]); + v[11] = 4.89663865010925e-12 * v[12]; + v[3] = v[5] * v[13] + v[15] * v[11] + v[2] * v[12]; + v[10] = -1. * v[12] - 4.89663865010925e-12 * v[11]; + v[17] = 4.89663865010925e-12 * v[13]; + v[18] = 0. - -1. * v[13]; + v[5] = v[5] * v[10] + v[15] * v[17] + v[2] * v[18]; + v[15] = -1. * v[15] + 4.89663865010925e-12 * v[2]; + v[9] = v[9] + 0.2155 * v[2]; + y[76] = 0.00209041242487729 * v[3] + 0.0127677032724023 * v[5] + 0.0110630923882127 * v[15] + v[9]; + v[2] = v[7] * v[13] + v[16] * v[11] + v[1] * v[12]; + v[7] = v[7] * v[10] + v[16] * v[17] + v[1] * v[18]; + v[16] = -1. * v[16] + 4.89663865010925e-12 * v[1]; + v[8] = v[8] + 0.2155 * v[1]; + y[77] = 0.00209041242487729 * v[2] + 0.0127677032724023 * v[7] + 0.0110630923882127 * v[16] + v[8]; + v[11] = v[0] * v[13] + v[14] * v[11] + v[4] * v[12]; + v[18] = v[0] * v[10] + v[14] * v[17] + v[4] * v[18]; + v[14] = -1. * v[14] + 4.89663865010925e-12 * v[4]; + v[6] = v[6] + 0.2155 * v[4]; + y[78] = 0.00209041242487729 * v[11] + 0.0127677032724023 * v[18] + 0.0110630923882127 * v[14] + v[6]; + y[80] = 0.00488302065059543 * v[3] + 0.0161912720650434 * v[5] + 0.0618039071559906 * v[15] + v[9]; + y[81] = 0.00488302065059543 * v[2] + 0.0161912720650434 * v[7] + 0.0618039071559906 * v[16] + v[8]; + y[82] = 0.00488302065059543 * v[11] + 0.0161912720650434 * v[18] + 0.0618039071559906 * v[14] + v[6]; + y[84] = -0.0348032154142857 * v[3] + 0.133986249566078 * v[5] + -0.0251118093729019 * v[15] + v[9]; + y[85] = -0.0348032154142857 * v[2] + 0.133986249566078 * v[7] + -0.0251118093729019 * v[16] + v[8]; + y[86] = -0.0348032154142857 * v[11] + 0.133986249566078 * v[18] + -0.0251118093729019 * v[14] + v[6]; + y[88] = 0.038326770067215 * v[3] + 0.133518978953362 * v[5] + -0.0277583207935095 * v[15] + v[9]; + y[89] = 0.038326770067215 * v[2] + 0.133518978953362 * v[7] + -0.0277583207935095 * v[16] + v[8]; + y[90] = 0.038326770067215 * v[11] + 0.133518978953362 * v[18] + -0.0277583207935095 * v[14] + v[6]; + y[92] = -0.00637074047699571 * v[3] + 0.12884546816349 * v[5] + 0.0382916443049908 * v[15] + v[9]; + y[93] = -0.00637074047699571 * v[2] + 0.12884546816349 * v[7] + 0.0382916443049908 * v[16] + v[8]; + y[94] = -0.00637074047699571 * v[11] + 0.12884546816349 * v[18] + 0.0382916443049908 * v[14] + v[6]; + v[4] = cos(x[4]); + v[17] = sin(x[4]); + v[10] = -1. * v[4] + 2.06823107110214e-13 * v[17]; + v[0] = 1.26217744835362e-29 * v[4] + 4.89663865010925e-12 * v[17]; + v[17] = 2.06823107110214e-13 * v[4] + v[17]; + v[4] = v[3] * v[10] + v[5] * v[0] + v[15] * v[17]; + v[12] = v[17] - -4.89652762780679e-12 * v[0]; + v[13] = -4.89652762780679e-12 * v[10] - -1.01273331923549e-24 * v[17]; + v[1] = -1.01273331923549e-24 * v[0] - v[10]; + v[19] = v[3] * v[12] + v[5] * v[13] + v[15] * v[1]; + v[15] = -1.01273331923549e-24 * v[3] + v[5] + -4.89652762780679e-12 * v[15]; + v[9] = v[9] + 0.1845 * v[5]; + y[96] = -0.0303262490779161 * v[4] + -0.0207324735820293 * v[19] + 0.0466873794794083 * v[15] + v[9]; + v[5] = v[2] * v[10] + v[7] * v[0] + v[16] * v[17]; + v[3] = v[2] * v[12] + v[7] * v[13] + v[16] * v[1]; + v[16] = -1.01273331923549e-24 * v[2] + v[7] + -4.89652762780679e-12 * v[16]; + v[8] = v[8] + 0.1845 * v[7]; + y[97] = -0.0303262490779161 * v[5] + -0.0207324735820293 * v[3] + 0.0466873794794083 * v[16] + v[8]; + v[17] = v[11] * v[10] + v[18] * v[0] + v[14] * v[17]; + v[1] = v[11] * v[12] + v[18] * v[13] + v[14] * v[1]; + v[14] = -1.01273331923549e-24 * v[11] + v[18] + -4.89652762780679e-12 * v[14]; + v[6] = v[6] + 0.1845 * v[18]; + y[98] = -0.0303262490779161 * v[17] + -0.0207324735820293 * v[1] + 0.0466873794794083 * v[14] + v[6]; + y[100] = 0.0382123328745365 * v[4] + -0.0229748375713825 * v[19] + 0.0462025664746761 * v[15] + v[9]; + y[101] = 0.0382123328745365 * v[5] + -0.0229748375713825 * v[3] + 0.0462025664746761 * v[16] + v[8]; + y[102] = 0.0382123328745365 * v[17] + -0.0229748375713825 * v[1] + 0.0462025664746761 * v[14] + v[6]; + y[104] = -0.029545271769166 * v[4] + 0.0435335896909237 * v[19] + 0.0515478737652302 * v[15] + v[9]; + y[105] = -0.029545271769166 * v[5] + 0.0435335896909237 * v[3] + 0.0515478737652302 * v[16] + v[8]; + y[106] = -0.029545271769166 * v[17] + 0.0435335896909237 * v[1] + 0.0515478737652302 * v[14] + v[6]; + y[108] = 0.0294575486332178 * v[4] + 0.0443899892270565 * v[19] + 0.0518434084951878 * v[15] + v[9]; + y[109] = 0.0294575486332178 * v[5] + 0.0443899892270565 * v[3] + 0.0518434084951878 * v[16] + v[8]; + y[110] = 0.0294575486332178 * v[17] + 0.0443899892270565 * v[1] + 0.0518434084951878 * v[14] + v[6]; + y[112] = -0.0226244386285543 * v[4] + 0.03036268055439 * v[19] + 0.143480017781258 * v[15] + v[9]; + y[113] = -0.0226244386285543 * v[5] + 0.03036268055439 * v[3] + 0.143480017781258 * v[16] + v[8]; + y[114] = -0.0226244386285543 * v[17] + 0.03036268055439 * v[1] + 0.143480017781258 * v[14] + v[6]; + y[116] = 0.0228122211992741 * v[4] + 0.0326673835515976 * v[19] + 0.144575268030167 * v[15] + v[9]; + y[117] = 0.0228122211992741 * v[5] + 0.0326673835515976 * v[3] + 0.144575268030167 * v[16] + v[8]; + y[118] = 0.0228122211992741 * v[17] + 0.0326673835515976 * v[1] + 0.144575268030167 * v[14] + v[6]; + y[120] = -0.000356095697497949 * v[4] + 0.0570880249142647 * v[19] + 0.213441297411919 * v[15] + v[9]; + y[121] = -0.000356095697497949 * v[5] + 0.0570880249142647 * v[3] + 0.213441297411919 * v[16] + v[8]; + y[122] = -0.000356095697497949 * v[17] + 0.0570880249142647 * v[1] + 0.213441297411919 * v[14] + v[6]; + v[18] = cos(x[5]); + v[11] = sin(x[5]); + v[13] = 4.89663865010925e-12 * v[11]; + v[12] = v[4] * v[18] + v[19] * v[13] + v[15] * v[11]; + v[0] = -1. * v[11] - 4.89663865010925e-12 * v[13]; + v[10] = 4.89663865010925e-12 * v[18]; + v[7] = 0. - -1. * v[18]; + v[4] = v[4] * v[0] + v[19] * v[10] + v[15] * v[7]; + v[19] = -1. * v[19] + 4.89663865010925e-12 * v[15]; + v[9] = v[9] + 0.2155 * v[15]; + y[124] = 0.00531387468799949 * v[12] + -0.0231041144579649 * v[4] + -0.0224952418357134 * v[19] + v[9]; + v[15] = v[5] * v[18] + v[3] * v[13] + v[16] * v[11]; + v[5] = v[5] * v[0] + v[3] * v[10] + v[16] * v[7]; + v[3] = -1. * v[3] + 4.89663865010925e-12 * v[16]; + v[8] = v[8] + 0.2155 * v[16]; + y[125] = 0.00531387468799949 * v[15] + -0.0231041144579649 * v[5] + -0.0224952418357134 * v[3] + v[8]; + v[13] = v[17] * v[18] + v[1] * v[13] + v[14] * v[11]; + v[7] = v[17] * v[0] + v[1] * v[10] + v[14] * v[7]; + v[1] = -1. * v[1] + 4.89663865010925e-12 * v[14]; + v[6] = v[6] + 0.2155 * v[14]; + y[126] = 0.00531387468799949 * v[13] + -0.0231041144579649 * v[7] + -0.0224952418357134 * v[1] + v[6]; + y[128] = 0.00424248585477471 * v[12] + -0.0304307378828526 * v[4] + 0.0232355650514364 * v[19] + v[9]; + y[129] = 0.00424248585477471 * v[15] + -0.0304307378828526 * v[5] + 0.0232355650514364 * v[3] + v[8]; + y[130] = 0.00424248585477471 * v[13] + -0.0304307378828526 * v[7] + 0.0232355650514364 * v[1] + v[6]; + y[132] = 0.00347242690622807 * v[12] + 0.0357604399323463 * v[4] + -0.0275979526340961 * v[19] + v[9]; + y[133] = 0.00347242690622807 * v[15] + 0.0357604399323463 * v[5] + -0.0275979526340961 * v[3] + v[8]; + y[134] = 0.00347242690622807 * v[13] + 0.0357604399323463 * v[7] + -0.0275979526340961 * v[1] + v[6]; + y[136] = -0.00440459558740258 * v[12] + 0.029050262644887 * v[4] + 0.0197553057223558 * v[19] + v[9]; + y[137] = -0.00440459558740258 * v[15] + 0.029050262644887 * v[5] + 0.0197553057223558 * v[3] + v[8]; + y[138] = -0.00440459558740258 * v[13] + 0.029050262644887 * v[7] + 0.0197553057223558 * v[1] + v[6]; + v[14] = cos(x[6]); + v[10] = sin(x[6]); + v[0] = -1. * v[14] + 2.06823107110214e-13 * v[10]; + v[17] = 1.26217744835362e-29 * v[14] + 4.89663865010925e-12 * v[10]; + v[10] = 2.06823107110214e-13 * v[14] + v[10]; + v[14] = v[12] * v[0] + v[4] * v[17] + v[19] * v[10]; + v[11] = v[10] - -4.89652762780679e-12 * v[17]; + v[18] = -4.89652762780679e-12 * v[0] - -1.01273331923549e-24 * v[10]; + v[16] = -1.01273331923549e-24 * v[17] - v[0]; + v[2] = v[12] * v[11] + v[4] * v[18] + v[19] * v[16]; + v[19] = -1.01273331923549e-24 * v[12] + v[4] + -4.89652762780679e-12 * v[19]; + v[9] = v[9] + 0.081 * v[4]; + y[140] = -0.0199781656265259 * v[14] + -0.0210024751722813 * v[2] + 0.015956237912178 * v[19] + v[9]; + v[4] = v[15] * v[0] + v[5] * v[17] + v[3] * v[10]; + v[12] = v[15] * v[11] + v[5] * v[18] + v[3] * v[16]; + v[3] = -1.01273331923549e-24 * v[15] + v[5] + -4.89652762780679e-12 * v[3]; + v[8] = v[8] + 0.081 * v[5]; + y[141] = -0.0199781656265259 * v[4] + -0.0210024751722813 * v[12] + 0.015956237912178 * v[3] + v[8]; + v[10] = v[13] * v[0] + v[7] * v[17] + v[1] * v[10]; + v[16] = v[13] * v[11] + v[7] * v[18] + v[1] * v[16]; + v[1] = -1.01273331923549e-24 * v[13] + v[7] + -4.89652762780679e-12 * v[1]; + v[6] = v[6] + 0.081 * v[7]; + y[142] = -0.0199781656265259 * v[10] + -0.0210024751722813 * v[16] + 0.015956237912178 * v[1] + v[6]; + y[144] = 0.0191871430724859 * v[14] + -0.0194653403013945 * v[2] + 0.0160456709563732 * v[19] + v[9]; + y[145] = 0.0191871430724859 * v[4] + -0.0194653403013945 * v[12] + 0.0160456709563732 * v[3] + v[8]; + y[146] = 0.0191871430724859 * v[10] + -0.0194653403013945 * v[16] + 0.0160456709563732 * v[1] + v[6]; + y[148] = -0.0201440621167421 * v[14] + 0.0189183782786131 * v[2] + 0.0165120754390955 * v[19] + v[9]; + y[149] = -0.0201440621167421 * v[4] + 0.0189183782786131 * v[12] + 0.0165120754390955 * v[3] + v[8]; + y[150] = -0.0201440621167421 * v[10] + 0.0189183782786131 * v[16] + 0.0165120754390955 * v[1] + v[6]; + y[152] = 0.0215731263160706 * v[14] + 0.0232260525226593 * v[2] + 0.00288419239223003 * v[19] + v[9]; + y[153] = 0.0215731263160706 * v[4] + 0.0232260525226593 * v[12] + 0.00288419239223003 * v[3] + v[8]; + y[154] = 0.0215731263160706 * v[10] + 0.0232260525226593 * v[16] + 0.00288419239223003 * v[1] + v[6]; + y[156] = 0.022247614338994 * v[14] + 0.0269022006541491 * v[2] + 0.0263182260096073 * v[19] + v[9]; + y[157] = 0.022247614338994 * v[4] + 0.0269022006541491 * v[12] + 0.0263182260096073 * v[3] + v[8]; + y[158] = 0.022247614338994 * v[10] + 0.0269022006541491 * v[16] + 0.0263182260096073 * v[1] + v[6]; + y[160] = -0.012587617063022 * v[14] + -0.0367822142356301 * v[2] + 0.0720952862501248 * v[19] + v[9]; + y[161] = -0.012587617063022 * v[4] + -0.0367822142356301 * v[12] + 0.0720952862501248 * v[3] + v[8]; + y[162] = -0.012587617063022 * v[10] + -0.0367822142356301 * v[16] + 0.0720952862501248 * v[1] + v[6]; + y[164] = -0.0156136708164741 * v[14] + -0.0359627567126562 * v[2] + 0.11080842852592 * v[19] + v[9]; + y[165] = -0.0156136708164741 * v[4] + -0.0359627567126562 * v[12] + 0.11080842852592 * v[3] + v[8]; + y[166] = -0.0156136708164741 * v[10] + -0.0359627567126562 * v[16] + 0.11080842852592 * v[1] + v[6]; + y[168] = 0.016497643534955 * v[14] + 0.0343992957979445 * v[2] + 0.0716519562155126 * v[19] + v[9]; + y[169] = 0.016497643534955 * v[4] + 0.0343992957979445 * v[12] + 0.0716519562155126 * v[3] + v[8]; + y[170] = 0.016497643534955 * v[10] + 0.0343992957979445 * v[16] + 0.0716519562155126 * v[1] + v[6]; + y[172] = 0.0156358738203146 * v[14] + 0.0351002731763063 * v[2] + 0.107802299931652 * v[19] + v[9]; + y[173] = 0.0156358738203146 * v[4] + 0.0351002731763063 * v[12] + 0.107802299931652 * v[3] + v[8]; + y[174] = 0.0156358738203146 * v[10] + 0.0351002731763063 * v[16] + 0.107802299931652 * v[1] + v[6]; + y[176] = -0.0233254483937131 * v[14] + -0.060328906390759 * v[2] + 0.229128492395143 * v[19] + v[9]; + y[177] = -0.0233254483937131 * v[4] + -0.060328906390759 * v[12] + 0.229128492395143 * v[3] + v[8]; + y[178] = -0.0233254483937131 * v[10] + -0.060328906390759 * v[16] + 0.229128492395143 * v[1] + v[6]; + y[180] = -0.0278344700254539 * v[14] + -0.0652496087446016 * v[2] + 0.174521849313737 * v[19] + v[9]; + y[181] = -0.0278344700254539 * v[4] + -0.0652496087446016 * v[12] + 0.174521849313737 * v[3] + v[8]; + y[182] = -0.0278344700254539 * v[10] + -0.0652496087446016 * v[16] + 0.174521849313737 * v[1] + v[6]; + y[184] = -0.0245009807652867 * v[14] + -0.0612167200448942 * v[2] + 0.137942649576717 * v[19] + v[9]; + y[185] = -0.0245009807652867 * v[4] + -0.0612167200448942 * v[12] + 0.137942649576717 * v[3] + v[8]; + y[186] = -0.0245009807652867 * v[10] + -0.0612167200448942 * v[16] + 0.137942649576717 * v[1] + v[6]; + y[188] = 0.0232954529086768 * v[14] + 0.060317004059848 * v[2] + 0.229128492395133 * v[19] + v[9]; + y[189] = 0.0232954529086768 * v[4] + 0.060317004059848 * v[12] + 0.229128492395133 * v[3] + v[8]; + y[190] = 0.0232954529086768 * v[10] + 0.060317004059848 * v[16] + 0.229128492395133 * v[1] + v[6]; + y[192] = 0.0277966318512907 * v[14] + 0.0652448814791517 * v[2] + 0.174521849313751 * v[19] + v[9]; + y[193] = 0.0277966318512907 * v[4] + 0.0652448814791517 * v[12] + 0.174521849313751 * v[3] + v[8]; + y[194] = 0.0277966318512907 * v[10] + 0.0652448814791517 * v[16] + 0.174521849313751 * v[1] + v[6]; + y[196] = 0.0244695698111778 * v[14] + 0.0612066888027197 * v[2] + 0.137942649576715 * v[19] + v[9]; + y[197] = 0.0244695698111778 * v[4] + 0.0612066888027197 * v[12] + 0.137942649576715 * v[3] + v[8]; + y[198] = 0.0244695698111778 * v[10] + 0.0612066888027197 * v[16] + 0.137942649576715 * v[1] + v[6]; + v[6] = cos(x[7]); + v[1] = sin(x[7]); + v[16] = 0. - v[1]; + y[216] = -0.0304988883435726 * v[6] + -0.0173739213496447 * v[16]; + y[217] = 0.765 + -0.0304988883435726 * v[1] + -0.0173739213496447 * v[6]; + y[220] = 0.0376833528280258 * v[6] + -0.0566041171550751 * v[16]; + y[221] = 0.765 + 0.0376833528280258 * v[1] + -0.0566041171550751 * v[6]; + y[224] = 0.053051695227623 * v[6] + 0.0300084203481674 * v[16]; + y[225] = 0.765 + 0.053051695227623 * v[1] + 0.0300084203481674 * v[6]; + y[228] = -0.0274603478610516 * v[6] + -0.0326122231781483 * v[16]; + y[229] = 0.765 + -0.0274603478610516 * v[1] + -0.0326122231781483 * v[6]; + y[232] = 0.0312839150428772 * v[6] + -0.0324193239212036 * v[16]; + y[233] = 0.765 + 0.0312839150428772 * v[1] + -0.0324193239212036 * v[6]; + v[10] = cos(x[8]); + v[8] = sin(x[8]); + v[3] = -1. * v[10] + 1.01273331923549e-24 * v[8]; + v[12] = -2.06823107110214e-13 * v[10] + -4.89652762780679e-12 * v[8]; + v[4] = v[6] * v[3] + v[16] * v[12]; + v[8] = -1.26217744835362e-29 * v[10] + v[8]; + v[10] = v[8] - 4.89663865010925e-12 * v[12]; + v[9] = 4.89663865010925e-12 * v[3] - -2.06823107110214e-13 * v[8]; + v[19] = v[6] * v[10] + v[16] * v[9]; + v[16] = -2.06823107110214e-13 * v[6] + v[16]; + y[236] = -0.0286435410380363 * v[4] + 0.0075924526900053 * v[19] + 0.0357369221746922 * v[16]; + v[2] = v[1] * v[3] + v[6] * v[12]; + v[9] = v[1] * v[10] + v[6] * v[9]; + v[1] = -2.06823107110214e-13 * v[1] + v[6]; + y[237] = 0.765 + -0.0286435410380363 * v[2] + 0.0075924526900053 * v[9] + 0.0357369221746922 * v[1]; + v[12] = -2.06823107110214e-13 * v[12] - v[3]; + y[238] = 0.36 + -0.0286435410380363 * v[8] + 1.74990794356544e-13 + 0.0075924526900053 * v[12]; + y[240] = 0.0302073135972023 * v[4] + -0.00406156480312347 * v[19] + 0.0409813597798347 * v[16]; + y[241] = 0.765 + 0.0302073135972023 * v[2] + -0.00406156480312347 * v[9] + 0.0409813597798347 * v[1]; + y[242] = 0.36 + 0.0302073135972023 * v[8] + 2.00670910231972e-13 + -0.00406156480312347 * v[12]; + y[244] = -0.0447303093969822 * v[4] + 0.13815912604332 * v[19] + -0.0262443888932467 * v[16]; + y[245] = 0.765 + -0.0447303093969822 * v[2] + 0.13815912604332 * v[9] + -0.0262443888932467 * v[1]; + y[246] = 0.36 + -0.0447303093969822 * v[8] + -1.2850928900317e-13 + 0.13815912604332 * v[12]; + y[248] = 0.0457500033080578 * v[4] + 0.142471238970757 * v[19] + -0.0185553897172213 * v[16]; + y[249] = 0.765 + 0.0457500033080578 * v[2] + 0.142471238970757 * v[9] + -0.0185553897172213 * v[1]; + y[250] = 0.36 + 0.0457500033080578 * v[8] + -9.08590384571854e-14 + 0.142471238970757 * v[12]; + y[252] = 0.00205385428853333 * v[4] + 0.132787525653839 * v[19] + 0.0468450263142586 * v[16]; + y[253] = 0.765 + 0.00205385428853333 * v[2] + 0.132787525653839 * v[9] + 0.0468450263142586 * v[1]; + y[254] = 0.36 + 0.00205385428853333 * v[8] + 2.29383166415784e-13 + 0.132787525653839 * v[12]; + v[3] = cos(x[9]); + v[6] = sin(x[9]); + v[10] = -1. * v[3] + 1.01273331923549e-24 * v[6]; + v[14] = -2.06823107110214e-13 * v[3] + -4.89652762780679e-12 * v[6]; + v[6] = -1.26217744835362e-29 * v[3] + v[6]; + v[3] = v[4] * v[10] + v[19] * v[14] + v[16] * v[6]; + v[7] = v[6] - 4.89663865010925e-12 * v[14]; + v[13] = 4.89663865010925e-12 * v[10] - -2.06823107110214e-13 * v[6]; + v[18] = -2.06823107110214e-13 * v[14] - v[10]; + v[11] = v[4] * v[7] + v[19] * v[13] + v[16] * v[18]; + v[16] = -2.06823107110214e-13 * v[4] + v[19] + 4.89663865010925e-12 * v[16]; + v[19] = 0.2045 * v[19]; + y[256] = -0.033751618117094 * v[3] + -0.0206236597150564 * v[11] + 0.0556587167084217 * v[16] + v[19]; + v[4] = v[2] * v[10] + v[9] * v[14] + v[1] * v[6]; + v[17] = v[2] * v[7] + v[9] * v[13] + v[1] * v[18]; + v[1] = -2.06823107110214e-13 * v[2] + v[9] + 4.89663865010925e-12 * v[1]; + v[9] = 0.765 + 0.2045 * v[9]; + y[257] = -0.033751618117094 * v[4] + -0.0206236597150564 * v[17] + 0.0556587167084217 * v[1] + v[9]; + v[6] = v[8] * v[10] + v[12] * v[14] + 4.89663865010925e-12 * v[6]; + v[18] = v[8] * v[7] + v[12] * v[13] + 4.89663865010925e-12 * v[18]; + v[8] = -2.06823107110214e-13 * v[8] + 2.39770700697438e-23 + v[12]; + v[12] = 0.36 + 0.2045 * v[12]; + y[258] = -0.033751618117094 * v[6] + -0.0206236597150564 * v[18] + 0.0556587167084217 * v[8] + v[12]; + y[260] = 0.036438126116991 * v[3] + -0.0216596964746714 * v[11] + 0.0589511506259441 * v[16] + v[19]; + y[261] = 0.036438126116991 * v[4] + -0.0216596964746714 * v[17] + 0.0589511506259441 * v[1] + v[9]; + y[262] = 0.036438126116991 * v[6] + -0.0216596964746714 * v[18] + 0.0589511506259441 * v[8] + v[12]; + y[264] = 0.00543839018791914 * v[3] + 0.0358658879995346 * v[11] + 0.0723318234086037 * v[16] + v[19]; + y[265] = 0.00543839018791914 * v[4] + 0.0358658879995346 * v[17] + 0.0723318234086037 * v[1] + v[9]; + y[266] = 0.00543839018791914 * v[6] + 0.0358658879995346 * v[18] + 0.0723318234086037 * v[8] + v[12]; + y[268] = -0.00150183925870806 * v[3] + 0.00477686012163758 * v[11] + 0.188644707202911 * v[16] + v[19]; + y[269] = -0.00150183925870806 * v[4] + 0.00477686012163758 * v[17] + 0.188644707202911 * v[1] + v[9]; + y[270] = -0.00150183925870806 * v[6] + 0.00477686012163758 * v[18] + 0.188644707202911 * v[8] + v[12]; + y[272] = -0.000443624390754849 * v[3] + 0.0609206445515156 * v[11] + 0.187817513942719 * v[16] + v[19]; + y[273] = -0.000443624390754849 * v[4] + 0.0609206445515156 * v[17] + 0.187817513942719 * v[1] + v[9]; + y[274] = -0.000443624390754849 * v[6] + 0.0609206445515156 * v[18] + 0.187817513942719 * v[8] + v[12]; + v[13] = cos(x[10]); + v[7] = sin(x[10]); + v[14] = 4.89663865010925e-12 * v[7]; + v[10] = v[3] * v[13] + v[11] * v[14] + v[16] * v[7]; + v[2] = -1. * v[7] - 4.89663865010925e-12 * v[14]; + v[0] = 4.89663865010925e-12 * v[13]; + v[5] = 0. - -1. * v[13]; + v[3] = v[3] * v[2] + v[11] * v[0] + v[16] * v[5]; + v[11] = -1. * v[11] + 4.89663865010925e-12 * v[16]; + v[19] = v[19] + 0.2155 * v[16]; + y[276] = 0.00209041242487729 * v[10] + 0.0127677032724023 * v[3] + 0.0110630923882127 * v[11] + v[19]; + v[16] = v[4] * v[13] + v[17] * v[14] + v[1] * v[7]; + v[4] = v[4] * v[2] + v[17] * v[0] + v[1] * v[5]; + v[17] = -1. * v[17] + 4.89663865010925e-12 * v[1]; + v[9] = v[9] + 0.2155 * v[1]; + y[277] = 0.00209041242487729 * v[16] + 0.0127677032724023 * v[4] + 0.0110630923882127 * v[17] + v[9]; + v[14] = v[6] * v[13] + v[18] * v[14] + v[8] * v[7]; + v[5] = v[6] * v[2] + v[18] * v[0] + v[8] * v[5]; + v[18] = -1. * v[18] + 4.89663865010925e-12 * v[8]; + v[12] = v[12] + 0.2155 * v[8]; + y[278] = 0.00209041242487729 * v[14] + 0.0127677032724023 * v[5] + 0.0110630923882127 * v[18] + v[12]; + y[280] = 0.00488302065059543 * v[10] + 0.0161912720650434 * v[3] + 0.0618039071559906 * v[11] + v[19]; + y[281] = 0.00488302065059543 * v[16] + 0.0161912720650434 * v[4] + 0.0618039071559906 * v[17] + v[9]; + y[282] = 0.00488302065059543 * v[14] + 0.0161912720650434 * v[5] + 0.0618039071559906 * v[18] + v[12]; + y[284] = -0.0348032154142857 * v[10] + 0.133986249566078 * v[3] + -0.0251118093729019 * v[11] + v[19]; + y[285] = -0.0348032154142857 * v[16] + 0.133986249566078 * v[4] + -0.0251118093729019 * v[17] + v[9]; + y[286] = -0.0348032154142857 * v[14] + 0.133986249566078 * v[5] + -0.0251118093729019 * v[18] + v[12]; + y[288] = 0.038326770067215 * v[10] + 0.133518978953362 * v[3] + -0.0277583207935095 * v[11] + v[19]; + y[289] = 0.038326770067215 * v[16] + 0.133518978953362 * v[4] + -0.0277583207935095 * v[17] + v[9]; + y[290] = 0.038326770067215 * v[14] + 0.133518978953362 * v[5] + -0.0277583207935095 * v[18] + v[12]; + y[292] = -0.00637074047699571 * v[10] + 0.12884546816349 * v[3] + 0.0382916443049908 * v[11] + v[19]; + y[293] = -0.00637074047699571 * v[16] + 0.12884546816349 * v[4] + 0.0382916443049908 * v[17] + v[9]; + y[294] = -0.00637074047699571 * v[14] + 0.12884546816349 * v[5] + 0.0382916443049908 * v[18] + v[12]; + v[8] = cos(x[11]); + v[0] = sin(x[11]); + v[2] = -1. * v[8] + 2.06823107110214e-13 * v[0]; + v[6] = 1.26217744835362e-29 * v[8] + 4.89663865010925e-12 * v[0]; + v[0] = 2.06823107110214e-13 * v[8] + v[0]; + v[8] = v[10] * v[2] + v[3] * v[6] + v[11] * v[0]; + v[7] = v[0] - -4.89652762780679e-12 * v[6]; + v[13] = -4.89652762780679e-12 * v[2] - -1.01273331923549e-24 * v[0]; + v[1] = -1.01273331923549e-24 * v[6] - v[2]; + v[15] = v[10] * v[7] + v[3] * v[13] + v[11] * v[1]; + v[11] = -1.01273331923549e-24 * v[10] + v[3] + -4.89652762780679e-12 * v[11]; + v[19] = v[19] + 0.1845 * v[3]; + y[296] = -0.0303262490779161 * v[8] + -0.0207324735820293 * v[15] + 0.0466873794794083 * v[11] + v[19]; + v[3] = v[16] * v[2] + v[4] * v[6] + v[17] * v[0]; + v[10] = v[16] * v[7] + v[4] * v[13] + v[17] * v[1]; + v[17] = -1.01273331923549e-24 * v[16] + v[4] + -4.89652762780679e-12 * v[17]; + v[9] = v[9] + 0.1845 * v[4]; + y[297] = -0.0303262490779161 * v[3] + -0.0207324735820293 * v[10] + 0.0466873794794083 * v[17] + v[9]; + v[0] = v[14] * v[2] + v[5] * v[6] + v[18] * v[0]; + v[1] = v[14] * v[7] + v[5] * v[13] + v[18] * v[1]; + v[18] = -1.01273331923549e-24 * v[14] + v[5] + -4.89652762780679e-12 * v[18]; + v[12] = v[12] + 0.1845 * v[5]; + y[298] = -0.0303262490779161 * v[0] + -0.0207324735820293 * v[1] + 0.0466873794794083 * v[18] + v[12]; + y[300] = 0.0382123328745365 * v[8] + -0.0229748375713825 * v[15] + 0.0462025664746761 * v[11] + v[19]; + y[301] = 0.0382123328745365 * v[3] + -0.0229748375713825 * v[10] + 0.0462025664746761 * v[17] + v[9]; + y[302] = 0.0382123328745365 * v[0] + -0.0229748375713825 * v[1] + 0.0462025664746761 * v[18] + v[12]; + y[304] = -0.029545271769166 * v[8] + 0.0435335896909237 * v[15] + 0.0515478737652302 * v[11] + v[19]; + y[305] = -0.029545271769166 * v[3] + 0.0435335896909237 * v[10] + 0.0515478737652302 * v[17] + v[9]; + y[306] = -0.029545271769166 * v[0] + 0.0435335896909237 * v[1] + 0.0515478737652302 * v[18] + v[12]; + y[308] = 0.0294575486332178 * v[8] + 0.0443899892270565 * v[15] + 0.0518434084951878 * v[11] + v[19]; + y[309] = 0.0294575486332178 * v[3] + 0.0443899892270565 * v[10] + 0.0518434084951878 * v[17] + v[9]; + y[310] = 0.0294575486332178 * v[0] + 0.0443899892270565 * v[1] + 0.0518434084951878 * v[18] + v[12]; + y[312] = -0.0226244386285543 * v[8] + 0.03036268055439 * v[15] + 0.143480017781258 * v[11] + v[19]; + y[313] = -0.0226244386285543 * v[3] + 0.03036268055439 * v[10] + 0.143480017781258 * v[17] + v[9]; + y[314] = -0.0226244386285543 * v[0] + 0.03036268055439 * v[1] + 0.143480017781258 * v[18] + v[12]; + y[316] = 0.0228122211992741 * v[8] + 0.0326673835515976 * v[15] + 0.144575268030167 * v[11] + v[19]; + y[317] = 0.0228122211992741 * v[3] + 0.0326673835515976 * v[10] + 0.144575268030167 * v[17] + v[9]; + y[318] = 0.0228122211992741 * v[0] + 0.0326673835515976 * v[1] + 0.144575268030167 * v[18] + v[12]; + y[320] = -0.000356095697497949 * v[8] + 0.0570880249142647 * v[15] + 0.213441297411919 * v[11] + v[19]; + y[321] = -0.000356095697497949 * v[3] + 0.0570880249142647 * v[10] + 0.213441297411919 * v[17] + v[9]; + y[322] = -0.000356095697497949 * v[0] + 0.0570880249142647 * v[1] + 0.213441297411919 * v[18] + v[12]; + v[5] = cos(x[12]); + v[14] = sin(x[12]); + v[13] = 4.89663865010925e-12 * v[14]; + v[7] = v[8] * v[5] + v[15] * v[13] + v[11] * v[14]; + v[6] = -1. * v[14] - 4.89663865010925e-12 * v[13]; + v[2] = 4.89663865010925e-12 * v[5]; + v[4] = 0. - -1. * v[5]; + v[8] = v[8] * v[6] + v[15] * v[2] + v[11] * v[4]; + v[15] = -1. * v[15] + 4.89663865010925e-12 * v[11]; + v[19] = v[19] + 0.2155 * v[11]; + y[324] = 0.00531387468799949 * v[7] + -0.0231041144579649 * v[8] + -0.0224952418357134 * v[15] + v[19]; + v[11] = v[3] * v[5] + v[10] * v[13] + v[17] * v[14]; + v[3] = v[3] * v[6] + v[10] * v[2] + v[17] * v[4]; + v[10] = -1. * v[10] + 4.89663865010925e-12 * v[17]; + v[9] = v[9] + 0.2155 * v[17]; + y[325] = 0.00531387468799949 * v[11] + -0.0231041144579649 * v[3] + -0.0224952418357134 * v[10] + v[9]; + v[13] = v[0] * v[5] + v[1] * v[13] + v[18] * v[14]; + v[4] = v[0] * v[6] + v[1] * v[2] + v[18] * v[4]; + v[1] = -1. * v[1] + 4.89663865010925e-12 * v[18]; + v[12] = v[12] + 0.2155 * v[18]; + y[326] = 0.00531387468799949 * v[13] + -0.0231041144579649 * v[4] + -0.0224952418357134 * v[1] + v[12]; + y[328] = 0.00424248585477471 * v[7] + -0.0304307378828526 * v[8] + 0.0232355650514364 * v[15] + v[19]; + y[329] = 0.00424248585477471 * v[11] + -0.0304307378828526 * v[3] + 0.0232355650514364 * v[10] + v[9]; + y[330] = 0.00424248585477471 * v[13] + -0.0304307378828526 * v[4] + 0.0232355650514364 * v[1] + v[12]; + y[332] = 0.00347242690622807 * v[7] + 0.0357604399323463 * v[8] + -0.0275979526340961 * v[15] + v[19]; + y[333] = 0.00347242690622807 * v[11] + 0.0357604399323463 * v[3] + -0.0275979526340961 * v[10] + v[9]; + y[334] = 0.00347242690622807 * v[13] + 0.0357604399323463 * v[4] + -0.0275979526340961 * v[1] + v[12]; + y[336] = -0.00440459558740258 * v[7] + 0.029050262644887 * v[8] + 0.0197553057223558 * v[15] + v[19]; + y[337] = -0.00440459558740258 * v[11] + 0.029050262644887 * v[3] + 0.0197553057223558 * v[10] + v[9]; + y[338] = -0.00440459558740258 * v[13] + 0.029050262644887 * v[4] + 0.0197553057223558 * v[1] + v[12]; + v[18] = cos(x[13]); + v[2] = sin(x[13]); + v[6] = -1. * v[18] + 2.06823107110214e-13 * v[2]; + v[0] = 1.26217744835362e-29 * v[18] + 4.89663865010925e-12 * v[2]; + v[2] = 2.06823107110214e-13 * v[18] + v[2]; + v[18] = v[7] * v[6] + v[8] * v[0] + v[15] * v[2]; + v[14] = v[2] - -4.89652762780679e-12 * v[0]; + v[5] = -4.89652762780679e-12 * v[6] - -1.01273331923549e-24 * v[2]; + v[17] = -1.01273331923549e-24 * v[0] - v[6]; + v[16] = v[7] * v[14] + v[8] * v[5] + v[15] * v[17]; + v[15] = -1.01273331923549e-24 * v[7] + v[8] + -4.89652762780679e-12 * v[15]; + v[19] = v[19] + 0.081 * v[8]; + y[340] = -0.0199781656265259 * v[18] + -0.0210024751722813 * v[16] + 0.015956237912178 * v[15] + v[19]; + v[8] = v[11] * v[6] + v[3] * v[0] + v[10] * v[2]; + v[7] = v[11] * v[14] + v[3] * v[5] + v[10] * v[17]; + v[10] = -1.01273331923549e-24 * v[11] + v[3] + -4.89652762780679e-12 * v[10]; + v[9] = v[9] + 0.081 * v[3]; + y[341] = -0.0199781656265259 * v[8] + -0.0210024751722813 * v[7] + 0.015956237912178 * v[10] + v[9]; + v[2] = v[13] * v[6] + v[4] * v[0] + v[1] * v[2]; + v[17] = v[13] * v[14] + v[4] * v[5] + v[1] * v[17]; + v[1] = -1.01273331923549e-24 * v[13] + v[4] + -4.89652762780679e-12 * v[1]; + v[12] = v[12] + 0.081 * v[4]; + y[342] = -0.0199781656265259 * v[2] + -0.0210024751722813 * v[17] + 0.015956237912178 * v[1] + v[12]; + y[344] = 0.0191871430724859 * v[18] + -0.0194653403013945 * v[16] + 0.0160456709563732 * v[15] + v[19]; + y[345] = 0.0191871430724859 * v[8] + -0.0194653403013945 * v[7] + 0.0160456709563732 * v[10] + v[9]; + y[346] = 0.0191871430724859 * v[2] + -0.0194653403013945 * v[17] + 0.0160456709563732 * v[1] + v[12]; + y[348] = -0.0201440621167421 * v[18] + 0.0189183782786131 * v[16] + 0.0165120754390955 * v[15] + v[19]; + y[349] = -0.0201440621167421 * v[8] + 0.0189183782786131 * v[7] + 0.0165120754390955 * v[10] + v[9]; + y[350] = -0.0201440621167421 * v[2] + 0.0189183782786131 * v[17] + 0.0165120754390955 * v[1] + v[12]; + y[352] = 0.0215731263160706 * v[18] + 0.0232260525226593 * v[16] + 0.00288419239223003 * v[15] + v[19]; + y[353] = 0.0215731263160706 * v[8] + 0.0232260525226593 * v[7] + 0.00288419239223003 * v[10] + v[9]; + y[354] = 0.0215731263160706 * v[2] + 0.0232260525226593 * v[17] + 0.00288419239223003 * v[1] + v[12]; + y[356] = 0.022247614338994 * v[18] + 0.0269022006541491 * v[16] + 0.0263182260096073 * v[15] + v[19]; + y[357] = 0.022247614338994 * v[8] + 0.0269022006541491 * v[7] + 0.0263182260096073 * v[10] + v[9]; + y[358] = 0.022247614338994 * v[2] + 0.0269022006541491 * v[17] + 0.0263182260096073 * v[1] + v[12]; + y[360] = -0.012587617063022 * v[18] + -0.0367822142356301 * v[16] + 0.0720952862501248 * v[15] + v[19]; + y[361] = -0.012587617063022 * v[8] + -0.0367822142356301 * v[7] + 0.0720952862501248 * v[10] + v[9]; + y[362] = -0.012587617063022 * v[2] + -0.0367822142356301 * v[17] + 0.0720952862501248 * v[1] + v[12]; + y[364] = -0.0156136708164741 * v[18] + -0.0359627567126562 * v[16] + 0.11080842852592 * v[15] + v[19]; + y[365] = -0.0156136708164741 * v[8] + -0.0359627567126562 * v[7] + 0.11080842852592 * v[10] + v[9]; + y[366] = -0.0156136708164741 * v[2] + -0.0359627567126562 * v[17] + 0.11080842852592 * v[1] + v[12]; + y[368] = 0.016497643534955 * v[18] + 0.0343992957979445 * v[16] + 0.0716519562155126 * v[15] + v[19]; + y[369] = 0.016497643534955 * v[8] + 0.0343992957979445 * v[7] + 0.0716519562155126 * v[10] + v[9]; + y[370] = 0.016497643534955 * v[2] + 0.0343992957979445 * v[17] + 0.0716519562155126 * v[1] + v[12]; + y[372] = 0.0156358738203146 * v[18] + 0.0351002731763063 * v[16] + 0.107802299931652 * v[15] + v[19]; + y[373] = 0.0156358738203146 * v[8] + 0.0351002731763063 * v[7] + 0.107802299931652 * v[10] + v[9]; + y[374] = 0.0156358738203146 * v[2] + 0.0351002731763063 * v[17] + 0.107802299931652 * v[1] + v[12]; + y[376] = -0.0233254483937131 * v[18] + -0.060328906390759 * v[16] + 0.229128492395143 * v[15] + v[19]; + y[377] = -0.0233254483937131 * v[8] + -0.060328906390759 * v[7] + 0.229128492395143 * v[10] + v[9]; + y[378] = -0.0233254483937131 * v[2] + -0.060328906390759 * v[17] + 0.229128492395143 * v[1] + v[12]; + y[380] = -0.0278344700254539 * v[18] + -0.0652496087446016 * v[16] + 0.174521849313737 * v[15] + v[19]; + y[381] = -0.0278344700254539 * v[8] + -0.0652496087446016 * v[7] + 0.174521849313737 * v[10] + v[9]; + y[382] = -0.0278344700254539 * v[2] + -0.0652496087446016 * v[17] + 0.174521849313737 * v[1] + v[12]; + y[384] = -0.0245009807652867 * v[18] + -0.0612167200448942 * v[16] + 0.137942649576717 * v[15] + v[19]; + y[385] = -0.0245009807652867 * v[8] + -0.0612167200448942 * v[7] + 0.137942649576717 * v[10] + v[9]; + y[386] = -0.0245009807652867 * v[2] + -0.0612167200448942 * v[17] + 0.137942649576717 * v[1] + v[12]; + y[388] = 0.0232954529086768 * v[18] + 0.060317004059848 * v[16] + 0.229128492395133 * v[15] + v[19]; + y[389] = 0.0232954529086768 * v[8] + 0.060317004059848 * v[7] + 0.229128492395133 * v[10] + v[9]; + y[390] = 0.0232954529086768 * v[2] + 0.060317004059848 * v[17] + 0.229128492395133 * v[1] + v[12]; + y[392] = 0.0277966318512907 * v[18] + 0.0652448814791517 * v[16] + 0.174521849313751 * v[15] + v[19]; + y[393] = 0.0277966318512907 * v[8] + 0.0652448814791517 * v[7] + 0.174521849313751 * v[10] + v[9]; + y[394] = 0.0277966318512907 * v[2] + 0.0652448814791517 * v[17] + 0.174521849313751 * v[1] + v[12]; + y[396] = 0.0244695698111778 * v[18] + 0.0612066888027197 * v[16] + 0.137942649576715 * v[15] + v[19]; + y[397] = 0.0244695698111778 * v[8] + 0.0612066888027197 * v[7] + 0.137942649576715 * v[10] + v[9]; + y[398] = 0.0244695698111778 * v[2] + 0.0612066888027197 * v[17] + 0.137942649576715 * v[1] + v[12]; + // dependent variables without operations + y[0] = -0.0735198631882668; + y[1] = -0.0541173815727234; + y[2] = 0.0768099054694176; + y[3] = 0.105830922722816; + y[4] = -0.0735262334346771; + y[5] = 0.0529109761118889; + y[6] = 0.0793738961219788; + y[7] = 0.104262858629227; + y[8] = 0.0390705168247223; + y[9] = -0.0450286567211151; + y[10] = 0.0765031948685646; + y[11] = 0.106655471026897; + y[12] = 0.0499769896268845; + y[13] = 0.0486934892833233; + y[14] = 0.0640255585312843; + y[15] = 0.10622838139534; + y[18] = 0.21666914716363; + y[19] = 0.107229880988598; + y[22] = 0.21647381156683; + y[23] = 0.0835958793759346; + y[26] = 0.215699472725391; + y[27] = 0.0838129222393036; + y[30] = 0.345404357910156; + y[31] = 0.098225325345993; + y[34] = 0.345727117061615; + y[35] = 0.097195640206337; + y[39] = 0.0975483432412148; + y[43] = 0.0937116593122482; + y[47] = 0.0810142904520035; + y[51] = 0.081512838602066; + y[55] = 0.0968621224164963; + y[59] = 0.0760728046298027; + y[63] = 0.0766041874885559; + y[67] = 0.0939076915383339; + y[71] = 0.0926672369241714; + y[75] = 0.0911291986703873; + y[79] = 0.0827247872948647; + y[83] = 0.0821510478854179; + y[87] = 0.0694684311747551; + y[91] = 0.0699467360973358; + y[95] = 0.0867823362350464; + y[99] = 0.0661434233188629; + y[103] = 0.0676505789160728; + y[107] = 0.0714448466897011; + y[111] = 0.0710318759083748; + y[115] = 0.0704528912901878; + y[119] = 0.0710151568055153; + y[123] = 0.0592901185154915; + y[127] = 0.0694939121603966; + y[131] = 0.0688671767711639; + y[135] = 0.07082200050354; + y[139] = 0.0727226212620735; + y[143] = 0.0363594107329845; + y[147] = 0.0361910536885262; + y[151] = 0.0362601280212402; + y[155] = 0.0339092910289764; + y[159] = 0.0348900593817234; + y[163] = 0.0449101217091084; + y[167] = 0.0442281886935234; + y[171] = 0.0448950715363026; + y[175] = 0.0444425120949745; + y[179] = 0.0432860739529133; + y[183] = 0.0269252900034189; + y[187] = 0.0291912201792002; + y[191] = 0.0432860739529133; + y[195] = 0.0269252900034189; + y[199] = 0.0291912201792002; + y[200] = -0.0735198631882668; + y[201] = 0.710882618427277; + y[202] = 0.0768099054694176; + y[203] = 0.105830922722816; + y[204] = -0.0735262334346771; + y[205] = 0.817910976111889; + y[206] = 0.0793738961219788; + y[207] = 0.104262858629227; + y[208] = 0.0390705168247223; + y[209] = 0.719971343278885; + y[210] = 0.0765031948685646; + y[211] = 0.106655471026897; + y[212] = 0.0499769896268845; + y[213] = 0.813693489283323; + y[214] = 0.0640255585312843; + y[215] = 0.10622838139534; + y[218] = 0.21666914716363; + y[219] = 0.107229880988598; + y[222] = 0.21647381156683; + y[223] = 0.0835958793759346; + y[226] = 0.215699472725391; + y[227] = 0.0838129222393036; + y[230] = 0.345404357910156; + y[231] = 0.098225325345993; + y[234] = 0.345727117061615; + y[235] = 0.097195640206337; + y[239] = 0.0975483432412148; + y[243] = 0.0937116593122482; + y[247] = 0.0810142904520035; + y[251] = 0.081512838602066; + y[255] = 0.0968621224164963; + y[259] = 0.0760728046298027; + y[263] = 0.0766041874885559; + y[267] = 0.0939076915383339; + y[271] = 0.0926672369241714; + y[275] = 0.0911291986703873; + y[279] = 0.0827247872948647; + y[283] = 0.0821510478854179; + y[287] = 0.0694684311747551; + y[291] = 0.0699467360973358; + y[295] = 0.0867823362350464; + y[299] = 0.0661434233188629; + y[303] = 0.0676505789160728; + y[307] = 0.0714448466897011; + y[311] = 0.0710318759083748; + y[315] = 0.0704528912901878; + y[319] = 0.0710151568055153; + y[323] = 0.0592901185154915; + y[327] = 0.0694939121603966; + y[331] = 0.0688671767711639; + y[335] = 0.07082200050354; + y[339] = 0.0727226212620735; + y[343] = 0.0363594107329845; + y[347] = 0.0361910536885262; + y[351] = 0.0362601280212402; + y[355] = 0.0339092910289764; + y[359] = 0.0348900593817234; + y[363] = 0.0449101217091084; + y[367] = 0.0442281886935234; + y[371] = 0.0448950715363026; + y[375] = 0.0444425120949745; + y[379] = 0.0432860739529133; + y[383] = 0.0269252900034189; + y[387] = 0.0291912201792002; + y[391] = 0.0432860739529133; + y[395] = 0.0269252900034189; + y[399] = 0.0291912201792002; + + + for (auto i = 0U; i < 100; ++i) + { + out.x[i] = y[i * 4 + 0]; + out.y[i] = y[i * 4 + 1]; + out.z[i] = y[i * 4 + 2]; + out.r[i] = y[i * 4 + 3]; + } + } + + using Debug = std::pair>, std::vector>>; + + template + static inline auto fkcc_debug( + const vamp::collision::Environment> &environment, + const ConfigurationBlock &x) noexcept -> Debug + { + std::array, 144> v; + std::array, 488> y; + + v[0] = cos(x[0]); + v[1] = sin(x[0]); + v[2] = 0. - v[1]; + y[16] = -0.0304988883435726 * v[0] + -0.0173739213496447 * v[2]; + y[17] = -0.0304988883435726 * v[1] + -0.0173739213496447 * v[0]; + y[20] = 0.0376833528280258 * v[0] + -0.0566041171550751 * v[2]; + y[21] = 0.0376833528280258 * v[1] + -0.0566041171550751 * v[0]; + y[24] = 0.053051695227623 * v[0] + 0.0300084203481674 * v[2]; + y[25] = 0.053051695227623 * v[1] + 0.0300084203481674 * v[0]; + y[28] = -0.0274603478610516 * v[0] + -0.0326122231781483 * v[2]; + y[29] = -0.0274603478610516 * v[1] + -0.0326122231781483 * v[0]; + y[32] = 0.0312839150428772 * v[0] + -0.0324193239212036 * v[2]; + y[33] = 0.0312839150428772 * v[1] + -0.0324193239212036 * v[0]; + v[3] = cos(x[1]); + v[4] = sin(x[1]); + v[5] = -1. * v[3] + 1.01273331923549e-24 * v[4]; + v[6] = -2.06823107110214e-13 * v[3] + -4.89652762780679e-12 * v[4]; + v[7] = v[0] * v[5] + v[2] * v[6]; + v[4] = -1.26217744835362e-29 * v[3] + v[4]; + v[3] = v[4] - 4.89663865010925e-12 * v[6]; + v[8] = 4.89663865010925e-12 * v[5] - -2.06823107110214e-13 * v[4]; + v[9] = v[0] * v[3] + v[2] * v[8]; + v[10] = -2.06823107110214e-13 * v[0] + v[2]; + y[36] = -0.0286435410380363 * v[7] + 0.0075924526900053 * v[9] + 0.0357369221746922 * v[10]; + v[11] = v[1] * v[5] + v[0] * v[6]; + v[8] = v[1] * v[3] + v[0] * v[8]; + v[3] = -2.06823107110214e-13 * v[1] + v[0]; + y[37] = -0.0286435410380363 * v[11] + 0.0075924526900053 * v[8] + 0.0357369221746922 * v[3]; + v[6] = -2.06823107110214e-13 * v[6] - v[5]; + y[38] = 0.36 + -0.0286435410380363 * v[4] + 1.74990794356544e-13 + 0.0075924526900053 * v[6]; + y[40] = 0.0302073135972023 * v[7] + -0.00406156480312347 * v[9] + 0.0409813597798347 * v[10]; + y[41] = 0.0302073135972023 * v[11] + -0.00406156480312347 * v[8] + 0.0409813597798347 * v[3]; + y[42] = 0.36 + 0.0302073135972023 * v[4] + 2.00670910231972e-13 + -0.00406156480312347 * v[6]; + y[44] = -0.0447303093969822 * v[7] + 0.13815912604332 * v[9] + -0.0262443888932467 * v[10]; + y[45] = -0.0447303093969822 * v[11] + 0.13815912604332 * v[8] + -0.0262443888932467 * v[3]; + y[46] = 0.36 + -0.0447303093969822 * v[4] + -1.2850928900317e-13 + 0.13815912604332 * v[6]; + y[48] = 0.0457500033080578 * v[7] + 0.142471238970757 * v[9] + -0.0185553897172213 * v[10]; + y[49] = 0.0457500033080578 * v[11] + 0.142471238970757 * v[8] + -0.0185553897172213 * v[3]; + y[50] = 0.36 + 0.0457500033080578 * v[4] + -9.08590384571854e-14 + 0.142471238970757 * v[6]; + y[52] = 0.00205385428853333 * v[7] + 0.132787525653839 * v[9] + 0.0468450263142586 * v[10]; + y[53] = 0.00205385428853333 * v[11] + 0.132787525653839 * v[8] + 0.0468450263142586 * v[3]; + y[54] = 0.36 + 0.00205385428853333 * v[4] + 2.29383166415784e-13 + 0.132787525653839 * v[6]; + v[5] = cos(x[2]); + v[12] = sin(x[2]); + v[13] = -1. * v[5] + 1.01273331923549e-24 * v[12]; + v[14] = -2.06823107110214e-13 * v[5] + -4.89652762780679e-12 * v[12]; + v[12] = -1.26217744835362e-29 * v[5] + v[12]; + v[5] = v[7] * v[13] + v[9] * v[14] + v[10] * v[12]; + v[15] = v[12] - 4.89663865010925e-12 * v[14]; + v[16] = 4.89663865010925e-12 * v[13] - -2.06823107110214e-13 * v[12]; + v[17] = -2.06823107110214e-13 * v[14] - v[13]; + v[18] = v[7] * v[15] + v[9] * v[16] + v[10] * v[17]; + v[19] = -2.06823107110214e-13 * v[7] + v[9] + 4.89663865010925e-12 * v[10]; + v[20] = 0.2045 * v[9]; + y[56] = -0.033751618117094 * v[5] + -0.0206236597150564 * v[18] + 0.0556587167084217 * v[19] + v[20]; + v[21] = v[11] * v[13] + v[8] * v[14] + v[3] * v[12]; + v[22] = v[11] * v[15] + v[8] * v[16] + v[3] * v[17]; + v[23] = -2.06823107110214e-13 * v[11] + v[8] + 4.89663865010925e-12 * v[3]; + v[24] = 0.2045 * v[8]; + y[57] = -0.033751618117094 * v[21] + -0.0206236597150564 * v[22] + 0.0556587167084217 * v[23] + v[24]; + v[12] = v[4] * v[13] + v[6] * v[14] + 4.89663865010925e-12 * v[12]; + v[17] = v[4] * v[15] + v[6] * v[16] + 4.89663865010925e-12 * v[17]; + v[16] = -2.06823107110214e-13 * v[4] + 2.39770700697438e-23 + v[6]; + v[15] = 0.36 + 0.2045 * v[6]; + y[58] = -0.033751618117094 * v[12] + -0.0206236597150564 * v[17] + 0.0556587167084217 * v[16] + v[15]; + y[60] = 0.036438126116991 * v[5] + -0.0216596964746714 * v[18] + 0.0589511506259441 * v[19] + v[20]; + y[61] = 0.036438126116991 * v[21] + -0.0216596964746714 * v[22] + 0.0589511506259441 * v[23] + v[24]; + y[62] = 0.036438126116991 * v[12] + -0.0216596964746714 * v[17] + 0.0589511506259441 * v[16] + v[15]; + y[64] = 0.00543839018791914 * v[5] + 0.0358658879995346 * v[18] + 0.0723318234086037 * v[19] + v[20]; + y[65] = 0.00543839018791914 * v[21] + 0.0358658879995346 * v[22] + 0.0723318234086037 * v[23] + v[24]; + y[66] = 0.00543839018791914 * v[12] + 0.0358658879995346 * v[17] + 0.0723318234086037 * v[16] + v[15]; + y[68] = -0.00150183925870806 * v[5] + 0.00477686012163758 * v[18] + 0.188644707202911 * v[19] + v[20]; + y[69] = -0.00150183925870806 * v[21] + 0.00477686012163758 * v[22] + 0.188644707202911 * v[23] + v[24]; + y[70] = -0.00150183925870806 * v[12] + 0.00477686012163758 * v[17] + 0.188644707202911 * v[16] + v[15]; + y[72] = -0.000443624390754849 * v[5] + 0.0609206445515156 * v[18] + 0.187817513942719 * v[19] + v[20]; + y[73] = -0.000443624390754849 * v[21] + 0.0609206445515156 * v[22] + 0.187817513942719 * v[23] + v[24]; + y[74] = -0.000443624390754849 * v[12] + 0.0609206445515156 * v[17] + 0.187817513942719 * v[16] + v[15]; + v[14] = cos(x[3]); + v[13] = sin(x[3]); + v[25] = 4.89663865010925e-12 * v[13]; + v[26] = v[5] * v[14] + v[18] * v[25] + v[19] * v[13]; + v[27] = -1. * v[13] - 4.89663865010925e-12 * v[25]; + v[28] = 4.89663865010925e-12 * v[14]; + v[29] = 0. - -1. * v[14]; + v[30] = v[5] * v[27] + v[18] * v[28] + v[19] * v[29]; + v[31] = -1. * v[18] + 4.89663865010925e-12 * v[19]; + v[32] = v[20] + 0.2155 * v[19]; + y[76] = 0.00209041242487729 * v[26] + 0.0127677032724023 * v[30] + 0.0110630923882127 * v[31] + v[32]; + v[33] = v[21] * v[14] + v[22] * v[25] + v[23] * v[13]; + v[34] = v[21] * v[27] + v[22] * v[28] + v[23] * v[29]; + v[35] = -1. * v[22] + 4.89663865010925e-12 * v[23]; + v[36] = v[24] + 0.2155 * v[23]; + y[77] = 0.00209041242487729 * v[33] + 0.0127677032724023 * v[34] + 0.0110630923882127 * v[35] + v[36]; + v[25] = v[12] * v[14] + v[17] * v[25] + v[16] * v[13]; + v[29] = v[12] * v[27] + v[17] * v[28] + v[16] * v[29]; + v[28] = -1. * v[17] + 4.89663865010925e-12 * v[16]; + v[27] = v[15] + 0.2155 * v[16]; + y[78] = 0.00209041242487729 * v[25] + 0.0127677032724023 * v[29] + 0.0110630923882127 * v[28] + v[27]; + y[80] = 0.00488302065059543 * v[26] + 0.0161912720650434 * v[30] + 0.0618039071559906 * v[31] + v[32]; + y[81] = 0.00488302065059543 * v[33] + 0.0161912720650434 * v[34] + 0.0618039071559906 * v[35] + v[36]; + y[82] = 0.00488302065059543 * v[25] + 0.0161912720650434 * v[29] + 0.0618039071559906 * v[28] + v[27]; + y[84] = -0.0348032154142857 * v[26] + 0.133986249566078 * v[30] + -0.0251118093729019 * v[31] + v[32]; + y[85] = -0.0348032154142857 * v[33] + 0.133986249566078 * v[34] + -0.0251118093729019 * v[35] + v[36]; + y[86] = -0.0348032154142857 * v[25] + 0.133986249566078 * v[29] + -0.0251118093729019 * v[28] + v[27]; + y[88] = 0.038326770067215 * v[26] + 0.133518978953362 * v[30] + -0.0277583207935095 * v[31] + v[32]; + y[89] = 0.038326770067215 * v[33] + 0.133518978953362 * v[34] + -0.0277583207935095 * v[35] + v[36]; + y[90] = 0.038326770067215 * v[25] + 0.133518978953362 * v[29] + -0.0277583207935095 * v[28] + v[27]; + y[92] = -0.00637074047699571 * v[26] + 0.12884546816349 * v[30] + 0.0382916443049908 * v[31] + v[32]; + y[93] = -0.00637074047699571 * v[33] + 0.12884546816349 * v[34] + 0.0382916443049908 * v[35] + v[36]; + y[94] = -0.00637074047699571 * v[25] + 0.12884546816349 * v[29] + 0.0382916443049908 * v[28] + v[27]; + v[13] = cos(x[4]); + v[14] = sin(x[4]); + v[37] = -1. * v[13] + 2.06823107110214e-13 * v[14]; + v[38] = 1.26217744835362e-29 * v[13] + 4.89663865010925e-12 * v[14]; + v[14] = 2.06823107110214e-13 * v[13] + v[14]; + v[13] = v[26] * v[37] + v[30] * v[38] + v[31] * v[14]; + v[39] = v[14] - -4.89652762780679e-12 * v[38]; + v[40] = -4.89652762780679e-12 * v[37] - -1.01273331923549e-24 * v[14]; + v[41] = -1.01273331923549e-24 * v[38] - v[37]; + v[42] = v[26] * v[39] + v[30] * v[40] + v[31] * v[41]; + v[43] = -1.01273331923549e-24 * v[26] + v[30] + -4.89652762780679e-12 * v[31]; + v[44] = v[32] + 0.1845 * v[30]; + y[96] = -0.0303262490779161 * v[13] + -0.0207324735820293 * v[42] + 0.0466873794794083 * v[43] + v[44]; + v[45] = v[33] * v[37] + v[34] * v[38] + v[35] * v[14]; + v[46] = v[33] * v[39] + v[34] * v[40] + v[35] * v[41]; + v[47] = -1.01273331923549e-24 * v[33] + v[34] + -4.89652762780679e-12 * v[35]; + v[48] = v[36] + 0.1845 * v[34]; + y[97] = -0.0303262490779161 * v[45] + -0.0207324735820293 * v[46] + 0.0466873794794083 * v[47] + v[48]; + v[14] = v[25] * v[37] + v[29] * v[38] + v[28] * v[14]; + v[41] = v[25] * v[39] + v[29] * v[40] + v[28] * v[41]; + v[40] = -1.01273331923549e-24 * v[25] + v[29] + -4.89652762780679e-12 * v[28]; + v[39] = v[27] + 0.1845 * v[29]; + y[98] = -0.0303262490779161 * v[14] + -0.0207324735820293 * v[41] + 0.0466873794794083 * v[40] + v[39]; + y[100] = 0.0382123328745365 * v[13] + -0.0229748375713825 * v[42] + 0.0462025664746761 * v[43] + v[44]; + y[101] = 0.0382123328745365 * v[45] + -0.0229748375713825 * v[46] + 0.0462025664746761 * v[47] + v[48]; + y[102] = 0.0382123328745365 * v[14] + -0.0229748375713825 * v[41] + 0.0462025664746761 * v[40] + v[39]; + y[104] = -0.029545271769166 * v[13] + 0.0435335896909237 * v[42] + 0.0515478737652302 * v[43] + v[44]; + y[105] = -0.029545271769166 * v[45] + 0.0435335896909237 * v[46] + 0.0515478737652302 * v[47] + v[48]; + y[106] = -0.029545271769166 * v[14] + 0.0435335896909237 * v[41] + 0.0515478737652302 * v[40] + v[39]; + y[108] = 0.0294575486332178 * v[13] + 0.0443899892270565 * v[42] + 0.0518434084951878 * v[43] + v[44]; + y[109] = 0.0294575486332178 * v[45] + 0.0443899892270565 * v[46] + 0.0518434084951878 * v[47] + v[48]; + y[110] = 0.0294575486332178 * v[14] + 0.0443899892270565 * v[41] + 0.0518434084951878 * v[40] + v[39]; + y[112] = -0.0226244386285543 * v[13] + 0.03036268055439 * v[42] + 0.143480017781258 * v[43] + v[44]; + y[113] = -0.0226244386285543 * v[45] + 0.03036268055439 * v[46] + 0.143480017781258 * v[47] + v[48]; + y[114] = -0.0226244386285543 * v[14] + 0.03036268055439 * v[41] + 0.143480017781258 * v[40] + v[39]; + y[116] = 0.0228122211992741 * v[13] + 0.0326673835515976 * v[42] + 0.144575268030167 * v[43] + v[44]; + y[117] = 0.0228122211992741 * v[45] + 0.0326673835515976 * v[46] + 0.144575268030167 * v[47] + v[48]; + y[118] = 0.0228122211992741 * v[14] + 0.0326673835515976 * v[41] + 0.144575268030167 * v[40] + v[39]; + y[120] = -0.000356095697497949 * v[13] + 0.0570880249142647 * v[42] + 0.213441297411919 * v[43] + v[44]; + y[121] = -0.000356095697497949 * v[45] + 0.0570880249142647 * v[46] + 0.213441297411919 * v[47] + v[48]; + y[122] = -0.000356095697497949 * v[14] + 0.0570880249142647 * v[41] + 0.213441297411919 * v[40] + v[39]; + v[38] = cos(x[5]); + v[37] = sin(x[5]); + v[49] = 4.89663865010925e-12 * v[37]; + v[50] = v[13] * v[38] + v[42] * v[49] + v[43] * v[37]; + v[51] = -1. * v[37] - 4.89663865010925e-12 * v[49]; + v[52] = 4.89663865010925e-12 * v[38]; + v[53] = 0. - -1. * v[38]; + v[54] = v[13] * v[51] + v[42] * v[52] + v[43] * v[53]; + v[55] = -1. * v[42] + 4.89663865010925e-12 * v[43]; + v[56] = v[44] + 0.2155 * v[43]; + y[124] = 0.00531387468799949 * v[50] + -0.0231041144579649 * v[54] + -0.0224952418357134 * v[55] + v[56]; + v[57] = v[45] * v[38] + v[46] * v[49] + v[47] * v[37]; + v[58] = v[45] * v[51] + v[46] * v[52] + v[47] * v[53]; + v[59] = -1. * v[46] + 4.89663865010925e-12 * v[47]; + v[60] = v[48] + 0.2155 * v[47]; + y[125] = 0.00531387468799949 * v[57] + -0.0231041144579649 * v[58] + -0.0224952418357134 * v[59] + v[60]; + v[49] = v[14] * v[38] + v[41] * v[49] + v[40] * v[37]; + v[53] = v[14] * v[51] + v[41] * v[52] + v[40] * v[53]; + v[52] = -1. * v[41] + 4.89663865010925e-12 * v[40]; + v[51] = v[39] + 0.2155 * v[40]; + y[126] = 0.00531387468799949 * v[49] + -0.0231041144579649 * v[53] + -0.0224952418357134 * v[52] + v[51]; + y[128] = 0.00424248585477471 * v[50] + -0.0304307378828526 * v[54] + 0.0232355650514364 * v[55] + v[56]; + y[129] = 0.00424248585477471 * v[57] + -0.0304307378828526 * v[58] + 0.0232355650514364 * v[59] + v[60]; + y[130] = 0.00424248585477471 * v[49] + -0.0304307378828526 * v[53] + 0.0232355650514364 * v[52] + v[51]; + y[132] = 0.00347242690622807 * v[50] + 0.0357604399323463 * v[54] + -0.0275979526340961 * v[55] + v[56]; + y[133] = 0.00347242690622807 * v[57] + 0.0357604399323463 * v[58] + -0.0275979526340961 * v[59] + v[60]; + y[134] = 0.00347242690622807 * v[49] + 0.0357604399323463 * v[53] + -0.0275979526340961 * v[52] + v[51]; + y[136] = -0.00440459558740258 * v[50] + 0.029050262644887 * v[54] + 0.0197553057223558 * v[55] + v[56]; + y[137] = -0.00440459558740258 * v[57] + 0.029050262644887 * v[58] + 0.0197553057223558 * v[59] + v[60]; + y[138] = -0.00440459558740258 * v[49] + 0.029050262644887 * v[53] + 0.0197553057223558 * v[52] + v[51]; + v[37] = cos(x[6]); + v[38] = sin(x[6]); + v[61] = -1. * v[37] + 2.06823107110214e-13 * v[38]; + v[62] = 1.26217744835362e-29 * v[37] + 4.89663865010925e-12 * v[38]; + v[38] = 2.06823107110214e-13 * v[37] + v[38]; + v[37] = v[50] * v[61] + v[54] * v[62] + v[55] * v[38]; + v[63] = v[38] - -4.89652762780679e-12 * v[62]; + v[64] = -4.89652762780679e-12 * v[61] - -1.01273331923549e-24 * v[38]; + v[65] = -1.01273331923549e-24 * v[62] - v[61]; + v[66] = v[50] * v[63] + v[54] * v[64] + v[55] * v[65]; + v[67] = -1.01273331923549e-24 * v[50] + v[54] + -4.89652762780679e-12 * v[55]; + v[68] = v[56] + 0.081 * v[54]; + y[140] = -0.0199781656265259 * v[37] + -0.0210024751722813 * v[66] + 0.015956237912178 * v[67] + v[68]; + v[69] = v[57] * v[61] + v[58] * v[62] + v[59] * v[38]; + v[70] = v[57] * v[63] + v[58] * v[64] + v[59] * v[65]; + v[71] = -1.01273331923549e-24 * v[57] + v[58] + -4.89652762780679e-12 * v[59]; + v[72] = v[60] + 0.081 * v[58]; + y[141] = -0.0199781656265259 * v[69] + -0.0210024751722813 * v[70] + 0.015956237912178 * v[71] + v[72]; + v[38] = v[49] * v[61] + v[53] * v[62] + v[52] * v[38]; + v[65] = v[49] * v[63] + v[53] * v[64] + v[52] * v[65]; + v[64] = -1.01273331923549e-24 * v[49] + v[53] + -4.89652762780679e-12 * v[52]; + v[63] = v[51] + 0.081 * v[53]; + y[142] = -0.0199781656265259 * v[38] + -0.0210024751722813 * v[65] + 0.015956237912178 * v[64] + v[63]; + y[144] = 0.0191871430724859 * v[37] + -0.0194653403013945 * v[66] + 0.0160456709563732 * v[67] + v[68]; + y[145] = 0.0191871430724859 * v[69] + -0.0194653403013945 * v[70] + 0.0160456709563732 * v[71] + v[72]; + y[146] = 0.0191871430724859 * v[38] + -0.0194653403013945 * v[65] + 0.0160456709563732 * v[64] + v[63]; + y[148] = -0.0201440621167421 * v[37] + 0.0189183782786131 * v[66] + 0.0165120754390955 * v[67] + v[68]; + y[149] = -0.0201440621167421 * v[69] + 0.0189183782786131 * v[70] + 0.0165120754390955 * v[71] + v[72]; + y[150] = -0.0201440621167421 * v[38] + 0.0189183782786131 * v[65] + 0.0165120754390955 * v[64] + v[63]; + y[152] = 0.0215731263160706 * v[37] + 0.0232260525226593 * v[66] + 0.00288419239223003 * v[67] + v[68]; + y[153] = 0.0215731263160706 * v[69] + 0.0232260525226593 * v[70] + 0.00288419239223003 * v[71] + v[72]; + y[154] = 0.0215731263160706 * v[38] + 0.0232260525226593 * v[65] + 0.00288419239223003 * v[64] + v[63]; + y[156] = 0.022247614338994 * v[37] + 0.0269022006541491 * v[66] + 0.0263182260096073 * v[67] + v[68]; + y[157] = 0.022247614338994 * v[69] + 0.0269022006541491 * v[70] + 0.0263182260096073 * v[71] + v[72]; + y[158] = 0.022247614338994 * v[38] + 0.0269022006541491 * v[65] + 0.0263182260096073 * v[64] + v[63]; + y[160] = -0.012587617063022 * v[37] + -0.0367822142356301 * v[66] + 0.0720952862501248 * v[67] + v[68]; + y[161] = -0.012587617063022 * v[69] + -0.0367822142356301 * v[70] + 0.0720952862501248 * v[71] + v[72]; + y[162] = -0.012587617063022 * v[38] + -0.0367822142356301 * v[65] + 0.0720952862501248 * v[64] + v[63]; + y[164] = -0.0156136708164741 * v[37] + -0.0359627567126562 * v[66] + 0.11080842852592 * v[67] + v[68]; + y[165] = -0.0156136708164741 * v[69] + -0.0359627567126562 * v[70] + 0.11080842852592 * v[71] + v[72]; + y[166] = -0.0156136708164741 * v[38] + -0.0359627567126562 * v[65] + 0.11080842852592 * v[64] + v[63]; + y[168] = 0.016497643534955 * v[37] + 0.0343992957979445 * v[66] + 0.0716519562155126 * v[67] + v[68]; + y[169] = 0.016497643534955 * v[69] + 0.0343992957979445 * v[70] + 0.0716519562155126 * v[71] + v[72]; + y[170] = 0.016497643534955 * v[38] + 0.0343992957979445 * v[65] + 0.0716519562155126 * v[64] + v[63]; + y[172] = 0.0156358738203146 * v[37] + 0.0351002731763063 * v[66] + 0.107802299931652 * v[67] + v[68]; + y[173] = 0.0156358738203146 * v[69] + 0.0351002731763063 * v[70] + 0.107802299931652 * v[71] + v[72]; + y[174] = 0.0156358738203146 * v[38] + 0.0351002731763063 * v[65] + 0.107802299931652 * v[64] + v[63]; + y[176] = -0.0233254483937131 * v[37] + -0.060328906390759 * v[66] + 0.229128492395143 * v[67] + v[68]; + y[177] = -0.0233254483937131 * v[69] + -0.060328906390759 * v[70] + 0.229128492395143 * v[71] + v[72]; + y[178] = -0.0233254483937131 * v[38] + -0.060328906390759 * v[65] + 0.229128492395143 * v[64] + v[63]; + y[180] = -0.0278344700254539 * v[37] + -0.0652496087446016 * v[66] + 0.174521849313737 * v[67] + v[68]; + y[181] = -0.0278344700254539 * v[69] + -0.0652496087446016 * v[70] + 0.174521849313737 * v[71] + v[72]; + y[182] = -0.0278344700254539 * v[38] + -0.0652496087446016 * v[65] + 0.174521849313737 * v[64] + v[63]; + y[184] = -0.0245009807652867 * v[37] + -0.0612167200448942 * v[66] + 0.137942649576717 * v[67] + v[68]; + y[185] = -0.0245009807652867 * v[69] + -0.0612167200448942 * v[70] + 0.137942649576717 * v[71] + v[72]; + y[186] = -0.0245009807652867 * v[38] + -0.0612167200448942 * v[65] + 0.137942649576717 * v[64] + v[63]; + y[188] = 0.0232954529086768 * v[37] + 0.060317004059848 * v[66] + 0.229128492395133 * v[67] + v[68]; + y[189] = 0.0232954529086768 * v[69] + 0.060317004059848 * v[70] + 0.229128492395133 * v[71] + v[72]; + y[190] = 0.0232954529086768 * v[38] + 0.060317004059848 * v[65] + 0.229128492395133 * v[64] + v[63]; + y[192] = 0.0277966318512907 * v[37] + 0.0652448814791517 * v[66] + 0.174521849313751 * v[67] + v[68]; + y[193] = 0.0277966318512907 * v[69] + 0.0652448814791517 * v[70] + 0.174521849313751 * v[71] + v[72]; + y[194] = 0.0277966318512907 * v[38] + 0.0652448814791517 * v[65] + 0.174521849313751 * v[64] + v[63]; + y[196] = 0.0244695698111778 * v[37] + 0.0612066888027197 * v[66] + 0.137942649576715 * v[67] + v[68]; + y[197] = 0.0244695698111778 * v[69] + 0.0612066888027197 * v[70] + 0.137942649576715 * v[71] + v[72]; + y[198] = 0.0244695698111778 * v[38] + 0.0612066888027197 * v[65] + 0.137942649576715 * v[64] + v[63]; + v[62] = cos(x[7]); + v[61] = sin(x[7]); + v[73] = 0. - v[61]; + y[216] = -0.0304988883435726 * v[62] + -0.0173739213496447 * v[73]; + y[217] = 0.765 + -0.0304988883435726 * v[61] + -0.0173739213496447 * v[62]; + y[220] = 0.0376833528280258 * v[62] + -0.0566041171550751 * v[73]; + y[221] = 0.765 + 0.0376833528280258 * v[61] + -0.0566041171550751 * v[62]; + y[224] = 0.053051695227623 * v[62] + 0.0300084203481674 * v[73]; + y[225] = 0.765 + 0.053051695227623 * v[61] + 0.0300084203481674 * v[62]; + y[228] = -0.0274603478610516 * v[62] + -0.0326122231781483 * v[73]; + y[229] = 0.765 + -0.0274603478610516 * v[61] + -0.0326122231781483 * v[62]; + y[232] = 0.0312839150428772 * v[62] + -0.0324193239212036 * v[73]; + y[233] = 0.765 + 0.0312839150428772 * v[61] + -0.0324193239212036 * v[62]; + v[74] = cos(x[8]); + v[75] = sin(x[8]); + v[76] = -1. * v[74] + 1.01273331923549e-24 * v[75]; + v[77] = -2.06823107110214e-13 * v[74] + -4.89652762780679e-12 * v[75]; + v[78] = v[62] * v[76] + v[73] * v[77]; + v[75] = -1.26217744835362e-29 * v[74] + v[75]; + v[74] = v[75] - 4.89663865010925e-12 * v[77]; + v[79] = 4.89663865010925e-12 * v[76] - -2.06823107110214e-13 * v[75]; + v[80] = v[62] * v[74] + v[73] * v[79]; + v[81] = -2.06823107110214e-13 * v[62] + v[73]; + y[236] = -0.0286435410380363 * v[78] + 0.0075924526900053 * v[80] + 0.0357369221746922 * v[81]; + v[82] = v[61] * v[76] + v[62] * v[77]; + v[79] = v[61] * v[74] + v[62] * v[79]; + v[74] = -2.06823107110214e-13 * v[61] + v[62]; + y[237] = 0.765 + -0.0286435410380363 * v[82] + 0.0075924526900053 * v[79] + 0.0357369221746922 * v[74]; + v[77] = -2.06823107110214e-13 * v[77] - v[76]; + y[238] = 0.36 + -0.0286435410380363 * v[75] + 1.74990794356544e-13 + 0.0075924526900053 * v[77]; + y[240] = 0.0302073135972023 * v[78] + -0.00406156480312347 * v[80] + 0.0409813597798347 * v[81]; + y[241] = 0.765 + 0.0302073135972023 * v[82] + -0.00406156480312347 * v[79] + 0.0409813597798347 * v[74]; + y[242] = 0.36 + 0.0302073135972023 * v[75] + 2.00670910231972e-13 + -0.00406156480312347 * v[77]; + y[244] = -0.0447303093969822 * v[78] + 0.13815912604332 * v[80] + -0.0262443888932467 * v[81]; + y[245] = 0.765 + -0.0447303093969822 * v[82] + 0.13815912604332 * v[79] + -0.0262443888932467 * v[74]; + y[246] = 0.36 + -0.0447303093969822 * v[75] + -1.2850928900317e-13 + 0.13815912604332 * v[77]; + y[248] = 0.0457500033080578 * v[78] + 0.142471238970757 * v[80] + -0.0185553897172213 * v[81]; + y[249] = 0.765 + 0.0457500033080578 * v[82] + 0.142471238970757 * v[79] + -0.0185553897172213 * v[74]; + y[250] = 0.36 + 0.0457500033080578 * v[75] + -9.08590384571854e-14 + 0.142471238970757 * v[77]; + y[252] = 0.00205385428853333 * v[78] + 0.132787525653839 * v[80] + 0.0468450263142586 * v[81]; + y[253] = 0.765 + 0.00205385428853333 * v[82] + 0.132787525653839 * v[79] + 0.0468450263142586 * v[74]; + y[254] = 0.36 + 0.00205385428853333 * v[75] + 2.29383166415784e-13 + 0.132787525653839 * v[77]; + v[76] = cos(x[9]); + v[83] = sin(x[9]); + v[84] = -1. * v[76] + 1.01273331923549e-24 * v[83]; + v[85] = -2.06823107110214e-13 * v[76] + -4.89652762780679e-12 * v[83]; + v[83] = -1.26217744835362e-29 * v[76] + v[83]; + v[76] = v[78] * v[84] + v[80] * v[85] + v[81] * v[83]; + v[86] = v[83] - 4.89663865010925e-12 * v[85]; + v[87] = 4.89663865010925e-12 * v[84] - -2.06823107110214e-13 * v[83]; + v[88] = -2.06823107110214e-13 * v[85] - v[84]; + v[89] = v[78] * v[86] + v[80] * v[87] + v[81] * v[88]; + v[90] = -2.06823107110214e-13 * v[78] + v[80] + 4.89663865010925e-12 * v[81]; + v[91] = 0.2045 * v[80]; + y[256] = -0.033751618117094 * v[76] + -0.0206236597150564 * v[89] + 0.0556587167084217 * v[90] + v[91]; + v[92] = v[82] * v[84] + v[79] * v[85] + v[74] * v[83]; + v[93] = v[82] * v[86] + v[79] * v[87] + v[74] * v[88]; + v[94] = -2.06823107110214e-13 * v[82] + v[79] + 4.89663865010925e-12 * v[74]; + v[95] = 0.765 + 0.2045 * v[79]; + y[257] = -0.033751618117094 * v[92] + -0.0206236597150564 * v[93] + 0.0556587167084217 * v[94] + v[95]; + v[83] = v[75] * v[84] + v[77] * v[85] + 4.89663865010925e-12 * v[83]; + v[88] = v[75] * v[86] + v[77] * v[87] + 4.89663865010925e-12 * v[88]; + v[87] = -2.06823107110214e-13 * v[75] + 2.39770700697438e-23 + v[77]; + v[86] = 0.36 + 0.2045 * v[77]; + y[258] = -0.033751618117094 * v[83] + -0.0206236597150564 * v[88] + 0.0556587167084217 * v[87] + v[86]; + y[260] = 0.036438126116991 * v[76] + -0.0216596964746714 * v[89] + 0.0589511506259441 * v[90] + v[91]; + y[261] = 0.036438126116991 * v[92] + -0.0216596964746714 * v[93] + 0.0589511506259441 * v[94] + v[95]; + y[262] = 0.036438126116991 * v[83] + -0.0216596964746714 * v[88] + 0.0589511506259441 * v[87] + v[86]; + y[264] = 0.00543839018791914 * v[76] + 0.0358658879995346 * v[89] + 0.0723318234086037 * v[90] + v[91]; + y[265] = 0.00543839018791914 * v[92] + 0.0358658879995346 * v[93] + 0.0723318234086037 * v[94] + v[95]; + y[266] = 0.00543839018791914 * v[83] + 0.0358658879995346 * v[88] + 0.0723318234086037 * v[87] + v[86]; + y[268] = -0.00150183925870806 * v[76] + 0.00477686012163758 * v[89] + 0.188644707202911 * v[90] + v[91]; + y[269] = -0.00150183925870806 * v[92] + 0.00477686012163758 * v[93] + 0.188644707202911 * v[94] + v[95]; + y[270] = -0.00150183925870806 * v[83] + 0.00477686012163758 * v[88] + 0.188644707202911 * v[87] + v[86]; + y[272] = -0.000443624390754849 * v[76] + 0.0609206445515156 * v[89] + 0.187817513942719 * v[90] + v[91]; + y[273] = -0.000443624390754849 * v[92] + 0.0609206445515156 * v[93] + 0.187817513942719 * v[94] + v[95]; + y[274] = -0.000443624390754849 * v[83] + 0.0609206445515156 * v[88] + 0.187817513942719 * v[87] + v[86]; + v[85] = cos(x[10]); + v[84] = sin(x[10]); + v[96] = 4.89663865010925e-12 * v[84]; + v[97] = v[76] * v[85] + v[89] * v[96] + v[90] * v[84]; + v[98] = -1. * v[84] - 4.89663865010925e-12 * v[96]; + v[99] = 4.89663865010925e-12 * v[85]; + v[100] = 0. - -1. * v[85]; + v[101] = v[76] * v[98] + v[89] * v[99] + v[90] * v[100]; + v[102] = -1. * v[89] + 4.89663865010925e-12 * v[90]; + v[103] = v[91] + 0.2155 * v[90]; + y[276] = 0.00209041242487729 * v[97] + 0.0127677032724023 * v[101] + 0.0110630923882127 * v[102] + v[103]; + v[104] = v[92] * v[85] + v[93] * v[96] + v[94] * v[84]; + v[105] = v[92] * v[98] + v[93] * v[99] + v[94] * v[100]; + v[106] = -1. * v[93] + 4.89663865010925e-12 * v[94]; + v[107] = v[95] + 0.2155 * v[94]; + y[277] = 0.00209041242487729 * v[104] + 0.0127677032724023 * v[105] + 0.0110630923882127 * v[106] + v[107]; + v[96] = v[83] * v[85] + v[88] * v[96] + v[87] * v[84]; + v[100] = v[83] * v[98] + v[88] * v[99] + v[87] * v[100]; + v[99] = -1. * v[88] + 4.89663865010925e-12 * v[87]; + v[98] = v[86] + 0.2155 * v[87]; + y[278] = 0.00209041242487729 * v[96] + 0.0127677032724023 * v[100] + 0.0110630923882127 * v[99] + v[98]; + y[280] = 0.00488302065059543 * v[97] + 0.0161912720650434 * v[101] + 0.0618039071559906 * v[102] + v[103]; + y[281] = 0.00488302065059543 * v[104] + 0.0161912720650434 * v[105] + 0.0618039071559906 * v[106] + v[107]; + y[282] = 0.00488302065059543 * v[96] + 0.0161912720650434 * v[100] + 0.0618039071559906 * v[99] + v[98]; + y[284] = -0.0348032154142857 * v[97] + 0.133986249566078 * v[101] + -0.0251118093729019 * v[102] + v[103]; + y[285] = -0.0348032154142857 * v[104] + 0.133986249566078 * v[105] + -0.0251118093729019 * v[106] + v[107]; + y[286] = -0.0348032154142857 * v[96] + 0.133986249566078 * v[100] + -0.0251118093729019 * v[99] + v[98]; + y[288] = 0.038326770067215 * v[97] + 0.133518978953362 * v[101] + -0.0277583207935095 * v[102] + v[103]; + y[289] = 0.038326770067215 * v[104] + 0.133518978953362 * v[105] + -0.0277583207935095 * v[106] + v[107]; + y[290] = 0.038326770067215 * v[96] + 0.133518978953362 * v[100] + -0.0277583207935095 * v[99] + v[98]; + y[292] = -0.00637074047699571 * v[97] + 0.12884546816349 * v[101] + 0.0382916443049908 * v[102] + v[103]; + y[293] = -0.00637074047699571 * v[104] + 0.12884546816349 * v[105] + 0.0382916443049908 * v[106] + v[107]; + y[294] = -0.00637074047699571 * v[96] + 0.12884546816349 * v[100] + 0.0382916443049908 * v[99] + v[98]; + v[84] = cos(x[11]); + v[85] = sin(x[11]); + v[108] = -1. * v[84] + 2.06823107110214e-13 * v[85]; + v[109] = 1.26217744835362e-29 * v[84] + 4.89663865010925e-12 * v[85]; + v[85] = 2.06823107110214e-13 * v[84] + v[85]; + v[84] = v[97] * v[108] + v[101] * v[109] + v[102] * v[85]; + v[110] = v[85] - -4.89652762780679e-12 * v[109]; + v[111] = -4.89652762780679e-12 * v[108] - -1.01273331923549e-24 * v[85]; + v[112] = -1.01273331923549e-24 * v[109] - v[108]; + v[113] = v[97] * v[110] + v[101] * v[111] + v[102] * v[112]; + v[114] = -1.01273331923549e-24 * v[97] + v[101] + -4.89652762780679e-12 * v[102]; + v[115] = v[103] + 0.1845 * v[101]; + y[296] = -0.0303262490779161 * v[84] + -0.0207324735820293 * v[113] + 0.0466873794794083 * v[114] + v[115]; + v[116] = v[104] * v[108] + v[105] * v[109] + v[106] * v[85]; + v[117] = v[104] * v[110] + v[105] * v[111] + v[106] * v[112]; + v[118] = -1.01273331923549e-24 * v[104] + v[105] + -4.89652762780679e-12 * v[106]; + v[119] = v[107] + 0.1845 * v[105]; + y[297] = -0.0303262490779161 * v[116] + -0.0207324735820293 * v[117] + 0.0466873794794083 * v[118] + v[119]; + v[85] = v[96] * v[108] + v[100] * v[109] + v[99] * v[85]; + v[112] = v[96] * v[110] + v[100] * v[111] + v[99] * v[112]; + v[111] = -1.01273331923549e-24 * v[96] + v[100] + -4.89652762780679e-12 * v[99]; + v[110] = v[98] + 0.1845 * v[100]; + y[298] = -0.0303262490779161 * v[85] + -0.0207324735820293 * v[112] + 0.0466873794794083 * v[111] + v[110]; + y[300] = 0.0382123328745365 * v[84] + -0.0229748375713825 * v[113] + 0.0462025664746761 * v[114] + v[115]; + y[301] = 0.0382123328745365 * v[116] + -0.0229748375713825 * v[117] + 0.0462025664746761 * v[118] + v[119]; + y[302] = 0.0382123328745365 * v[85] + -0.0229748375713825 * v[112] + 0.0462025664746761 * v[111] + v[110]; + y[304] = -0.029545271769166 * v[84] + 0.0435335896909237 * v[113] + 0.0515478737652302 * v[114] + v[115]; + y[305] = -0.029545271769166 * v[116] + 0.0435335896909237 * v[117] + 0.0515478737652302 * v[118] + v[119]; + y[306] = -0.029545271769166 * v[85] + 0.0435335896909237 * v[112] + 0.0515478737652302 * v[111] + v[110]; + y[308] = 0.0294575486332178 * v[84] + 0.0443899892270565 * v[113] + 0.0518434084951878 * v[114] + v[115]; + y[309] = 0.0294575486332178 * v[116] + 0.0443899892270565 * v[117] + 0.0518434084951878 * v[118] + v[119]; + y[310] = 0.0294575486332178 * v[85] + 0.0443899892270565 * v[112] + 0.0518434084951878 * v[111] + v[110]; + y[312] = -0.0226244386285543 * v[84] + 0.03036268055439 * v[113] + 0.143480017781258 * v[114] + v[115]; + y[313] = -0.0226244386285543 * v[116] + 0.03036268055439 * v[117] + 0.143480017781258 * v[118] + v[119]; + y[314] = -0.0226244386285543 * v[85] + 0.03036268055439 * v[112] + 0.143480017781258 * v[111] + v[110]; + y[316] = 0.0228122211992741 * v[84] + 0.0326673835515976 * v[113] + 0.144575268030167 * v[114] + v[115]; + y[317] = 0.0228122211992741 * v[116] + 0.0326673835515976 * v[117] + 0.144575268030167 * v[118] + v[119]; + y[318] = 0.0228122211992741 * v[85] + 0.0326673835515976 * v[112] + 0.144575268030167 * v[111] + v[110]; + y[320] = -0.000356095697497949 * v[84] + 0.0570880249142647 * v[113] + 0.213441297411919 * v[114] + v[115]; + y[321] = -0.000356095697497949 * v[116] + 0.0570880249142647 * v[117] + 0.213441297411919 * v[118] + v[119]; + y[322] = -0.000356095697497949 * v[85] + 0.0570880249142647 * v[112] + 0.213441297411919 * v[111] + v[110]; + v[109] = cos(x[12]); + v[108] = sin(x[12]); + v[120] = 4.89663865010925e-12 * v[108]; + v[121] = v[84] * v[109] + v[113] * v[120] + v[114] * v[108]; + v[122] = -1. * v[108] - 4.89663865010925e-12 * v[120]; + v[123] = 4.89663865010925e-12 * v[109]; + v[124] = 0. - -1. * v[109]; + v[125] = v[84] * v[122] + v[113] * v[123] + v[114] * v[124]; + v[126] = -1. * v[113] + 4.89663865010925e-12 * v[114]; + v[127] = v[115] + 0.2155 * v[114]; + y[324] = 0.00531387468799949 * v[121] + -0.0231041144579649 * v[125] + -0.0224952418357134 * v[126] + v[127]; + v[128] = v[116] * v[109] + v[117] * v[120] + v[118] * v[108]; + v[129] = v[116] * v[122] + v[117] * v[123] + v[118] * v[124]; + v[130] = -1. * v[117] + 4.89663865010925e-12 * v[118]; + v[131] = v[119] + 0.2155 * v[118]; + y[325] = 0.00531387468799949 * v[128] + -0.0231041144579649 * v[129] + -0.0224952418357134 * v[130] + v[131]; + v[120] = v[85] * v[109] + v[112] * v[120] + v[111] * v[108]; + v[124] = v[85] * v[122] + v[112] * v[123] + v[111] * v[124]; + v[123] = -1. * v[112] + 4.89663865010925e-12 * v[111]; + v[122] = v[110] + 0.2155 * v[111]; + y[326] = 0.00531387468799949 * v[120] + -0.0231041144579649 * v[124] + -0.0224952418357134 * v[123] + v[122]; + y[328] = 0.00424248585477471 * v[121] + -0.0304307378828526 * v[125] + 0.0232355650514364 * v[126] + v[127]; + y[329] = 0.00424248585477471 * v[128] + -0.0304307378828526 * v[129] + 0.0232355650514364 * v[130] + v[131]; + y[330] = 0.00424248585477471 * v[120] + -0.0304307378828526 * v[124] + 0.0232355650514364 * v[123] + v[122]; + y[332] = 0.00347242690622807 * v[121] + 0.0357604399323463 * v[125] + -0.0275979526340961 * v[126] + v[127]; + y[333] = 0.00347242690622807 * v[128] + 0.0357604399323463 * v[129] + -0.0275979526340961 * v[130] + v[131]; + y[334] = 0.00347242690622807 * v[120] + 0.0357604399323463 * v[124] + -0.0275979526340961 * v[123] + v[122]; + y[336] = -0.00440459558740258 * v[121] + 0.029050262644887 * v[125] + 0.0197553057223558 * v[126] + v[127]; + y[337] = -0.00440459558740258 * v[128] + 0.029050262644887 * v[129] + 0.0197553057223558 * v[130] + v[131]; + y[338] = -0.00440459558740258 * v[120] + 0.029050262644887 * v[124] + 0.0197553057223558 * v[123] + v[122]; + v[108] = cos(x[13]); + v[109] = sin(x[13]); + v[132] = -1. * v[108] + 2.06823107110214e-13 * v[109]; + v[133] = 1.26217744835362e-29 * v[108] + 4.89663865010925e-12 * v[109]; + v[109] = 2.06823107110214e-13 * v[108] + v[109]; + v[108] = v[121] * v[132] + v[125] * v[133] + v[126] * v[109]; + v[134] = v[109] - -4.89652762780679e-12 * v[133]; + v[135] = -4.89652762780679e-12 * v[132] - -1.01273331923549e-24 * v[109]; + v[136] = -1.01273331923549e-24 * v[133] - v[132]; + v[137] = v[121] * v[134] + v[125] * v[135] + v[126] * v[136]; + v[138] = -1.01273331923549e-24 * v[121] + v[125] + -4.89652762780679e-12 * v[126]; + v[139] = v[127] + 0.081 * v[125]; + y[340] = -0.0199781656265259 * v[108] + -0.0210024751722813 * v[137] + 0.015956237912178 * v[138] + v[139]; + v[140] = v[128] * v[132] + v[129] * v[133] + v[130] * v[109]; + v[141] = v[128] * v[134] + v[129] * v[135] + v[130] * v[136]; + v[142] = -1.01273331923549e-24 * v[128] + v[129] + -4.89652762780679e-12 * v[130]; + v[143] = v[131] + 0.081 * v[129]; + y[341] = -0.0199781656265259 * v[140] + -0.0210024751722813 * v[141] + 0.015956237912178 * v[142] + v[143]; + v[109] = v[120] * v[132] + v[124] * v[133] + v[123] * v[109]; + v[136] = v[120] * v[134] + v[124] * v[135] + v[123] * v[136]; + v[135] = -1.01273331923549e-24 * v[120] + v[124] + -4.89652762780679e-12 * v[123]; + v[134] = v[122] + 0.081 * v[124]; + y[342] = -0.0199781656265259 * v[109] + -0.0210024751722813 * v[136] + 0.015956237912178 * v[135] + v[134]; + y[344] = 0.0191871430724859 * v[108] + -0.0194653403013945 * v[137] + 0.0160456709563732 * v[138] + v[139]; + y[345] = 0.0191871430724859 * v[140] + -0.0194653403013945 * v[141] + 0.0160456709563732 * v[142] + v[143]; + y[346] = 0.0191871430724859 * v[109] + -0.0194653403013945 * v[136] + 0.0160456709563732 * v[135] + v[134]; + y[348] = -0.0201440621167421 * v[108] + 0.0189183782786131 * v[137] + 0.0165120754390955 * v[138] + v[139]; + y[349] = -0.0201440621167421 * v[140] + 0.0189183782786131 * v[141] + 0.0165120754390955 * v[142] + v[143]; + y[350] = -0.0201440621167421 * v[109] + 0.0189183782786131 * v[136] + 0.0165120754390955 * v[135] + v[134]; + y[352] = 0.0215731263160706 * v[108] + 0.0232260525226593 * v[137] + 0.00288419239223003 * v[138] + v[139]; + y[353] = 0.0215731263160706 * v[140] + 0.0232260525226593 * v[141] + 0.00288419239223003 * v[142] + v[143]; + y[354] = 0.0215731263160706 * v[109] + 0.0232260525226593 * v[136] + 0.00288419239223003 * v[135] + v[134]; + y[356] = 0.022247614338994 * v[108] + 0.0269022006541491 * v[137] + 0.0263182260096073 * v[138] + v[139]; + y[357] = 0.022247614338994 * v[140] + 0.0269022006541491 * v[141] + 0.0263182260096073 * v[142] + v[143]; + y[358] = 0.022247614338994 * v[109] + 0.0269022006541491 * v[136] + 0.0263182260096073 * v[135] + v[134]; + y[360] = -0.012587617063022 * v[108] + -0.0367822142356301 * v[137] + 0.0720952862501248 * v[138] + v[139]; + y[361] = -0.012587617063022 * v[140] + -0.0367822142356301 * v[141] + 0.0720952862501248 * v[142] + v[143]; + y[362] = -0.012587617063022 * v[109] + -0.0367822142356301 * v[136] + 0.0720952862501248 * v[135] + v[134]; + y[364] = -0.0156136708164741 * v[108] + -0.0359627567126562 * v[137] + 0.11080842852592 * v[138] + v[139]; + y[365] = -0.0156136708164741 * v[140] + -0.0359627567126562 * v[141] + 0.11080842852592 * v[142] + v[143]; + y[366] = -0.0156136708164741 * v[109] + -0.0359627567126562 * v[136] + 0.11080842852592 * v[135] + v[134]; + y[368] = 0.016497643534955 * v[108] + 0.0343992957979445 * v[137] + 0.0716519562155126 * v[138] + v[139]; + y[369] = 0.016497643534955 * v[140] + 0.0343992957979445 * v[141] + 0.0716519562155126 * v[142] + v[143]; + y[370] = 0.016497643534955 * v[109] + 0.0343992957979445 * v[136] + 0.0716519562155126 * v[135] + v[134]; + y[372] = 0.0156358738203146 * v[108] + 0.0351002731763063 * v[137] + 0.107802299931652 * v[138] + v[139]; + y[373] = 0.0156358738203146 * v[140] + 0.0351002731763063 * v[141] + 0.107802299931652 * v[142] + v[143]; + y[374] = 0.0156358738203146 * v[109] + 0.0351002731763063 * v[136] + 0.107802299931652 * v[135] + v[134]; + y[376] = -0.0233254483937131 * v[108] + -0.060328906390759 * v[137] + 0.229128492395143 * v[138] + v[139]; + y[377] = -0.0233254483937131 * v[140] + -0.060328906390759 * v[141] + 0.229128492395143 * v[142] + v[143]; + y[378] = -0.0233254483937131 * v[109] + -0.060328906390759 * v[136] + 0.229128492395143 * v[135] + v[134]; + y[380] = -0.0278344700254539 * v[108] + -0.0652496087446016 * v[137] + 0.174521849313737 * v[138] + v[139]; + y[381] = -0.0278344700254539 * v[140] + -0.0652496087446016 * v[141] + 0.174521849313737 * v[142] + v[143]; + y[382] = -0.0278344700254539 * v[109] + -0.0652496087446016 * v[136] + 0.174521849313737 * v[135] + v[134]; + y[384] = -0.0245009807652867 * v[108] + -0.0612167200448942 * v[137] + 0.137942649576717 * v[138] + v[139]; + y[385] = -0.0245009807652867 * v[140] + -0.0612167200448942 * v[141] + 0.137942649576717 * v[142] + v[143]; + y[386] = -0.0245009807652867 * v[109] + -0.0612167200448942 * v[136] + 0.137942649576717 * v[135] + v[134]; + y[388] = 0.0232954529086768 * v[108] + 0.060317004059848 * v[137] + 0.229128492395133 * v[138] + v[139]; + y[389] = 0.0232954529086768 * v[140] + 0.060317004059848 * v[141] + 0.229128492395133 * v[142] + v[143]; + y[390] = 0.0232954529086768 * v[109] + 0.060317004059848 * v[136] + 0.229128492395133 * v[135] + v[134]; + y[392] = 0.0277966318512907 * v[108] + 0.0652448814791517 * v[137] + 0.174521849313751 * v[138] + v[139]; + y[393] = 0.0277966318512907 * v[140] + 0.0652448814791517 * v[141] + 0.174521849313751 * v[142] + v[143]; + y[394] = 0.0277966318512907 * v[109] + 0.0652448814791517 * v[136] + 0.174521849313751 * v[135] + v[134]; + y[396] = 0.0244695698111778 * v[108] + 0.0612066888027197 * v[137] + 0.137942649576715 * v[138] + v[139]; + y[397] = 0.0244695698111778 * v[140] + 0.0612066888027197 * v[141] + 0.137942649576715 * v[142] + v[143]; + y[398] = 0.0244695698111778 * v[109] + 0.0612066888027197 * v[136] + 0.137942649576715 * v[135] + v[134]; + y[404] = 0.000872313685249537 * v[0] + -0.0133955972269177 * v[2]; + y[405] = 0.000872313685249537 * v[1] + -0.0133955972269177 * v[0]; + y[408] = 0.00193074345588684 * v[7] + 0.0649560242891312 * v[9] + 0.00920608267188072 * v[10]; + y[409] = 0.00193074345588684 * v[11] + 0.0649560242891312 * v[8] + 0.00920608267188072 * v[3]; + y[410] = 0.36 + 0.00193074345588684 * v[4] + 4.50788602272322e-14 + 0.0649560242891312 * v[6]; + y[412] = -0.000562309403903782 * v[5] + 0.0219063013792038 * v[18] + 0.125700622797012 * v[19] + v[20]; + y[413] = -0.000562309403903782 * v[21] + 0.0219063013792038 * v[22] + 0.125700622797012 * v[23] + v[24]; + y[414] = -0.000562309403903782 * v[12] + 0.0219063013792038 * v[17] + 0.125700622797012 * v[16] + v[15]; + y[416] = 0.00356513448059559 * v[26] + 0.0733528286218643 * v[30] + 0.0188915058970451 * v[31] + v[32]; + y[417] = 0.00356513448059559 * v[33] + 0.0733528286218643 * v[34] + 0.0188915058970451 * v[35] + v[36]; + y[418] = 0.00356513448059559 * v[25] + 0.0733528286218643 * v[29] + 0.0188915058970451 * v[28] + v[27]; + y[420] = 0.00770308636128902 * v[13] + 0.0144911548122764 * v[42] + 0.123687468469143 * v[43] + v[44]; + y[421] = 0.00770308636128902 * v[45] + 0.0144911548122764 * v[46] + 0.123687468469143 * v[47] + v[48]; + y[422] = 0.00770308636128902 * v[14] + 0.0144911548122764 * v[41] + 0.123687468469143 * v[40] + v[39]; + y[424] = 0.00384843838401139 * v[50] + 0.00344000640325248 * v[54] + -0.00277649774216115 * v[55] + v[56]; + y[425] = 0.00384843838401139 * v[57] + 0.00344000640325248 * v[58] + -0.00277649774216115 * v[59] + v[60]; + y[426] = 0.00384843838401139 * v[49] + 0.00344000640325248 * v[53] + -0.00277649774216115 * v[52] + v[51]; + y[428] = 0.000802827416919172 * v[37] + 0.00246126996353269 * v[66] + 0.0201600454747677 * v[67] + v[68]; + y[429] = 0.000802827416919172 * v[69] + 0.00246126996353269 * v[70] + 0.0201600454747677 * v[71] + v[72]; + y[430] = 0.000802827416919172 * v[38] + 0.00246126996353269 * v[65] + 0.0201600454747677 * v[64] + v[63]; + y[432] = 0.000565047317650169 * v[37] + -0.000513007864356041 * v[66] + 0.0910757705569267 * v[67] + v[68]; + y[433] = 0.000565047317650169 * v[69] + -0.000513007864356041 * v[70] + 0.0910757705569267 * v[71] + v[72]; + y[434] = 0.000565047317650169 * v[38] + -0.000513007864356041 * v[65] + 0.0910757705569267 * v[64] + v[63]; + y[436] = -0.0238223746418953 * v[37] + -0.0607042051851749 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[437] = -0.0238223746418953 * v[69] + -0.0607042051851749 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[438] = -0.0238223746418953 * v[38] + -0.0607042051851749 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[440] = 0.0237917806953192 * v[37] + 0.0606930963695049 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[441] = 0.0237917806953192 * v[69] + 0.0606930963695049 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[442] = 0.0237917806953192 * v[38] + 0.0606930963695049 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[448] = 0.000872313685249537 * v[62] + -0.0133955972269177 * v[73]; + y[449] = 0.765 + 0.000872313685249537 * v[61] + -0.0133955972269177 * v[62]; + y[452] = 0.00193074345588684 * v[78] + 0.0649560242891312 * v[80] + 0.00920608267188072 * v[81]; + y[453] = 0.765 + 0.00193074345588684 * v[82] + 0.0649560242891312 * v[79] + 0.00920608267188072 * v[74]; + y[454] = 0.36 + 0.00193074345588684 * v[75] + 4.50788602272322e-14 + 0.0649560242891312 * v[77]; + y[456] = -0.000562309403903782 * v[76] + 0.0219063013792038 * v[89] + 0.125700622797012 * v[90] + v[91]; + y[457] = -0.000562309403903782 * v[92] + 0.0219063013792038 * v[93] + 0.125700622797012 * v[94] + v[95]; + y[458] = -0.000562309403903782 * v[83] + 0.0219063013792038 * v[88] + 0.125700622797012 * v[87] + v[86]; + y[460] = 0.00356513448059559 * v[97] + 0.0733528286218643 * v[101] + 0.0188915058970451 * v[102] + v[103]; + y[461] = 0.00356513448059559 * v[104] + 0.0733528286218643 * v[105] + 0.0188915058970451 * v[106] + v[107]; + y[462] = 0.00356513448059559 * v[96] + 0.0733528286218643 * v[100] + 0.0188915058970451 * v[99] + v[98]; + y[464] = 0.00770308636128902 * v[84] + 0.0144911548122764 * v[113] + 0.123687468469143 * v[114] + v[115]; + y[465] = 0.00770308636128902 * v[116] + 0.0144911548122764 * v[117] + 0.123687468469143 * v[118] + v[119]; + y[466] = 0.00770308636128902 * v[85] + 0.0144911548122764 * v[112] + 0.123687468469143 * v[111] + v[110]; + y[468] = 0.00384843838401139 * v[121] + 0.00344000640325248 * v[125] + -0.00277649774216115 * v[126] + v[127]; + y[469] = 0.00384843838401139 * v[128] + 0.00344000640325248 * v[129] + -0.00277649774216115 * v[130] + v[131]; + y[470] = 0.00384843838401139 * v[120] + 0.00344000640325248 * v[124] + -0.00277649774216115 * v[123] + v[122]; + y[472] = 0.000802827416919172 * v[108] + 0.00246126996353269 * v[137] + 0.0201600454747677 * v[138] + v[139]; + y[473] = 0.000802827416919172 * v[140] + 0.00246126996353269 * v[141] + 0.0201600454747677 * v[142] + v[143]; + y[474] = 0.000802827416919172 * v[109] + 0.00246126996353269 * v[136] + 0.0201600454747677 * v[135] + v[134]; + y[476] = 0.000565047317650169 * v[108] + -0.000513007864356041 * v[137] + 0.0910757705569267 * v[138] + v[139]; + y[477] = 0.000565047317650169 * v[140] + -0.000513007864356041 * v[141] + 0.0910757705569267 * v[142] + v[143]; + y[478] = 0.000565047317650169 * v[109] + -0.000513007864356041 * v[136] + 0.0910757705569267 * v[135] + v[134]; + y[480] = -0.0238223746418953 * v[108] + -0.0607042051851749 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[481] = -0.0238223746418953 * v[140] + -0.0607042051851749 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[482] = -0.0238223746418953 * v[109] + -0.0607042051851749 * v[136] + 0.190582081675529 * v[135] + v[134]; + y[484] = 0.0237917806953192 * v[108] + 0.0606930963695049 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[485] = 0.0237917806953192 * v[140] + 0.0606930963695049 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[486] = 0.0237917806953192 * v[109] + 0.0606930963695049 * v[136] + 0.190582081675529 * v[135] + v[134]; + // dependent variables without operations + y[0] = -0.0735198631882668; + y[1] = -0.0541173815727234; + y[2] = 0.0768099054694176; + y[3] = 0.105830922722816; + y[4] = -0.0735262334346771; + y[5] = 0.0529109761118889; + y[6] = 0.0793738961219788; + y[7] = 0.104262858629227; + y[8] = 0.0390705168247223; + y[9] = -0.0450286567211151; + y[10] = 0.0765031948685646; + y[11] = 0.106655471026897; + y[12] = 0.0499769896268845; + y[13] = 0.0486934892833233; + y[14] = 0.0640255585312843; + y[15] = 0.10622838139534; + y[18] = 0.21666914716363; + y[19] = 0.107229880988598; + y[22] = 0.21647381156683; + y[23] = 0.0835958793759346; + y[26] = 0.215699472725391; + y[27] = 0.0838129222393036; + y[30] = 0.345404357910156; + y[31] = 0.098225325345993; + y[34] = 0.345727117061615; + y[35] = 0.097195640206337; + y[39] = 0.0975483432412148; + y[43] = 0.0937116593122482; + y[47] = 0.0810142904520035; + y[51] = 0.081512838602066; + y[55] = 0.0968621224164963; + y[59] = 0.0760728046298027; + y[63] = 0.0766041874885559; + y[67] = 0.0939076915383339; + y[71] = 0.0926672369241714; + y[75] = 0.0911291986703873; + y[79] = 0.0827247872948647; + y[83] = 0.0821510478854179; + y[87] = 0.0694684311747551; + y[91] = 0.0699467360973358; + y[95] = 0.0867823362350464; + y[99] = 0.0661434233188629; + y[103] = 0.0676505789160728; + y[107] = 0.0714448466897011; + y[111] = 0.0710318759083748; + y[115] = 0.0704528912901878; + y[119] = 0.0710151568055153; + y[123] = 0.0592901185154915; + y[127] = 0.0694939121603966; + y[131] = 0.0688671767711639; + y[135] = 0.07082200050354; + y[139] = 0.0727226212620735; + y[143] = 0.0363594107329845; + y[147] = 0.0361910536885262; + y[151] = 0.0362601280212402; + y[155] = 0.0339092910289764; + y[159] = 0.0348900593817234; + y[163] = 0.0449101217091084; + y[167] = 0.0442281886935234; + y[171] = 0.0448950715363026; + y[175] = 0.0444425120949745; + y[179] = 0.0432860739529133; + y[183] = 0.0269252900034189; + y[187] = 0.0291912201792002; + y[191] = 0.0432860739529133; + y[195] = 0.0269252900034189; + y[199] = 0.0291912201792002; + y[200] = -0.0735198631882668; + y[201] = 0.710882618427277; + y[202] = 0.0768099054694176; + y[203] = 0.105830922722816; + y[204] = -0.0735262334346771; + y[205] = 0.817910976111889; + y[206] = 0.0793738961219788; + y[207] = 0.104262858629227; + y[208] = 0.0390705168247223; + y[209] = 0.719971343278885; + y[210] = 0.0765031948685646; + y[211] = 0.106655471026897; + y[212] = 0.0499769896268845; + y[213] = 0.813693489283323; + y[214] = 0.0640255585312843; + y[215] = 0.10622838139534; + y[218] = 0.21666914716363; + y[219] = 0.107229880988598; + y[222] = 0.21647381156683; + y[223] = 0.0835958793759346; + y[226] = 0.215699472725391; + y[227] = 0.0838129222393036; + y[230] = 0.345404357910156; + y[231] = 0.098225325345993; + y[234] = 0.345727117061615; + y[235] = 0.097195640206337; + y[239] = 0.0975483432412148; + y[243] = 0.0937116593122482; + y[247] = 0.0810142904520035; + y[251] = 0.081512838602066; + y[255] = 0.0968621224164963; + y[259] = 0.0760728046298027; + y[263] = 0.0766041874885559; + y[267] = 0.0939076915383339; + y[271] = 0.0926672369241714; + y[275] = 0.0911291986703873; + y[279] = 0.0827247872948647; + y[283] = 0.0821510478854179; + y[287] = 0.0694684311747551; + y[291] = 0.0699467360973358; + y[295] = 0.0867823362350464; + y[299] = 0.0661434233188629; + y[303] = 0.0676505789160728; + y[307] = 0.0714448466897011; + y[311] = 0.0710318759083748; + y[315] = 0.0704528912901878; + y[319] = 0.0710151568055153; + y[323] = 0.0592901185154915; + y[327] = 0.0694939121603966; + y[331] = 0.0688671767711639; + y[335] = 0.07082200050354; + y[339] = 0.0727226212620735; + y[343] = 0.0363594107329845; + y[347] = 0.0361910536885262; + y[351] = 0.0362601280212402; + y[355] = 0.0339092910289764; + y[359] = 0.0348900593817234; + y[363] = 0.0449101217091084; + y[367] = 0.0442281886935234; + y[371] = 0.0448950715363026; + y[375] = 0.0444425120949745; + y[379] = 0.0432860739529133; + y[383] = 0.0269252900034189; + y[387] = 0.0291912201792002; + y[391] = 0.0432860739529133; + y[395] = 0.0269252900034189; + y[399] = 0.0291912201792002; + y[400] = -0.012415380217135; + y[401] = -0.00161365361418575; + y[402] = 0.0705235376954079; + y[403] = 0.186638832092285; + y[406] = 0.276647390127182; + y[407] = 0.175033777952194; + y[411] = 0.174783602356911; + y[415] = 0.164482057094574; + y[419] = 0.153639882802963; + y[423] = 0.158965557813644; + y[427] = 0.111575603485107; + y[431] = 0.0679832771420479; + y[435] = 0.0879067108035088; + y[439] = 0.0818375200033188; + y[443] = 0.0818375200033188; + y[444] = -0.012415380217135; + y[445] = 0.763386368751526; + y[446] = 0.0705235376954079; + y[447] = 0.186638832092285; + y[450] = 0.276647390127182; + y[451] = 0.175033777952194; + y[455] = 0.174783602356911; + y[459] = 0.164482057094574; + y[463] = 0.153639882802963; + y[467] = 0.158965557813644; + y[471] = 0.111575603485107; + y[475] = 0.0679832771420479; + y[479] = 0.0879067108035088; + y[483] = 0.0818375200033188; + y[487] = 0.0818375200033188; + + + Debug output; + + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[0], + y[1], + y[2], + y[3])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[4], + y[5], + y[6], + y[7])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[8], + y[9], + y[10], + y[11])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[12], + y[13], + y[14], + y[15])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[16], + y[17], + y[18], + y[19])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[20], + y[21], + y[22], + y[23])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[24], + y[25], + y[26], + y[27])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[28], + y[29], + y[30], + y[31])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[32], + y[33], + y[34], + y[35])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[36], + y[37], + y[38], + y[39])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[40], + y[41], + y[42], + y[43])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[44], + y[45], + y[46], + y[47])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[48], + y[49], + y[50], + y[51])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[52], + y[53], + y[54], + y[55])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[56], + y[57], + y[58], + y[59])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[60], + y[61], + y[62], + y[63])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[64], + y[65], + y[66], + y[67])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[68], + y[69], + y[70], + y[71])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[72], + y[73], + y[74], + y[75])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[76], + y[77], + y[78], + y[79])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[80], + y[81], + y[82], + y[83])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[84], + y[85], + y[86], + y[87])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[88], + y[89], + y[90], + y[91])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[92], + y[93], + y[94], + y[95])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[96], + y[97], + y[98], + y[99])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[100], + y[101], + y[102], + y[103])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[104], + y[105], + y[106], + y[107])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[108], + y[109], + y[110], + y[111])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[112], + y[113], + y[114], + y[115])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[116], + y[117], + y[118], + y[119])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[120], + y[121], + y[122], + y[123])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[124], + y[125], + y[126], + y[127])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[128], + y[129], + y[130], + y[131])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[132], + y[133], + y[134], + y[135])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[136], + y[137], + y[138], + y[139])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[140], + y[141], + y[142], + y[143])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[144], + y[145], + y[146], + y[147])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[148], + y[149], + y[150], + y[151])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[152], + y[153], + y[154], + y[155])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[156], + y[157], + y[158], + y[159])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[160], + y[161], + y[162], + y[163])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[164], + y[165], + y[166], + y[167])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[168], + y[169], + y[170], + y[171])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[172], + y[173], + y[174], + y[175])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[176], + y[177], + y[178], + y[179])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[180], + y[181], + y[182], + y[183])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[184], + y[185], + y[186], + y[187])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[188], + y[189], + y[190], + y[191])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[192], + y[193], + y[194], + y[195])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[196], + y[197], + y[198], + y[199])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[200], + y[201], + y[202], + y[203])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[204], + y[205], + y[206], + y[207])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[208], + y[209], + y[210], + y[211])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[212], + y[213], + y[214], + y[215])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[216], + y[217], + y[218], + y[219])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[220], + y[221], + y[222], + y[223])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[224], + y[225], + y[226], + y[227])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[228], + y[229], + y[230], + y[231])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[232], + y[233], + y[234], + y[235])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[236], + y[237], + y[238], + y[239])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[240], + y[241], + y[242], + y[243])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[244], + y[245], + y[246], + y[247])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[248], + y[249], + y[250], + y[251])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[252], + y[253], + y[254], + y[255])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[256], + y[257], + y[258], + y[259])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[260], + y[261], + y[262], + y[263])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[264], + y[265], + y[266], + y[267])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[268], + y[269], + y[270], + y[271])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[272], + y[273], + y[274], + y[275])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[276], + y[277], + y[278], + y[279])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[280], + y[281], + y[282], + y[283])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[284], + y[285], + y[286], + y[287])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[288], + y[289], + y[290], + y[291])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[292], + y[293], + y[294], + y[295])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[296], + y[297], + y[298], + y[299])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[300], + y[301], + y[302], + y[303])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[304], + y[305], + y[306], + y[307])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[308], + y[309], + y[310], + y[311])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[312], + y[313], + y[314], + y[315])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[316], + y[317], + y[318], + y[319])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[320], + y[321], + y[322], + y[323])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[324], + y[325], + y[326], + y[327])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[328], + y[329], + y[330], + y[331])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[332], + y[333], + y[334], + y[335])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[336], + y[337], + y[338], + y[339])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[340], + y[341], + y[342], + y[343])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[344], + y[345], + y[346], + y[347])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[348], + y[349], + y[350], + y[351])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[352], + y[353], + y[354], + y[355])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[356], + y[357], + y[358], + y[359])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[360], + y[361], + y[362], + y[363])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[364], + y[365], + y[366], + y[367])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[368], + y[369], + y[370], + y[371])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[372], + y[373], + y[374], + y[375])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[376], + y[377], + y[378], + y[379])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[380], + y[381], + y[382], + y[383])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[384], + y[385], + y[386], + y[387])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[388], + y[389], + y[390], + y[391])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[392], + y[393], + y[394], + y[395])); + + output.first.emplace_back( + sphere_environment_get_collisions( + environment, + y[396], + y[397], + y[398], + y[399])); + + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(0, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(0, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(0, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(0, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(0, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(1, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(1, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(1, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(1, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(1, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(2, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(2, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(2, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(2, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(2, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(3, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(3, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(3, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(3, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(3, 23); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(0, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(0, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(0, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(0, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(0, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(0, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(0, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(1, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(1, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(1, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(1, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(1, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(1, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(1, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(2, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(2, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(2, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(2, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(2, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(2, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(2, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(3, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(3, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(3, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(3, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(3, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(3, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(3, 30); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(0, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(0, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(0, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(0, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(1, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(1, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(1, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(1, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(2, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(2, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(2, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(2, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(3, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(3, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(3, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(3, 34); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(0, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(0, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(0, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(0, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(0, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(1, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(1, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(1, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(1, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(1, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(2, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(2, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(2, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(2, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(2, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(3, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(3, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(3, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(3, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(3, 39); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(0, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(0, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(0, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(0, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(1, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(1, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(1, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(1, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(2, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(2, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(2, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(2, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(3, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(3, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(3, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(3, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(0, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(0, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(0, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(1, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(1, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(1, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(2, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(2, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(2, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(3, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(3, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(3, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(0, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(0, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(0, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(1, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(1, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(1, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(2, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(2, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(2, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(3, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(3, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(3, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(0, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(0, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(0, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(0, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(0, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(1, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(1, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(1, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(1, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(1, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(2, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(2, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(2, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(2, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(2, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(3, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(3, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(3, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(3, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(3, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(0, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(0, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(0, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(0, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(0, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(1, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(1, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(1, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(1, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(1, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(2, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(2, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(2, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(2, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(2, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(3, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(3, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(3, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(3, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(3, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(0, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(0, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(0, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(0, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(0, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(1, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(1, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(1, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(1, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(1, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(2, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(2, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(2, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(2, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(2, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(3, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(3, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(3, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(3, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(3, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(0, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(0, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(0, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(0, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(0, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(1, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(1, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(1, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(1, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(1, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(2, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(2, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(2, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(2, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(2, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(3, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(3, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(3, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(3, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(3, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(0, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(0, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(0, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(0, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(0, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(0, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(0, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(1, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(1, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(1, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(1, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(1, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(1, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(1, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(2, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(2, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(2, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(2, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(2, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(2, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(2, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(3, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(3, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(3, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(3, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(3, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(3, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(3, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(0, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(0, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(0, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(0, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(1, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(1, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(1, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(1, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(2, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(2, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(2, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(2, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(3, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(3, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(3, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(3, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(0, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(0, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(0, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(0, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(0, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(1, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(1, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(1, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(1, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(1, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(2, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(2, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(2, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(2, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(2, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(3, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(3, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(3, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(3, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(3, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(0, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(0, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(0, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(0, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(1, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(1, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(1, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(1, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(2, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(2, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(2, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(2, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(3, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(3, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(3, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(3, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(0, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(0, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(0, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(1, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(1, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(1, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(2, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(2, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(2, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(3, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(3, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(3, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(0, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(0, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(0, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(1, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(1, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(1, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(2, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(2, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(2, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(3, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(3, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(3, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(4, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(4, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(4, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(4, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(4, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(5, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(5, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(5, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(5, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(5, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(6, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(6, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(6, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(6, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(6, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(7, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(7, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(7, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(7, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(7, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(8, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(8, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(8, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(8, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(8, 23); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(4, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(4, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(4, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(4, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(4, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(4, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(4, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(5, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(5, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(5, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(5, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(5, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(5, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(5, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(6, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(6, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(6, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(6, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(6, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(6, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(6, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(7, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(7, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(7, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(7, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(7, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(7, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(7, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(8, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(8, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(8, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(8, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(8, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(8, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(8, 30); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(4, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(4, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(4, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(4, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(5, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(5, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(5, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(5, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(6, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(6, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(6, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(6, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(7, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(7, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(7, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(7, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(8, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(8, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(8, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(8, 34); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(4, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(4, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(4, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(4, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(4, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(5, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(5, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(5, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(5, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(5, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(6, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(6, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(6, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(6, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(6, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(7, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(7, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(7, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(7, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(7, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(8, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(8, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(8, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(8, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(8, 39); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(4, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(4, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(4, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(4, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(5, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(5, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(5, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(5, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(6, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(6, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(6, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(6, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(7, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(7, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(7, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(7, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(8, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(8, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(8, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(8, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(4, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(4, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(4, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(5, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(5, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(5, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(6, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(6, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(6, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(7, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(7, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(7, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(8, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(8, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(8, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(4, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(4, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(4, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(5, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(5, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(5, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(6, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(6, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(6, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(7, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(7, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(7, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(8, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(8, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(8, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(4, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(4, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(4, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(4, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(5, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(5, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(5, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(5, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(6, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(6, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(6, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(6, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(7, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(7, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(7, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(7, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(8, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(8, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(8, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(8, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(4, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(4, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(4, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(4, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(4, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(5, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(5, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(5, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(5, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(5, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(6, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(6, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(6, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(6, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(6, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(7, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(7, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(7, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(7, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(7, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(8, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(8, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(8, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(8, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(8, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(4, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(4, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(4, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(4, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(4, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(5, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(5, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(5, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(5, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(5, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(6, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(6, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(6, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(6, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(6, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(7, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(7, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(7, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(7, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(7, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(8, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(8, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(8, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(8, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(8, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(4, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(4, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(4, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(4, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(4, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(5, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(5, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(5, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(5, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(5, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(6, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(6, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(6, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(6, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(6, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(7, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(7, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(7, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(7, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(7, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(8, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(8, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(8, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(8, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(8, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(4, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(4, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(4, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(4, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(4, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(5, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(5, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(5, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(5, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(5, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(6, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(6, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(6, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(6, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(6, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(7, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(7, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(7, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(7, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(7, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(8, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(8, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(8, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(8, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(8, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(4, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(4, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(4, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(4, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(4, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(4, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(4, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(5, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(5, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(5, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(5, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(5, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(5, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(5, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(6, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(6, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(6, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(6, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(6, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(6, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(6, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(7, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(7, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(7, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(7, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(7, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(7, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(7, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(8, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(8, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(8, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(8, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(8, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(8, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(8, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(4, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(4, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(4, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(4, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(5, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(5, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(5, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(5, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(6, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(6, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(6, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(6, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(7, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(7, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(7, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(7, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(8, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(8, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(8, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(8, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(4, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(4, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(4, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(4, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(4, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(5, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(5, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(5, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(5, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(5, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(6, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(6, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(6, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(6, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(6, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(7, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(7, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(7, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(7, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(7, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(8, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(8, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(8, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(8, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(8, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(4, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(4, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(4, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(4, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(5, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(5, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(5, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(5, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(6, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(6, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(6, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(6, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(7, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(7, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(7, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(7, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(8, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(8, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(8, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(8, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(4, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(4, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(4, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(5, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(5, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(5, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(6, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(6, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(6, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(7, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(7, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(7, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(8, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(8, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(8, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(4, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(4, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(4, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(5, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(5, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(5, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(6, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(6, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(6, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(7, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(7, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(7, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(8, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(8, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(8, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(9, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(9, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(9, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(9, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(9, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(10, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(10, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(10, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(10, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(10, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(11, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(11, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(11, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(11, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(11, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(12, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(12, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(12, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(12, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(12, 23); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) + { + output.second.emplace_back(13, 19); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) + { + output.second.emplace_back(13, 20); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) + { + output.second.emplace_back(13, 21); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) + { + output.second.emplace_back(13, 22); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) + { + output.second.emplace_back(13, 23); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(9, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(9, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(9, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(9, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(9, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(9, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(9, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(10, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(10, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(10, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(10, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(10, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(10, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(10, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(11, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(11, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(11, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(11, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(11, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(11, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(11, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(12, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(12, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(12, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(12, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(12, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(12, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(12, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(13, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(13, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(13, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(13, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(13, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(13, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(13, 30); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(9, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(9, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(9, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(9, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(10, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(10, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(10, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(10, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(11, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(11, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(11, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(11, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(12, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(12, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(12, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(12, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(13, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(13, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(13, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(13, 34); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(9, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(9, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(9, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(9, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(9, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(10, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(10, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(10, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(10, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(10, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(11, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(11, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(11, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(11, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(11, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(12, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(12, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(12, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(12, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(12, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(13, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(13, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(13, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(13, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(13, 39); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(9, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(9, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(9, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(9, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(10, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(10, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(10, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(10, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(11, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(11, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(11, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(11, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(12, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(12, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(12, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(12, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(13, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(13, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(13, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(13, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(9, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(9, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(9, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(10, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(10, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(10, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(11, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(11, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(11, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(12, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(12, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(12, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(13, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(13, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(13, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(9, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(9, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(9, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(10, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(10, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(10, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(11, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(11, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(11, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(12, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(12, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(12, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(13, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(13, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(13, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(9, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(9, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(9, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(9, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(10, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(10, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(10, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(10, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(11, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(11, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(11, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(11, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(12, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(12, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(12, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(12, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(13, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(13, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(13, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(13, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(9, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(9, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(9, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(9, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(9, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(10, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(10, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(10, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(10, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(10, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(11, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(11, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(11, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(11, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(11, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(12, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(12, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(12, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(12, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(12, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(13, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(13, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(13, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(13, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(13, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(9, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(9, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(9, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(9, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(9, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(10, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(10, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(10, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(10, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(10, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(11, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(11, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(11, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(11, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(11, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(12, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(12, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(12, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(12, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(12, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(13, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(13, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(13, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(13, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(13, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(9, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(9, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(9, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(9, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(9, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(10, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(10, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(10, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(10, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(10, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(11, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(11, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(11, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(11, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(11, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(12, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(12, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(12, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(12, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(12, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(13, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(13, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(13, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(13, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(13, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(9, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(9, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(9, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(9, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(9, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(10, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(10, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(10, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(10, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(10, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(11, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(11, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(11, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(11, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(11, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(12, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(12, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(12, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(12, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(12, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(13, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(13, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(13, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(13, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(13, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(9, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(9, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(9, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(9, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(9, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(9, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(9, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(10, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(10, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(10, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(10, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(10, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(10, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(10, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(11, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(11, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(11, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(11, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(11, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(11, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(11, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(12, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(12, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(12, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(12, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(12, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(12, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(12, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(13, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(13, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(13, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(13, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(13, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(13, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(13, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(9, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(9, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(9, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(9, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(10, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(10, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(10, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(10, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(11, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(11, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(11, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(11, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(12, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(12, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(12, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(12, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(13, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(13, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(13, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(13, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(9, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(9, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(9, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(9, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(9, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(10, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(10, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(10, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(10, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(10, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(11, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(11, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(11, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(11, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(11, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(12, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(12, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(12, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(12, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(12, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(13, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(13, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(13, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(13, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(13, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(9, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(9, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(9, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(9, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(10, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(10, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(10, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(10, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(11, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(11, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(11, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(11, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(12, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(12, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(12, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(12, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(13, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(13, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(13, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(13, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(9, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(9, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(9, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(10, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(10, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(10, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(11, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(11, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(11, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(12, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(12, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(12, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(13, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(13, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(13, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(9, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(9, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(9, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(10, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(10, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(10, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(11, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(11, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(11, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(12, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(12, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(12, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(13, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(13, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(13, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(14, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(14, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(14, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(14, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(14, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(14, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(14, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(15, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(15, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(15, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(15, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(15, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(15, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(15, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(16, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(16, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(16, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(16, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(16, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(16, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(16, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(17, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(17, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(17, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(17, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(17, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(17, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(17, 30); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) + { + output.second.emplace_back(18, 24); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) + { + output.second.emplace_back(18, 25); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) + { + output.second.emplace_back(18, 26); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) + { + output.second.emplace_back(18, 27); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) + { + output.second.emplace_back(18, 28); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) + { + output.second.emplace_back(18, 29); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) + { + output.second.emplace_back(18, 30); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(14, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(14, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(14, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(14, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(15, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(15, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(15, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(15, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(16, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(16, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(16, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(16, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(17, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(17, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(17, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(17, 34); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) + { + output.second.emplace_back(18, 31); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) + { + output.second.emplace_back(18, 32); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) + { + output.second.emplace_back(18, 33); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) + { + output.second.emplace_back(18, 34); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(14, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(14, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(14, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(14, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(14, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(15, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(15, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(15, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(15, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(15, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(16, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(16, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(16, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(16, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(16, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(17, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(17, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(17, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(17, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(17, 39); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) + { + output.second.emplace_back(18, 35); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) + { + output.second.emplace_back(18, 36); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) + { + output.second.emplace_back(18, 37); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) + { + output.second.emplace_back(18, 38); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) + { + output.second.emplace_back(18, 39); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(14, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(14, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(14, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(14, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(15, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(15, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(15, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(15, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(16, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(16, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(16, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(16, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(17, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(17, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(17, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(17, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(18, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(18, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(18, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(18, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(14, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(14, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(14, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(15, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(15, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(15, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(16, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(16, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(16, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(17, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(17, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(17, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(18, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(18, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(18, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(14, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(14, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(14, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(15, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(15, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(15, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(16, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(16, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(16, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(17, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(17, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(17, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(18, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(18, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(18, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(14, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(14, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(14, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(14, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(15, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(15, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(15, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(15, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(16, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(16, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(16, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(16, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(17, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(17, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(17, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(17, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(18, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(18, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(18, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(18, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(14, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(14, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(14, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(14, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(14, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(15, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(15, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(15, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(15, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(15, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(16, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(16, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(16, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(16, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(16, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(17, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(17, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(17, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(17, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(17, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(18, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(18, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(18, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(18, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(18, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(14, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(14, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(14, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(14, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(14, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(15, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(15, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(15, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(15, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(15, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(16, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(16, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(16, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(16, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(16, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(17, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(17, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(17, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(17, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(17, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(18, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(18, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(18, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(18, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(18, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(14, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(14, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(14, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(14, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(14, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(15, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(15, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(15, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(15, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(15, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(16, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(16, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(16, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(16, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(16, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(17, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(17, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(17, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(17, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(17, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(18, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(18, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(18, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(18, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(18, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(14, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(14, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(14, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(14, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(14, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(15, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(15, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(15, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(15, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(15, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(16, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(16, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(16, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(16, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(16, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(17, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(17, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(17, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(17, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(17, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(18, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(18, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(18, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(18, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(18, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(14, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(14, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(14, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(14, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(14, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(14, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(14, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(15, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(15, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(15, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(15, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(15, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(15, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(15, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(16, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(16, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(16, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(16, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(16, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(16, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(16, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(17, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(17, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(17, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(17, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(17, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(17, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(17, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(18, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(18, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(18, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(18, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(18, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(18, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(18, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(14, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(14, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(14, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(14, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(15, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(15, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(15, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(15, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(16, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(16, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(16, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(16, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(17, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(17, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(17, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(17, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(18, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(18, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(18, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(18, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(14, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(14, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(14, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(14, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(14, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(15, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(15, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(15, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(15, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(15, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(16, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(16, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(16, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(16, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(16, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(17, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(17, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(17, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(17, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(17, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(18, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(18, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(18, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(18, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(18, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(14, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(14, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(14, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(14, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(15, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(15, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(15, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(15, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(16, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(16, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(16, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(16, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(17, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(17, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(17, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(17, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(18, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(18, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(18, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(18, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(14, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(14, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(14, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(15, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(15, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(15, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(16, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(16, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(16, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(17, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(17, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(17, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(18, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(18, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(18, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(14, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(14, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(14, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(15, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(15, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(15, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(16, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(16, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(16, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(17, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(17, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(17, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(18, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(18, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(18, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(19, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(19, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(19, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(19, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(20, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(20, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(20, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(20, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(21, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(21, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(21, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(21, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(22, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(22, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(22, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(22, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(23, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(23, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(23, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(23, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(19, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(19, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(19, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(20, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(20, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(20, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(21, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(21, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(21, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(22, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(22, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(22, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(23, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(23, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(23, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(19, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(19, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(19, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(20, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(20, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(20, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(21, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(21, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(21, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(22, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(22, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(22, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(23, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(23, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(23, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(19, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(19, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(19, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(19, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(20, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(20, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(20, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(20, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(21, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(21, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(21, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(21, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(22, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(22, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(22, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(22, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(23, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(23, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(23, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(23, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(19, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(19, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(19, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(19, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(19, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(20, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(20, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(20, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(20, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(20, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(21, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(21, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(21, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(21, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(21, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(22, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(22, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(22, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(22, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(22, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(23, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(23, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(23, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(23, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(23, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(19, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(19, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(19, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(19, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(19, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(20, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(20, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(20, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(20, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(20, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(21, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(21, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(21, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(21, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(21, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(22, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(22, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(22, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(22, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(22, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(23, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(23, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(23, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(23, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(23, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(19, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(19, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(19, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(19, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(19, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(20, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(20, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(20, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(20, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(20, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(21, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(21, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(21, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(21, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(21, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(22, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(22, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(22, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(22, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(22, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(23, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(23, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(23, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(23, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(23, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(19, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(19, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(19, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(19, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(19, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(20, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(20, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(20, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(20, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(20, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(21, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(21, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(21, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(21, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(21, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(22, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(22, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(22, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(22, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(22, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(23, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(23, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(23, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(23, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(23, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(19, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(19, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(19, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(19, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(19, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(19, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(19, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(20, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(20, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(20, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(20, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(20, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(20, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(20, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(21, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(21, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(21, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(21, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(21, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(21, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(21, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(22, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(22, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(22, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(22, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(22, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(22, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(22, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(23, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(23, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(23, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(23, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(23, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(23, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(23, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(19, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(19, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(19, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(19, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(20, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(20, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(20, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(20, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(21, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(21, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(21, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(21, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(22, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(22, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(22, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(22, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(23, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(23, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(23, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(23, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(19, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(19, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(19, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(19, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(19, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(20, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(20, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(20, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(20, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(20, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(21, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(21, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(21, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(21, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(21, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(22, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(22, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(22, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(22, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(22, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(23, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(23, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(23, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(23, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(23, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(19, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(19, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(19, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(19, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(20, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(20, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(20, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(20, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(21, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(21, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(21, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(21, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(22, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(22, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(22, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(22, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(23, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(23, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(23, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(23, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(19, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(19, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(19, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(20, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(20, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(20, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(21, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(21, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(21, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(22, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(22, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(22, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(23, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(23, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(23, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(19, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(19, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(19, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(20, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(20, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(20, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(21, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(21, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(21, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(22, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(22, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(22, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(23, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(23, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(23, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(24, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(24, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(24, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(24, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(25, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(25, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(25, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(25, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(26, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(26, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(26, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(26, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(27, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(27, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(27, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(27, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(28, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(28, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(28, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(28, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(29, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(29, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(29, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(29, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(30, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(30, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(30, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(30, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(24, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(24, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(24, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(25, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(25, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(25, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(26, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(26, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(26, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(27, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(27, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(27, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(28, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(28, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(28, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(29, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(29, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(29, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(30, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(30, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(30, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(24, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(24, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(24, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(25, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(25, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(25, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(26, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(26, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(26, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(27, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(27, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(27, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(28, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(28, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(28, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(29, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(29, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(29, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(30, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(30, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(30, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(24, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(24, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(24, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(24, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(25, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(25, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(25, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(25, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(26, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(26, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(26, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(26, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(27, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(27, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(27, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(27, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(28, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(28, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(28, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(28, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(29, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(29, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(29, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(29, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(30, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(30, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(30, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(30, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(24, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(24, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(24, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(24, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(24, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(25, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(25, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(25, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(25, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(25, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(26, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(26, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(26, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(26, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(26, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(27, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(27, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(27, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(27, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(27, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(28, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(28, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(28, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(28, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(28, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(29, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(29, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(29, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(29, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(29, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(30, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(30, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(30, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(30, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(30, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(24, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(24, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(24, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(24, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(24, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(25, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(25, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(25, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(25, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(25, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(26, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(26, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(26, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(26, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(26, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(27, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(27, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(27, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(27, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(27, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(28, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(28, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(28, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(28, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(28, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(29, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(29, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(29, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(29, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(29, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(30, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(30, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(30, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(30, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(30, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(24, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(24, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(24, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(24, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(24, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(25, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(25, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(25, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(25, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(25, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(26, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(26, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(26, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(26, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(26, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(27, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(27, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(27, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(27, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(27, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(28, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(28, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(28, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(28, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(28, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(29, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(29, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(29, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(29, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(29, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(30, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(30, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(30, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(30, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(30, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(24, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(24, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(24, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(24, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(24, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(25, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(25, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(25, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(25, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(25, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(26, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(26, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(26, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(26, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(26, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(27, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(27, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(27, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(27, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(27, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(28, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(28, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(28, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(28, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(28, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(29, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(29, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(29, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(29, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(29, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(30, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(30, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(30, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(30, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(30, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(24, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(24, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(24, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(24, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(24, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(24, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(24, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(25, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(25, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(25, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(25, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(25, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(25, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(25, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(26, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(26, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(26, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(26, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(26, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(26, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(26, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(27, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(27, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(27, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(27, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(27, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(27, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(27, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(28, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(28, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(28, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(28, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(28, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(28, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(28, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(29, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(29, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(29, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(29, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(29, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(29, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(29, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(30, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(30, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(30, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(30, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(30, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(30, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(30, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(24, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(24, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(24, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(24, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(25, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(25, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(25, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(25, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(26, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(26, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(26, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(26, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(27, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(27, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(27, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(27, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(28, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(28, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(28, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(28, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(29, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(29, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(29, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(29, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(30, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(30, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(30, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(30, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(24, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(24, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(24, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(24, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(24, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(25, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(25, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(25, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(25, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(25, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(26, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(26, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(26, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(26, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(26, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(27, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(27, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(27, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(27, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(27, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(28, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(28, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(28, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(28, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(28, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(29, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(29, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(29, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(29, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(29, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(30, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(30, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(30, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(30, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(30, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(24, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(24, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(24, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(24, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(25, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(25, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(25, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(25, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(26, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(26, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(26, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(26, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(27, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(27, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(27, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(27, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(28, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(28, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(28, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(28, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(29, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(29, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(29, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(29, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(30, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(30, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(30, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(30, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(24, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(24, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(24, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(25, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(25, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(25, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(26, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(26, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(26, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(27, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(27, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(27, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(28, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(28, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(28, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(29, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(29, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(29, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(30, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(30, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(30, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(24, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(24, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(24, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(25, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(25, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(25, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(26, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(26, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(26, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(27, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(27, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(27, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(28, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(28, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(28, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(29, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(29, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(29, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(30, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(30, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(30, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(31, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(31, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(31, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(31, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(32, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(32, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(32, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(32, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(33, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(33, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(33, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(33, 43); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) + { + output.second.emplace_back(34, 40); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) + { + output.second.emplace_back(34, 41); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) + { + output.second.emplace_back(34, 42); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) + { + output.second.emplace_back(34, 43); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(31, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(31, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(31, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(32, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(32, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(32, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(33, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(33, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(33, 46); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) + { + output.second.emplace_back(34, 44); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) + { + output.second.emplace_back(34, 45); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) + { + output.second.emplace_back(34, 46); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(31, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(31, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(31, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(32, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(32, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(32, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(33, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(33, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(33, 49); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) + { + output.second.emplace_back(34, 47); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) + { + output.second.emplace_back(34, 48); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) + { + output.second.emplace_back(34, 49); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(31, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(31, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(31, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(31, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(32, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(32, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(32, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(32, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(33, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(33, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(33, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(33, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(34, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(34, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(34, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(34, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(31, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(31, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(31, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(31, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(31, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(32, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(32, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(32, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(32, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(32, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(33, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(33, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(33, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(33, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(33, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(34, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(34, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(34, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(34, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(34, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(31, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(31, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(31, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(31, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(31, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(32, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(32, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(32, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(32, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(32, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(33, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(33, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(33, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(33, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(33, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(34, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(34, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(34, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(34, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(34, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(31, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(31, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(31, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(31, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(31, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(32, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(32, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(32, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(32, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(32, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(33, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(33, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(33, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(33, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(33, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(34, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(34, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(34, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(34, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(34, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(31, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(31, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(31, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(31, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(31, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(32, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(32, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(32, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(32, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(32, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(33, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(33, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(33, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(33, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(33, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(34, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(34, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(34, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(34, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(34, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(31, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(31, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(31, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(31, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(31, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(31, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(31, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(32, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(32, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(32, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(32, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(32, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(32, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(32, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(33, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(33, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(33, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(33, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(33, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(33, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(33, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(34, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(34, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(34, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(34, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(34, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(34, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(34, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(31, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(31, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(31, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(31, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(32, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(32, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(32, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(32, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(33, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(33, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(33, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(33, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(34, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(34, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(34, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(34, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(31, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(31, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(31, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(31, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(31, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(32, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(32, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(32, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(32, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(32, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(33, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(33, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(33, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(33, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(33, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(34, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(34, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(34, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(34, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(34, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(31, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(31, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(31, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(31, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(32, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(32, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(32, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(32, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(33, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(33, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(33, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(33, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(34, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(34, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(34, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(34, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(31, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(31, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(31, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(32, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(32, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(32, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(33, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(33, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(33, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(34, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(34, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(34, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(31, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(31, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(31, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(32, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(32, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(32, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(33, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(33, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(33, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(34, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(34, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(34, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(35, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(35, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(35, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(35, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(36, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(36, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(36, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(36, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(37, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(37, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(37, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(37, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(38, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(38, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(38, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(38, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(39, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(39, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(39, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(39, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(35, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(35, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(35, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(35, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(35, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(36, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(36, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(36, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(36, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(36, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(37, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(37, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(37, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(37, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(37, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(38, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(38, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(38, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(38, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(38, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(39, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(39, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(39, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(39, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(39, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(35, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(35, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(35, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(35, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(35, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(36, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(36, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(36, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(36, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(36, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(37, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(37, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(37, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(37, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(37, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(38, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(38, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(38, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(38, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(38, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(39, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(39, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(39, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(39, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(39, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(35, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(35, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(35, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(35, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(35, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(36, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(36, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(36, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(36, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(36, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(37, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(37, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(37, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(37, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(37, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(38, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(38, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(38, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(38, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(38, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(39, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(39, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(39, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(39, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(39, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(35, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(35, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(35, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(35, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(35, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(36, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(36, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(36, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(36, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(36, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(37, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(37, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(37, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(37, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(37, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(38, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(38, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(38, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(38, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(38, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(39, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(39, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(39, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(39, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(39, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(35, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(35, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(35, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(35, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(35, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(35, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(35, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(36, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(36, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(36, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(36, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(36, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(36, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(36, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(37, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(37, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(37, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(37, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(37, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(37, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(37, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(38, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(38, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(38, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(38, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(38, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(38, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(38, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(39, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(39, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(39, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(39, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(39, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(39, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(39, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(35, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(35, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(35, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(35, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(36, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(36, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(36, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(36, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(37, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(37, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(37, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(37, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(38, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(38, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(38, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(38, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(39, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(39, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(39, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(39, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(35, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(35, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(35, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(35, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(35, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(36, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(36, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(36, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(36, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(36, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(37, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(37, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(37, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(37, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(37, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(38, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(38, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(38, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(38, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(38, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(39, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(39, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(39, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(39, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(39, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(35, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(35, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(35, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(35, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(36, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(36, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(36, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(36, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(37, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(37, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(37, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(37, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(38, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(38, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(38, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(38, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(39, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(39, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(39, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(39, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(35, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(35, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(35, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(36, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(36, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(36, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(37, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(37, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(37, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(38, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(38, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(38, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(39, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(39, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(39, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(35, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(35, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(35, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(36, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(36, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(36, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(37, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(37, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(37, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(38, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(38, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(38, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(39, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(39, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(39, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(40, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(40, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(40, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(40, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(41, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(41, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(41, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(41, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(42, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(42, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(42, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(42, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(43, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(43, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(43, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(43, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(40, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(40, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(40, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(40, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(40, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(41, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(41, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(41, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(41, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(41, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(42, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(42, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(42, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(42, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(42, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(43, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(43, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(43, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(43, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(43, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(40, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(40, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(40, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(40, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(40, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(41, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(41, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(41, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(41, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(41, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(42, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(42, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(42, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(42, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(42, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(43, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(43, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(43, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(43, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(43, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(40, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(40, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(40, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(40, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(40, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(41, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(41, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(41, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(41, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(41, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(42, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(42, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(42, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(42, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(42, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(43, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(43, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(43, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(43, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(43, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(40, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(40, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(40, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(40, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(40, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(41, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(41, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(41, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(41, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(41, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(42, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(42, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(42, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(42, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(42, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(43, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(43, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(43, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(43, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(43, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(40, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(40, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(40, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(40, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(40, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(40, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(40, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(41, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(41, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(41, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(41, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(41, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(41, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(41, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(42, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(42, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(42, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(42, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(42, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(42, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(42, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(43, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(43, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(43, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(43, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(43, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(43, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(43, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(40, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(40, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(40, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(40, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(41, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(41, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(41, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(41, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(42, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(42, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(42, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(42, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(43, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(43, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(43, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(43, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(40, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(40, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(40, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(40, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(40, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(41, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(41, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(41, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(41, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(41, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(42, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(42, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(42, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(42, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(42, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(43, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(43, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(43, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(43, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(43, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(40, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(40, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(40, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(40, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(41, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(41, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(41, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(41, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(42, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(42, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(42, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(42, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(43, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(43, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(43, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(43, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(40, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(40, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(40, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(41, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(41, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(41, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(42, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(42, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(42, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(43, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(43, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(43, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(40, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(40, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(40, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(41, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(41, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(41, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(42, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(42, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(42, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(43, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(43, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(43, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(44, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(44, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(44, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(44, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(45, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(45, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(45, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(45, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(46, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(46, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(46, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(46, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(44, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(44, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(44, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(44, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(44, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(45, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(45, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(45, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(45, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(45, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(46, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(46, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(46, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(46, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(46, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(44, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(44, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(44, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(44, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(44, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(45, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(45, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(45, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(45, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(45, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(46, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(46, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(46, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(46, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(46, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(44, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(44, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(44, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(44, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(44, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(45, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(45, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(45, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(45, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(45, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(46, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(46, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(46, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(46, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(46, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(44, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(44, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(44, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(44, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(44, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(45, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(45, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(45, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(45, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(45, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(46, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(46, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(46, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(46, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(46, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(44, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(44, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(44, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(44, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(44, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(44, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(44, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(45, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(45, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(45, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(45, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(45, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(45, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(45, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(46, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(46, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(46, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(46, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(46, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(46, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(46, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(44, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(44, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(44, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(44, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(45, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(45, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(45, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(45, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(46, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(46, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(46, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(46, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(44, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(44, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(44, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(44, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(44, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(45, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(45, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(45, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(45, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(45, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(46, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(46, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(46, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(46, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(46, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(44, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(44, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(44, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(44, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(45, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(45, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(45, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(45, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(46, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(46, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(46, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(46, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(44, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(44, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(44, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(45, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(45, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(45, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(46, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(46, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(46, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(44, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(44, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(44, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(45, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(45, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(45, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(46, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(46, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(46, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(47, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(47, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(47, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(47, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(48, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(48, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(48, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(48, 53); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) + { + output.second.emplace_back(49, 50); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) + { + output.second.emplace_back(49, 51); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) + { + output.second.emplace_back(49, 52); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) + { + output.second.emplace_back(49, 53); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(47, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(47, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(47, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(47, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(47, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(48, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(48, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(48, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(48, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(48, 58); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) + { + output.second.emplace_back(49, 54); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) + { + output.second.emplace_back(49, 55); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) + { + output.second.emplace_back(49, 56); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) + { + output.second.emplace_back(49, 57); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) + { + output.second.emplace_back(49, 58); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(47, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(47, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(47, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(47, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(47, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(48, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(48, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(48, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(48, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(48, 63); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) + { + output.second.emplace_back(49, 59); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) + { + output.second.emplace_back(49, 60); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) + { + output.second.emplace_back(49, 61); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) + { + output.second.emplace_back(49, 62); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) + { + output.second.emplace_back(49, 63); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(47, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(47, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(47, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(47, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(47, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(48, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(48, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(48, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(48, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(48, 68); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) + { + output.second.emplace_back(49, 64); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) + { + output.second.emplace_back(49, 65); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) + { + output.second.emplace_back(49, 66); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) + { + output.second.emplace_back(49, 67); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) + { + output.second.emplace_back(49, 68); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(47, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(47, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(47, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(47, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(47, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(48, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(48, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(48, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(48, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(48, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(49, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(49, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(49, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(49, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(49, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(47, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(47, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(47, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(47, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(47, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(47, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(47, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(48, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(48, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(48, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(48, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(48, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(48, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(48, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(49, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(49, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(49, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(49, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(49, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(49, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(49, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(47, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(47, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(47, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(47, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(48, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(48, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(48, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(48, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(49, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(49, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(49, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(49, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(47, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(47, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(47, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(47, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(47, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(48, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(48, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(48, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(48, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(48, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(49, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(49, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(49, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(49, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(49, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(47, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(47, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(47, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(47, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(48, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(48, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(48, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(48, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(49, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(49, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(49, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(49, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(47, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(47, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(47, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(48, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(48, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(48, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(49, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(49, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(49, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(47, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(47, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(47, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(48, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(48, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(48, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(49, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(49, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(49, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(50, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(50, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(50, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(50, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(50, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(51, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(51, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(51, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(51, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(51, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(52, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(52, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(52, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(52, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(52, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(53, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(53, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(53, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(53, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(53, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(50, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(50, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(50, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(50, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(50, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(50, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(50, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(51, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(51, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(51, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(51, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(51, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(51, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(51, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(52, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(52, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(52, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(52, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(52, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(52, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(52, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(53, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(53, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(53, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(53, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(53, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(53, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(53, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(50, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(50, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(50, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(50, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(51, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(51, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(51, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(51, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(52, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(52, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(52, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(52, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(53, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(53, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(53, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(53, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(50, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(50, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(50, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(50, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(50, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(51, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(51, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(51, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(51, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(51, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(52, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(52, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(52, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(52, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(52, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(53, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(53, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(53, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(53, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(53, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(50, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(50, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(50, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(50, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(51, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(51, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(51, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(51, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(52, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(52, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(52, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(52, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(53, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(53, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(53, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(53, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(50, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(50, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(50, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(51, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(51, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(51, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(52, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(52, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(52, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(53, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(53, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(53, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(50, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(50, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(50, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(51, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(51, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(51, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(52, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(52, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(52, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(53, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(53, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(53, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(54, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(54, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(54, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(54, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(54, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(55, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(55, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(55, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(55, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(55, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(56, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(56, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(56, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(56, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(56, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(57, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(57, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(57, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(57, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(57, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(58, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(58, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(58, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(58, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(58, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(54, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(54, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(54, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(54, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(54, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(54, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(54, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(55, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(55, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(55, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(55, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(55, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(55, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(55, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(56, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(56, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(56, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(56, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(56, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(56, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(56, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(57, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(57, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(57, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(57, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(57, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(57, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(57, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(58, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(58, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(58, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(58, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(58, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(58, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(58, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(54, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(54, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(54, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(54, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(55, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(55, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(55, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(55, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(56, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(56, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(56, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(56, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(57, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(57, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(57, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(57, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(58, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(58, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(58, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(58, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(54, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(54, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(54, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(54, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(54, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(55, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(55, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(55, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(55, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(55, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(56, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(56, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(56, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(56, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(56, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(57, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(57, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(57, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(57, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(57, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(58, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(58, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(58, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(58, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(58, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(54, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(54, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(54, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(54, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(55, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(55, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(55, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(55, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(56, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(56, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(56, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(56, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(57, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(57, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(57, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(57, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(58, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(58, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(58, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(58, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(54, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(54, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(54, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(55, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(55, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(55, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(56, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(56, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(56, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(57, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(57, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(57, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(58, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(58, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(58, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(54, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(54, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(54, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(55, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(55, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(55, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(56, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(56, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(56, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(57, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(57, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(57, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(58, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(58, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(58, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(59, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(59, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(59, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(59, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(59, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(60, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(60, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(60, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(60, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(60, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(61, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(61, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(61, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(61, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(61, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(62, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(62, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(62, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(62, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(62, 73); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) + { + output.second.emplace_back(63, 69); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) + { + output.second.emplace_back(63, 70); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) + { + output.second.emplace_back(63, 71); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) + { + output.second.emplace_back(63, 72); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) + { + output.second.emplace_back(63, 73); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(59, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(59, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(59, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(59, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(59, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(59, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(59, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(60, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(60, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(60, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(60, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(60, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(60, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(60, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(61, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(61, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(61, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(61, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(61, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(61, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(61, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(62, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(62, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(62, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(62, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(62, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(62, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(62, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(63, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(63, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(63, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(63, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(63, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(63, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(63, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(59, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(59, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(59, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(59, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(60, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(60, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(60, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(60, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(61, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(61, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(61, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(61, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(62, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(62, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(62, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(62, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(63, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(63, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(63, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(63, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(59, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(59, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(59, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(59, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(59, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(60, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(60, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(60, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(60, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(60, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(61, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(61, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(61, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(61, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(61, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(62, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(62, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(62, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(62, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(62, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(63, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(63, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(63, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(63, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(63, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(59, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(59, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(59, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(59, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(60, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(60, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(60, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(60, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(61, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(61, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(61, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(61, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(62, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(62, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(62, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(62, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(63, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(63, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(63, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(63, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(59, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(59, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(59, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(60, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(60, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(60, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(61, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(61, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(61, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(62, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(62, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(62, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(63, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(63, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(63, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(59, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(59, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(59, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(60, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(60, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(60, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(61, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(61, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(61, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(62, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(62, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(62, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(63, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(63, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(63, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(64, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(64, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(64, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(64, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(64, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(64, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(64, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(65, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(65, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(65, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(65, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(65, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(65, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(65, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(66, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(66, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(66, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(66, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(66, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(66, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(66, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(67, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(67, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(67, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(67, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(67, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(67, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(67, 80); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) + { + output.second.emplace_back(68, 74); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) + { + output.second.emplace_back(68, 75); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) + { + output.second.emplace_back(68, 76); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) + { + output.second.emplace_back(68, 77); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) + { + output.second.emplace_back(68, 78); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) + { + output.second.emplace_back(68, 79); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) + { + output.second.emplace_back(68, 80); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(64, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(64, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(64, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(64, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(65, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(65, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(65, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(65, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(66, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(66, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(66, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(66, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(67, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(67, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(67, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(67, 84); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) + { + output.second.emplace_back(68, 81); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) + { + output.second.emplace_back(68, 82); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) + { + output.second.emplace_back(68, 83); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) + { + output.second.emplace_back(68, 84); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(64, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(64, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(64, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(64, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(64, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(65, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(65, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(65, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(65, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(65, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(66, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(66, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(66, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(66, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(66, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(67, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(67, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(67, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(67, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(67, 89); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) + { + output.second.emplace_back(68, 85); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) + { + output.second.emplace_back(68, 86); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) + { + output.second.emplace_back(68, 87); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) + { + output.second.emplace_back(68, 88); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) + { + output.second.emplace_back(68, 89); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(64, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(64, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(64, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(64, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(65, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(65, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(65, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(65, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(66, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(66, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(66, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(66, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(67, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(67, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(67, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(67, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(68, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(68, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(68, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(68, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(64, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(64, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(64, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(65, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(65, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(65, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(66, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(66, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(66, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(67, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(67, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(67, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(68, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(68, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(68, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(64, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(64, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(64, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(65, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(65, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(65, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(66, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(66, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(66, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(67, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(67, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(67, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(68, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(68, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(68, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(69, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(69, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(69, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(69, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(70, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(70, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(70, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(70, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(71, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(71, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(71, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(71, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(72, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(72, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(72, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(72, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(73, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(73, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(73, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(73, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(69, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(69, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(69, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(70, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(70, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(70, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(71, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(71, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(71, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(72, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(72, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(72, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(73, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(73, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(73, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(69, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(69, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(69, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(70, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(70, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(70, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(71, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(71, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(71, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(72, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(72, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(72, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(73, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(73, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(73, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(74, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(74, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(74, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(74, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(75, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(75, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(75, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(75, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(76, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(76, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(76, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(76, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(77, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(77, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(77, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(77, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(78, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(78, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(78, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(78, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(79, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(79, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(79, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(79, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(80, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(80, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(80, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(80, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(74, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(74, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(74, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(75, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(75, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(75, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(76, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(76, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(76, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(77, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(77, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(77, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(78, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(78, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(78, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(79, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(79, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(79, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(80, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(80, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(80, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(74, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(74, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(74, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(75, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(75, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(75, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(76, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(76, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(76, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(77, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(77, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(77, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(78, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(78, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(78, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(79, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(79, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(79, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(80, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(80, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(80, 99); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(81, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(81, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(81, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(81, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(82, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(82, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(82, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(82, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(83, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(83, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(83, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(83, 93); + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) + { + output.second.emplace_back(84, 90); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) + { + output.second.emplace_back(84, 91); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) + { + output.second.emplace_back(84, 92); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) + { + output.second.emplace_back(84, 93); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(81, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(81, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(81, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(82, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(82, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(82, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(83, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(83, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(83, 96); + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) + { + output.second.emplace_back(84, 94); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) + { + output.second.emplace_back(84, 95); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) + { + output.second.emplace_back(84, 96); + } + + + + + + + + + + + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(81, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(81, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(81, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(82, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(82, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(82, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(83, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(83, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(83, 99); + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) + { + output.second.emplace_back(84, 97); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) + { + output.second.emplace_back(84, 98); + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) + { + output.second.emplace_back(84, 99); + } + + + + + + + return output; + } + + template + static inline bool fkcc( + const vamp::collision::Environment> &environment, + const ConfigurationBlock &x) noexcept + { + std::array, 144> v; + std::array, 488> y; + + v[0] = cos(x[0]); + v[1] = sin(x[0]); + v[2] = 0. - v[1]; + y[16] = -0.0304988883435726 * v[0] + -0.0173739213496447 * v[2]; + y[17] = -0.0304988883435726 * v[1] + -0.0173739213496447 * v[0]; + y[20] = 0.0376833528280258 * v[0] + -0.0566041171550751 * v[2]; + y[21] = 0.0376833528280258 * v[1] + -0.0566041171550751 * v[0]; + y[24] = 0.053051695227623 * v[0] + 0.0300084203481674 * v[2]; + y[25] = 0.053051695227623 * v[1] + 0.0300084203481674 * v[0]; + y[28] = -0.0274603478610516 * v[0] + -0.0326122231781483 * v[2]; + y[29] = -0.0274603478610516 * v[1] + -0.0326122231781483 * v[0]; + y[32] = 0.0312839150428772 * v[0] + -0.0324193239212036 * v[2]; + y[33] = 0.0312839150428772 * v[1] + -0.0324193239212036 * v[0]; + v[3] = cos(x[1]); + v[4] = sin(x[1]); + v[5] = -1. * v[3] + 1.01273331923549e-24 * v[4]; + v[6] = -2.06823107110214e-13 * v[3] + -4.89652762780679e-12 * v[4]; + v[7] = v[0] * v[5] + v[2] * v[6]; + v[4] = -1.26217744835362e-29 * v[3] + v[4]; + v[3] = v[4] - 4.89663865010925e-12 * v[6]; + v[8] = 4.89663865010925e-12 * v[5] - -2.06823107110214e-13 * v[4]; + v[9] = v[0] * v[3] + v[2] * v[8]; + v[10] = -2.06823107110214e-13 * v[0] + v[2]; + y[36] = -0.0286435410380363 * v[7] + 0.0075924526900053 * v[9] + 0.0357369221746922 * v[10]; + v[11] = v[1] * v[5] + v[0] * v[6]; + v[8] = v[1] * v[3] + v[0] * v[8]; + v[3] = -2.06823107110214e-13 * v[1] + v[0]; + y[37] = -0.0286435410380363 * v[11] + 0.0075924526900053 * v[8] + 0.0357369221746922 * v[3]; + v[6] = -2.06823107110214e-13 * v[6] - v[5]; + y[38] = 0.36 + -0.0286435410380363 * v[4] + 1.74990794356544e-13 + 0.0075924526900053 * v[6]; + y[40] = 0.0302073135972023 * v[7] + -0.00406156480312347 * v[9] + 0.0409813597798347 * v[10]; + y[41] = 0.0302073135972023 * v[11] + -0.00406156480312347 * v[8] + 0.0409813597798347 * v[3]; + y[42] = 0.36 + 0.0302073135972023 * v[4] + 2.00670910231972e-13 + -0.00406156480312347 * v[6]; + y[44] = -0.0447303093969822 * v[7] + 0.13815912604332 * v[9] + -0.0262443888932467 * v[10]; + y[45] = -0.0447303093969822 * v[11] + 0.13815912604332 * v[8] + -0.0262443888932467 * v[3]; + y[46] = 0.36 + -0.0447303093969822 * v[4] + -1.2850928900317e-13 + 0.13815912604332 * v[6]; + y[48] = 0.0457500033080578 * v[7] + 0.142471238970757 * v[9] + -0.0185553897172213 * v[10]; + y[49] = 0.0457500033080578 * v[11] + 0.142471238970757 * v[8] + -0.0185553897172213 * v[3]; + y[50] = 0.36 + 0.0457500033080578 * v[4] + -9.08590384571854e-14 + 0.142471238970757 * v[6]; + y[52] = 0.00205385428853333 * v[7] + 0.132787525653839 * v[9] + 0.0468450263142586 * v[10]; + y[53] = 0.00205385428853333 * v[11] + 0.132787525653839 * v[8] + 0.0468450263142586 * v[3]; + y[54] = 0.36 + 0.00205385428853333 * v[4] + 2.29383166415784e-13 + 0.132787525653839 * v[6]; + v[5] = cos(x[2]); + v[12] = sin(x[2]); + v[13] = -1. * v[5] + 1.01273331923549e-24 * v[12]; + v[14] = -2.06823107110214e-13 * v[5] + -4.89652762780679e-12 * v[12]; + v[12] = -1.26217744835362e-29 * v[5] + v[12]; + v[5] = v[7] * v[13] + v[9] * v[14] + v[10] * v[12]; + v[15] = v[12] - 4.89663865010925e-12 * v[14]; + v[16] = 4.89663865010925e-12 * v[13] - -2.06823107110214e-13 * v[12]; + v[17] = -2.06823107110214e-13 * v[14] - v[13]; + v[18] = v[7] * v[15] + v[9] * v[16] + v[10] * v[17]; + v[19] = -2.06823107110214e-13 * v[7] + v[9] + 4.89663865010925e-12 * v[10]; + v[20] = 0.2045 * v[9]; + y[56] = -0.033751618117094 * v[5] + -0.0206236597150564 * v[18] + 0.0556587167084217 * v[19] + v[20]; + v[21] = v[11] * v[13] + v[8] * v[14] + v[3] * v[12]; + v[22] = v[11] * v[15] + v[8] * v[16] + v[3] * v[17]; + v[23] = -2.06823107110214e-13 * v[11] + v[8] + 4.89663865010925e-12 * v[3]; + v[24] = 0.2045 * v[8]; + y[57] = -0.033751618117094 * v[21] + -0.0206236597150564 * v[22] + 0.0556587167084217 * v[23] + v[24]; + v[12] = v[4] * v[13] + v[6] * v[14] + 4.89663865010925e-12 * v[12]; + v[17] = v[4] * v[15] + v[6] * v[16] + 4.89663865010925e-12 * v[17]; + v[16] = -2.06823107110214e-13 * v[4] + 2.39770700697438e-23 + v[6]; + v[15] = 0.36 + 0.2045 * v[6]; + y[58] = -0.033751618117094 * v[12] + -0.0206236597150564 * v[17] + 0.0556587167084217 * v[16] + v[15]; + y[60] = 0.036438126116991 * v[5] + -0.0216596964746714 * v[18] + 0.0589511506259441 * v[19] + v[20]; + y[61] = 0.036438126116991 * v[21] + -0.0216596964746714 * v[22] + 0.0589511506259441 * v[23] + v[24]; + y[62] = 0.036438126116991 * v[12] + -0.0216596964746714 * v[17] + 0.0589511506259441 * v[16] + v[15]; + y[64] = 0.00543839018791914 * v[5] + 0.0358658879995346 * v[18] + 0.0723318234086037 * v[19] + v[20]; + y[65] = 0.00543839018791914 * v[21] + 0.0358658879995346 * v[22] + 0.0723318234086037 * v[23] + v[24]; + y[66] = 0.00543839018791914 * v[12] + 0.0358658879995346 * v[17] + 0.0723318234086037 * v[16] + v[15]; + y[68] = -0.00150183925870806 * v[5] + 0.00477686012163758 * v[18] + 0.188644707202911 * v[19] + v[20]; + y[69] = -0.00150183925870806 * v[21] + 0.00477686012163758 * v[22] + 0.188644707202911 * v[23] + v[24]; + y[70] = -0.00150183925870806 * v[12] + 0.00477686012163758 * v[17] + 0.188644707202911 * v[16] + v[15]; + y[72] = -0.000443624390754849 * v[5] + 0.0609206445515156 * v[18] + 0.187817513942719 * v[19] + v[20]; + y[73] = -0.000443624390754849 * v[21] + 0.0609206445515156 * v[22] + 0.187817513942719 * v[23] + v[24]; + y[74] = -0.000443624390754849 * v[12] + 0.0609206445515156 * v[17] + 0.187817513942719 * v[16] + v[15]; + v[14] = cos(x[3]); + v[13] = sin(x[3]); + v[25] = 4.89663865010925e-12 * v[13]; + v[26] = v[5] * v[14] + v[18] * v[25] + v[19] * v[13]; + v[27] = -1. * v[13] - 4.89663865010925e-12 * v[25]; + v[28] = 4.89663865010925e-12 * v[14]; + v[29] = 0. - -1. * v[14]; + v[30] = v[5] * v[27] + v[18] * v[28] + v[19] * v[29]; + v[31] = -1. * v[18] + 4.89663865010925e-12 * v[19]; + v[32] = v[20] + 0.2155 * v[19]; + y[76] = 0.00209041242487729 * v[26] + 0.0127677032724023 * v[30] + 0.0110630923882127 * v[31] + v[32]; + v[33] = v[21] * v[14] + v[22] * v[25] + v[23] * v[13]; + v[34] = v[21] * v[27] + v[22] * v[28] + v[23] * v[29]; + v[35] = -1. * v[22] + 4.89663865010925e-12 * v[23]; + v[36] = v[24] + 0.2155 * v[23]; + y[77] = 0.00209041242487729 * v[33] + 0.0127677032724023 * v[34] + 0.0110630923882127 * v[35] + v[36]; + v[25] = v[12] * v[14] + v[17] * v[25] + v[16] * v[13]; + v[29] = v[12] * v[27] + v[17] * v[28] + v[16] * v[29]; + v[28] = -1. * v[17] + 4.89663865010925e-12 * v[16]; + v[27] = v[15] + 0.2155 * v[16]; + y[78] = 0.00209041242487729 * v[25] + 0.0127677032724023 * v[29] + 0.0110630923882127 * v[28] + v[27]; + y[80] = 0.00488302065059543 * v[26] + 0.0161912720650434 * v[30] + 0.0618039071559906 * v[31] + v[32]; + y[81] = 0.00488302065059543 * v[33] + 0.0161912720650434 * v[34] + 0.0618039071559906 * v[35] + v[36]; + y[82] = 0.00488302065059543 * v[25] + 0.0161912720650434 * v[29] + 0.0618039071559906 * v[28] + v[27]; + y[84] = -0.0348032154142857 * v[26] + 0.133986249566078 * v[30] + -0.0251118093729019 * v[31] + v[32]; + y[85] = -0.0348032154142857 * v[33] + 0.133986249566078 * v[34] + -0.0251118093729019 * v[35] + v[36]; + y[86] = -0.0348032154142857 * v[25] + 0.133986249566078 * v[29] + -0.0251118093729019 * v[28] + v[27]; + y[88] = 0.038326770067215 * v[26] + 0.133518978953362 * v[30] + -0.0277583207935095 * v[31] + v[32]; + y[89] = 0.038326770067215 * v[33] + 0.133518978953362 * v[34] + -0.0277583207935095 * v[35] + v[36]; + y[90] = 0.038326770067215 * v[25] + 0.133518978953362 * v[29] + -0.0277583207935095 * v[28] + v[27]; + y[92] = -0.00637074047699571 * v[26] + 0.12884546816349 * v[30] + 0.0382916443049908 * v[31] + v[32]; + y[93] = -0.00637074047699571 * v[33] + 0.12884546816349 * v[34] + 0.0382916443049908 * v[35] + v[36]; + y[94] = -0.00637074047699571 * v[25] + 0.12884546816349 * v[29] + 0.0382916443049908 * v[28] + v[27]; + v[13] = cos(x[4]); + v[14] = sin(x[4]); + v[37] = -1. * v[13] + 2.06823107110214e-13 * v[14]; + v[38] = 1.26217744835362e-29 * v[13] + 4.89663865010925e-12 * v[14]; + v[14] = 2.06823107110214e-13 * v[13] + v[14]; + v[13] = v[26] * v[37] + v[30] * v[38] + v[31] * v[14]; + v[39] = v[14] - -4.89652762780679e-12 * v[38]; + v[40] = -4.89652762780679e-12 * v[37] - -1.01273331923549e-24 * v[14]; + v[41] = -1.01273331923549e-24 * v[38] - v[37]; + v[42] = v[26] * v[39] + v[30] * v[40] + v[31] * v[41]; + v[43] = -1.01273331923549e-24 * v[26] + v[30] + -4.89652762780679e-12 * v[31]; + v[44] = v[32] + 0.1845 * v[30]; + y[96] = -0.0303262490779161 * v[13] + -0.0207324735820293 * v[42] + 0.0466873794794083 * v[43] + v[44]; + v[45] = v[33] * v[37] + v[34] * v[38] + v[35] * v[14]; + v[46] = v[33] * v[39] + v[34] * v[40] + v[35] * v[41]; + v[47] = -1.01273331923549e-24 * v[33] + v[34] + -4.89652762780679e-12 * v[35]; + v[48] = v[36] + 0.1845 * v[34]; + y[97] = -0.0303262490779161 * v[45] + -0.0207324735820293 * v[46] + 0.0466873794794083 * v[47] + v[48]; + v[14] = v[25] * v[37] + v[29] * v[38] + v[28] * v[14]; + v[41] = v[25] * v[39] + v[29] * v[40] + v[28] * v[41]; + v[40] = -1.01273331923549e-24 * v[25] + v[29] + -4.89652762780679e-12 * v[28]; + v[39] = v[27] + 0.1845 * v[29]; + y[98] = -0.0303262490779161 * v[14] + -0.0207324735820293 * v[41] + 0.0466873794794083 * v[40] + v[39]; + y[100] = 0.0382123328745365 * v[13] + -0.0229748375713825 * v[42] + 0.0462025664746761 * v[43] + v[44]; + y[101] = 0.0382123328745365 * v[45] + -0.0229748375713825 * v[46] + 0.0462025664746761 * v[47] + v[48]; + y[102] = 0.0382123328745365 * v[14] + -0.0229748375713825 * v[41] + 0.0462025664746761 * v[40] + v[39]; + y[104] = -0.029545271769166 * v[13] + 0.0435335896909237 * v[42] + 0.0515478737652302 * v[43] + v[44]; + y[105] = -0.029545271769166 * v[45] + 0.0435335896909237 * v[46] + 0.0515478737652302 * v[47] + v[48]; + y[106] = -0.029545271769166 * v[14] + 0.0435335896909237 * v[41] + 0.0515478737652302 * v[40] + v[39]; + y[108] = 0.0294575486332178 * v[13] + 0.0443899892270565 * v[42] + 0.0518434084951878 * v[43] + v[44]; + y[109] = 0.0294575486332178 * v[45] + 0.0443899892270565 * v[46] + 0.0518434084951878 * v[47] + v[48]; + y[110] = 0.0294575486332178 * v[14] + 0.0443899892270565 * v[41] + 0.0518434084951878 * v[40] + v[39]; + y[112] = -0.0226244386285543 * v[13] + 0.03036268055439 * v[42] + 0.143480017781258 * v[43] + v[44]; + y[113] = -0.0226244386285543 * v[45] + 0.03036268055439 * v[46] + 0.143480017781258 * v[47] + v[48]; + y[114] = -0.0226244386285543 * v[14] + 0.03036268055439 * v[41] + 0.143480017781258 * v[40] + v[39]; + y[116] = 0.0228122211992741 * v[13] + 0.0326673835515976 * v[42] + 0.144575268030167 * v[43] + v[44]; + y[117] = 0.0228122211992741 * v[45] + 0.0326673835515976 * v[46] + 0.144575268030167 * v[47] + v[48]; + y[118] = 0.0228122211992741 * v[14] + 0.0326673835515976 * v[41] + 0.144575268030167 * v[40] + v[39]; + y[120] = -0.000356095697497949 * v[13] + 0.0570880249142647 * v[42] + 0.213441297411919 * v[43] + v[44]; + y[121] = -0.000356095697497949 * v[45] + 0.0570880249142647 * v[46] + 0.213441297411919 * v[47] + v[48]; + y[122] = -0.000356095697497949 * v[14] + 0.0570880249142647 * v[41] + 0.213441297411919 * v[40] + v[39]; + v[38] = cos(x[5]); + v[37] = sin(x[5]); + v[49] = 4.89663865010925e-12 * v[37]; + v[50] = v[13] * v[38] + v[42] * v[49] + v[43] * v[37]; + v[51] = -1. * v[37] - 4.89663865010925e-12 * v[49]; + v[52] = 4.89663865010925e-12 * v[38]; + v[53] = 0. - -1. * v[38]; + v[54] = v[13] * v[51] + v[42] * v[52] + v[43] * v[53]; + v[55] = -1. * v[42] + 4.89663865010925e-12 * v[43]; + v[56] = v[44] + 0.2155 * v[43]; + y[124] = 0.00531387468799949 * v[50] + -0.0231041144579649 * v[54] + -0.0224952418357134 * v[55] + v[56]; + v[57] = v[45] * v[38] + v[46] * v[49] + v[47] * v[37]; + v[58] = v[45] * v[51] + v[46] * v[52] + v[47] * v[53]; + v[59] = -1. * v[46] + 4.89663865010925e-12 * v[47]; + v[60] = v[48] + 0.2155 * v[47]; + y[125] = 0.00531387468799949 * v[57] + -0.0231041144579649 * v[58] + -0.0224952418357134 * v[59] + v[60]; + v[49] = v[14] * v[38] + v[41] * v[49] + v[40] * v[37]; + v[53] = v[14] * v[51] + v[41] * v[52] + v[40] * v[53]; + v[52] = -1. * v[41] + 4.89663865010925e-12 * v[40]; + v[51] = v[39] + 0.2155 * v[40]; + y[126] = 0.00531387468799949 * v[49] + -0.0231041144579649 * v[53] + -0.0224952418357134 * v[52] + v[51]; + y[128] = 0.00424248585477471 * v[50] + -0.0304307378828526 * v[54] + 0.0232355650514364 * v[55] + v[56]; + y[129] = 0.00424248585477471 * v[57] + -0.0304307378828526 * v[58] + 0.0232355650514364 * v[59] + v[60]; + y[130] = 0.00424248585477471 * v[49] + -0.0304307378828526 * v[53] + 0.0232355650514364 * v[52] + v[51]; + y[132] = 0.00347242690622807 * v[50] + 0.0357604399323463 * v[54] + -0.0275979526340961 * v[55] + v[56]; + y[133] = 0.00347242690622807 * v[57] + 0.0357604399323463 * v[58] + -0.0275979526340961 * v[59] + v[60]; + y[134] = 0.00347242690622807 * v[49] + 0.0357604399323463 * v[53] + -0.0275979526340961 * v[52] + v[51]; + y[136] = -0.00440459558740258 * v[50] + 0.029050262644887 * v[54] + 0.0197553057223558 * v[55] + v[56]; + y[137] = -0.00440459558740258 * v[57] + 0.029050262644887 * v[58] + 0.0197553057223558 * v[59] + v[60]; + y[138] = -0.00440459558740258 * v[49] + 0.029050262644887 * v[53] + 0.0197553057223558 * v[52] + v[51]; + v[37] = cos(x[6]); + v[38] = sin(x[6]); + v[61] = -1. * v[37] + 2.06823107110214e-13 * v[38]; + v[62] = 1.26217744835362e-29 * v[37] + 4.89663865010925e-12 * v[38]; + v[38] = 2.06823107110214e-13 * v[37] + v[38]; + v[37] = v[50] * v[61] + v[54] * v[62] + v[55] * v[38]; + v[63] = v[38] - -4.89652762780679e-12 * v[62]; + v[64] = -4.89652762780679e-12 * v[61] - -1.01273331923549e-24 * v[38]; + v[65] = -1.01273331923549e-24 * v[62] - v[61]; + v[66] = v[50] * v[63] + v[54] * v[64] + v[55] * v[65]; + v[67] = -1.01273331923549e-24 * v[50] + v[54] + -4.89652762780679e-12 * v[55]; + v[68] = v[56] + 0.081 * v[54]; + y[140] = -0.0199781656265259 * v[37] + -0.0210024751722813 * v[66] + 0.015956237912178 * v[67] + v[68]; + v[69] = v[57] * v[61] + v[58] * v[62] + v[59] * v[38]; + v[70] = v[57] * v[63] + v[58] * v[64] + v[59] * v[65]; + v[71] = -1.01273331923549e-24 * v[57] + v[58] + -4.89652762780679e-12 * v[59]; + v[72] = v[60] + 0.081 * v[58]; + y[141] = -0.0199781656265259 * v[69] + -0.0210024751722813 * v[70] + 0.015956237912178 * v[71] + v[72]; + v[38] = v[49] * v[61] + v[53] * v[62] + v[52] * v[38]; + v[65] = v[49] * v[63] + v[53] * v[64] + v[52] * v[65]; + v[64] = -1.01273331923549e-24 * v[49] + v[53] + -4.89652762780679e-12 * v[52]; + v[63] = v[51] + 0.081 * v[53]; + y[142] = -0.0199781656265259 * v[38] + -0.0210024751722813 * v[65] + 0.015956237912178 * v[64] + v[63]; + y[144] = 0.0191871430724859 * v[37] + -0.0194653403013945 * v[66] + 0.0160456709563732 * v[67] + v[68]; + y[145] = 0.0191871430724859 * v[69] + -0.0194653403013945 * v[70] + 0.0160456709563732 * v[71] + v[72]; + y[146] = 0.0191871430724859 * v[38] + -0.0194653403013945 * v[65] + 0.0160456709563732 * v[64] + v[63]; + y[148] = -0.0201440621167421 * v[37] + 0.0189183782786131 * v[66] + 0.0165120754390955 * v[67] + v[68]; + y[149] = -0.0201440621167421 * v[69] + 0.0189183782786131 * v[70] + 0.0165120754390955 * v[71] + v[72]; + y[150] = -0.0201440621167421 * v[38] + 0.0189183782786131 * v[65] + 0.0165120754390955 * v[64] + v[63]; + y[152] = 0.0215731263160706 * v[37] + 0.0232260525226593 * v[66] + 0.00288419239223003 * v[67] + v[68]; + y[153] = 0.0215731263160706 * v[69] + 0.0232260525226593 * v[70] + 0.00288419239223003 * v[71] + v[72]; + y[154] = 0.0215731263160706 * v[38] + 0.0232260525226593 * v[65] + 0.00288419239223003 * v[64] + v[63]; + y[156] = 0.022247614338994 * v[37] + 0.0269022006541491 * v[66] + 0.0263182260096073 * v[67] + v[68]; + y[157] = 0.022247614338994 * v[69] + 0.0269022006541491 * v[70] + 0.0263182260096073 * v[71] + v[72]; + y[158] = 0.022247614338994 * v[38] + 0.0269022006541491 * v[65] + 0.0263182260096073 * v[64] + v[63]; + y[160] = -0.012587617063022 * v[37] + -0.0367822142356301 * v[66] + 0.0720952862501248 * v[67] + v[68]; + y[161] = -0.012587617063022 * v[69] + -0.0367822142356301 * v[70] + 0.0720952862501248 * v[71] + v[72]; + y[162] = -0.012587617063022 * v[38] + -0.0367822142356301 * v[65] + 0.0720952862501248 * v[64] + v[63]; + y[164] = -0.0156136708164741 * v[37] + -0.0359627567126562 * v[66] + 0.11080842852592 * v[67] + v[68]; + y[165] = -0.0156136708164741 * v[69] + -0.0359627567126562 * v[70] + 0.11080842852592 * v[71] + v[72]; + y[166] = -0.0156136708164741 * v[38] + -0.0359627567126562 * v[65] + 0.11080842852592 * v[64] + v[63]; + y[168] = 0.016497643534955 * v[37] + 0.0343992957979445 * v[66] + 0.0716519562155126 * v[67] + v[68]; + y[169] = 0.016497643534955 * v[69] + 0.0343992957979445 * v[70] + 0.0716519562155126 * v[71] + v[72]; + y[170] = 0.016497643534955 * v[38] + 0.0343992957979445 * v[65] + 0.0716519562155126 * v[64] + v[63]; + y[172] = 0.0156358738203146 * v[37] + 0.0351002731763063 * v[66] + 0.107802299931652 * v[67] + v[68]; + y[173] = 0.0156358738203146 * v[69] + 0.0351002731763063 * v[70] + 0.107802299931652 * v[71] + v[72]; + y[174] = 0.0156358738203146 * v[38] + 0.0351002731763063 * v[65] + 0.107802299931652 * v[64] + v[63]; + y[176] = -0.0233254483937131 * v[37] + -0.060328906390759 * v[66] + 0.229128492395143 * v[67] + v[68]; + y[177] = -0.0233254483937131 * v[69] + -0.060328906390759 * v[70] + 0.229128492395143 * v[71] + v[72]; + y[178] = -0.0233254483937131 * v[38] + -0.060328906390759 * v[65] + 0.229128492395143 * v[64] + v[63]; + y[180] = -0.0278344700254539 * v[37] + -0.0652496087446016 * v[66] + 0.174521849313737 * v[67] + v[68]; + y[181] = -0.0278344700254539 * v[69] + -0.0652496087446016 * v[70] + 0.174521849313737 * v[71] + v[72]; + y[182] = -0.0278344700254539 * v[38] + -0.0652496087446016 * v[65] + 0.174521849313737 * v[64] + v[63]; + y[184] = -0.0245009807652867 * v[37] + -0.0612167200448942 * v[66] + 0.137942649576717 * v[67] + v[68]; + y[185] = -0.0245009807652867 * v[69] + -0.0612167200448942 * v[70] + 0.137942649576717 * v[71] + v[72]; + y[186] = -0.0245009807652867 * v[38] + -0.0612167200448942 * v[65] + 0.137942649576717 * v[64] + v[63]; + y[188] = 0.0232954529086768 * v[37] + 0.060317004059848 * v[66] + 0.229128492395133 * v[67] + v[68]; + y[189] = 0.0232954529086768 * v[69] + 0.060317004059848 * v[70] + 0.229128492395133 * v[71] + v[72]; + y[190] = 0.0232954529086768 * v[38] + 0.060317004059848 * v[65] + 0.229128492395133 * v[64] + v[63]; + y[192] = 0.0277966318512907 * v[37] + 0.0652448814791517 * v[66] + 0.174521849313751 * v[67] + v[68]; + y[193] = 0.0277966318512907 * v[69] + 0.0652448814791517 * v[70] + 0.174521849313751 * v[71] + v[72]; + y[194] = 0.0277966318512907 * v[38] + 0.0652448814791517 * v[65] + 0.174521849313751 * v[64] + v[63]; + y[196] = 0.0244695698111778 * v[37] + 0.0612066888027197 * v[66] + 0.137942649576715 * v[67] + v[68]; + y[197] = 0.0244695698111778 * v[69] + 0.0612066888027197 * v[70] + 0.137942649576715 * v[71] + v[72]; + y[198] = 0.0244695698111778 * v[38] + 0.0612066888027197 * v[65] + 0.137942649576715 * v[64] + v[63]; + v[62] = cos(x[7]); + v[61] = sin(x[7]); + v[73] = 0. - v[61]; + y[216] = -0.0304988883435726 * v[62] + -0.0173739213496447 * v[73]; + y[217] = 0.765 + -0.0304988883435726 * v[61] + -0.0173739213496447 * v[62]; + y[220] = 0.0376833528280258 * v[62] + -0.0566041171550751 * v[73]; + y[221] = 0.765 + 0.0376833528280258 * v[61] + -0.0566041171550751 * v[62]; + y[224] = 0.053051695227623 * v[62] + 0.0300084203481674 * v[73]; + y[225] = 0.765 + 0.053051695227623 * v[61] + 0.0300084203481674 * v[62]; + y[228] = -0.0274603478610516 * v[62] + -0.0326122231781483 * v[73]; + y[229] = 0.765 + -0.0274603478610516 * v[61] + -0.0326122231781483 * v[62]; + y[232] = 0.0312839150428772 * v[62] + -0.0324193239212036 * v[73]; + y[233] = 0.765 + 0.0312839150428772 * v[61] + -0.0324193239212036 * v[62]; + v[74] = cos(x[8]); + v[75] = sin(x[8]); + v[76] = -1. * v[74] + 1.01273331923549e-24 * v[75]; + v[77] = -2.06823107110214e-13 * v[74] + -4.89652762780679e-12 * v[75]; + v[78] = v[62] * v[76] + v[73] * v[77]; + v[75] = -1.26217744835362e-29 * v[74] + v[75]; + v[74] = v[75] - 4.89663865010925e-12 * v[77]; + v[79] = 4.89663865010925e-12 * v[76] - -2.06823107110214e-13 * v[75]; + v[80] = v[62] * v[74] + v[73] * v[79]; + v[81] = -2.06823107110214e-13 * v[62] + v[73]; + y[236] = -0.0286435410380363 * v[78] + 0.0075924526900053 * v[80] + 0.0357369221746922 * v[81]; + v[82] = v[61] * v[76] + v[62] * v[77]; + v[79] = v[61] * v[74] + v[62] * v[79]; + v[74] = -2.06823107110214e-13 * v[61] + v[62]; + y[237] = 0.765 + -0.0286435410380363 * v[82] + 0.0075924526900053 * v[79] + 0.0357369221746922 * v[74]; + v[77] = -2.06823107110214e-13 * v[77] - v[76]; + y[238] = 0.36 + -0.0286435410380363 * v[75] + 1.74990794356544e-13 + 0.0075924526900053 * v[77]; + y[240] = 0.0302073135972023 * v[78] + -0.00406156480312347 * v[80] + 0.0409813597798347 * v[81]; + y[241] = 0.765 + 0.0302073135972023 * v[82] + -0.00406156480312347 * v[79] + 0.0409813597798347 * v[74]; + y[242] = 0.36 + 0.0302073135972023 * v[75] + 2.00670910231972e-13 + -0.00406156480312347 * v[77]; + y[244] = -0.0447303093969822 * v[78] + 0.13815912604332 * v[80] + -0.0262443888932467 * v[81]; + y[245] = 0.765 + -0.0447303093969822 * v[82] + 0.13815912604332 * v[79] + -0.0262443888932467 * v[74]; + y[246] = 0.36 + -0.0447303093969822 * v[75] + -1.2850928900317e-13 + 0.13815912604332 * v[77]; + y[248] = 0.0457500033080578 * v[78] + 0.142471238970757 * v[80] + -0.0185553897172213 * v[81]; + y[249] = 0.765 + 0.0457500033080578 * v[82] + 0.142471238970757 * v[79] + -0.0185553897172213 * v[74]; + y[250] = 0.36 + 0.0457500033080578 * v[75] + -9.08590384571854e-14 + 0.142471238970757 * v[77]; + y[252] = 0.00205385428853333 * v[78] + 0.132787525653839 * v[80] + 0.0468450263142586 * v[81]; + y[253] = 0.765 + 0.00205385428853333 * v[82] + 0.132787525653839 * v[79] + 0.0468450263142586 * v[74]; + y[254] = 0.36 + 0.00205385428853333 * v[75] + 2.29383166415784e-13 + 0.132787525653839 * v[77]; + v[76] = cos(x[9]); + v[83] = sin(x[9]); + v[84] = -1. * v[76] + 1.01273331923549e-24 * v[83]; + v[85] = -2.06823107110214e-13 * v[76] + -4.89652762780679e-12 * v[83]; + v[83] = -1.26217744835362e-29 * v[76] + v[83]; + v[76] = v[78] * v[84] + v[80] * v[85] + v[81] * v[83]; + v[86] = v[83] - 4.89663865010925e-12 * v[85]; + v[87] = 4.89663865010925e-12 * v[84] - -2.06823107110214e-13 * v[83]; + v[88] = -2.06823107110214e-13 * v[85] - v[84]; + v[89] = v[78] * v[86] + v[80] * v[87] + v[81] * v[88]; + v[90] = -2.06823107110214e-13 * v[78] + v[80] + 4.89663865010925e-12 * v[81]; + v[91] = 0.2045 * v[80]; + y[256] = -0.033751618117094 * v[76] + -0.0206236597150564 * v[89] + 0.0556587167084217 * v[90] + v[91]; + v[92] = v[82] * v[84] + v[79] * v[85] + v[74] * v[83]; + v[93] = v[82] * v[86] + v[79] * v[87] + v[74] * v[88]; + v[94] = -2.06823107110214e-13 * v[82] + v[79] + 4.89663865010925e-12 * v[74]; + v[95] = 0.765 + 0.2045 * v[79]; + y[257] = -0.033751618117094 * v[92] + -0.0206236597150564 * v[93] + 0.0556587167084217 * v[94] + v[95]; + v[83] = v[75] * v[84] + v[77] * v[85] + 4.89663865010925e-12 * v[83]; + v[88] = v[75] * v[86] + v[77] * v[87] + 4.89663865010925e-12 * v[88]; + v[87] = -2.06823107110214e-13 * v[75] + 2.39770700697438e-23 + v[77]; + v[86] = 0.36 + 0.2045 * v[77]; + y[258] = -0.033751618117094 * v[83] + -0.0206236597150564 * v[88] + 0.0556587167084217 * v[87] + v[86]; + y[260] = 0.036438126116991 * v[76] + -0.0216596964746714 * v[89] + 0.0589511506259441 * v[90] + v[91]; + y[261] = 0.036438126116991 * v[92] + -0.0216596964746714 * v[93] + 0.0589511506259441 * v[94] + v[95]; + y[262] = 0.036438126116991 * v[83] + -0.0216596964746714 * v[88] + 0.0589511506259441 * v[87] + v[86]; + y[264] = 0.00543839018791914 * v[76] + 0.0358658879995346 * v[89] + 0.0723318234086037 * v[90] + v[91]; + y[265] = 0.00543839018791914 * v[92] + 0.0358658879995346 * v[93] + 0.0723318234086037 * v[94] + v[95]; + y[266] = 0.00543839018791914 * v[83] + 0.0358658879995346 * v[88] + 0.0723318234086037 * v[87] + v[86]; + y[268] = -0.00150183925870806 * v[76] + 0.00477686012163758 * v[89] + 0.188644707202911 * v[90] + v[91]; + y[269] = -0.00150183925870806 * v[92] + 0.00477686012163758 * v[93] + 0.188644707202911 * v[94] + v[95]; + y[270] = -0.00150183925870806 * v[83] + 0.00477686012163758 * v[88] + 0.188644707202911 * v[87] + v[86]; + y[272] = -0.000443624390754849 * v[76] + 0.0609206445515156 * v[89] + 0.187817513942719 * v[90] + v[91]; + y[273] = -0.000443624390754849 * v[92] + 0.0609206445515156 * v[93] + 0.187817513942719 * v[94] + v[95]; + y[274] = -0.000443624390754849 * v[83] + 0.0609206445515156 * v[88] + 0.187817513942719 * v[87] + v[86]; + v[85] = cos(x[10]); + v[84] = sin(x[10]); + v[96] = 4.89663865010925e-12 * v[84]; + v[97] = v[76] * v[85] + v[89] * v[96] + v[90] * v[84]; + v[98] = -1. * v[84] - 4.89663865010925e-12 * v[96]; + v[99] = 4.89663865010925e-12 * v[85]; + v[100] = 0. - -1. * v[85]; + v[101] = v[76] * v[98] + v[89] * v[99] + v[90] * v[100]; + v[102] = -1. * v[89] + 4.89663865010925e-12 * v[90]; + v[103] = v[91] + 0.2155 * v[90]; + y[276] = 0.00209041242487729 * v[97] + 0.0127677032724023 * v[101] + 0.0110630923882127 * v[102] + v[103]; + v[104] = v[92] * v[85] + v[93] * v[96] + v[94] * v[84]; + v[105] = v[92] * v[98] + v[93] * v[99] + v[94] * v[100]; + v[106] = -1. * v[93] + 4.89663865010925e-12 * v[94]; + v[107] = v[95] + 0.2155 * v[94]; + y[277] = 0.00209041242487729 * v[104] + 0.0127677032724023 * v[105] + 0.0110630923882127 * v[106] + v[107]; + v[96] = v[83] * v[85] + v[88] * v[96] + v[87] * v[84]; + v[100] = v[83] * v[98] + v[88] * v[99] + v[87] * v[100]; + v[99] = -1. * v[88] + 4.89663865010925e-12 * v[87]; + v[98] = v[86] + 0.2155 * v[87]; + y[278] = 0.00209041242487729 * v[96] + 0.0127677032724023 * v[100] + 0.0110630923882127 * v[99] + v[98]; + y[280] = 0.00488302065059543 * v[97] + 0.0161912720650434 * v[101] + 0.0618039071559906 * v[102] + v[103]; + y[281] = 0.00488302065059543 * v[104] + 0.0161912720650434 * v[105] + 0.0618039071559906 * v[106] + v[107]; + y[282] = 0.00488302065059543 * v[96] + 0.0161912720650434 * v[100] + 0.0618039071559906 * v[99] + v[98]; + y[284] = -0.0348032154142857 * v[97] + 0.133986249566078 * v[101] + -0.0251118093729019 * v[102] + v[103]; + y[285] = -0.0348032154142857 * v[104] + 0.133986249566078 * v[105] + -0.0251118093729019 * v[106] + v[107]; + y[286] = -0.0348032154142857 * v[96] + 0.133986249566078 * v[100] + -0.0251118093729019 * v[99] + v[98]; + y[288] = 0.038326770067215 * v[97] + 0.133518978953362 * v[101] + -0.0277583207935095 * v[102] + v[103]; + y[289] = 0.038326770067215 * v[104] + 0.133518978953362 * v[105] + -0.0277583207935095 * v[106] + v[107]; + y[290] = 0.038326770067215 * v[96] + 0.133518978953362 * v[100] + -0.0277583207935095 * v[99] + v[98]; + y[292] = -0.00637074047699571 * v[97] + 0.12884546816349 * v[101] + 0.0382916443049908 * v[102] + v[103]; + y[293] = -0.00637074047699571 * v[104] + 0.12884546816349 * v[105] + 0.0382916443049908 * v[106] + v[107]; + y[294] = -0.00637074047699571 * v[96] + 0.12884546816349 * v[100] + 0.0382916443049908 * v[99] + v[98]; + v[84] = cos(x[11]); + v[85] = sin(x[11]); + v[108] = -1. * v[84] + 2.06823107110214e-13 * v[85]; + v[109] = 1.26217744835362e-29 * v[84] + 4.89663865010925e-12 * v[85]; + v[85] = 2.06823107110214e-13 * v[84] + v[85]; + v[84] = v[97] * v[108] + v[101] * v[109] + v[102] * v[85]; + v[110] = v[85] - -4.89652762780679e-12 * v[109]; + v[111] = -4.89652762780679e-12 * v[108] - -1.01273331923549e-24 * v[85]; + v[112] = -1.01273331923549e-24 * v[109] - v[108]; + v[113] = v[97] * v[110] + v[101] * v[111] + v[102] * v[112]; + v[114] = -1.01273331923549e-24 * v[97] + v[101] + -4.89652762780679e-12 * v[102]; + v[115] = v[103] + 0.1845 * v[101]; + y[296] = -0.0303262490779161 * v[84] + -0.0207324735820293 * v[113] + 0.0466873794794083 * v[114] + v[115]; + v[116] = v[104] * v[108] + v[105] * v[109] + v[106] * v[85]; + v[117] = v[104] * v[110] + v[105] * v[111] + v[106] * v[112]; + v[118] = -1.01273331923549e-24 * v[104] + v[105] + -4.89652762780679e-12 * v[106]; + v[119] = v[107] + 0.1845 * v[105]; + y[297] = -0.0303262490779161 * v[116] + -0.0207324735820293 * v[117] + 0.0466873794794083 * v[118] + v[119]; + v[85] = v[96] * v[108] + v[100] * v[109] + v[99] * v[85]; + v[112] = v[96] * v[110] + v[100] * v[111] + v[99] * v[112]; + v[111] = -1.01273331923549e-24 * v[96] + v[100] + -4.89652762780679e-12 * v[99]; + v[110] = v[98] + 0.1845 * v[100]; + y[298] = -0.0303262490779161 * v[85] + -0.0207324735820293 * v[112] + 0.0466873794794083 * v[111] + v[110]; + y[300] = 0.0382123328745365 * v[84] + -0.0229748375713825 * v[113] + 0.0462025664746761 * v[114] + v[115]; + y[301] = 0.0382123328745365 * v[116] + -0.0229748375713825 * v[117] + 0.0462025664746761 * v[118] + v[119]; + y[302] = 0.0382123328745365 * v[85] + -0.0229748375713825 * v[112] + 0.0462025664746761 * v[111] + v[110]; + y[304] = -0.029545271769166 * v[84] + 0.0435335896909237 * v[113] + 0.0515478737652302 * v[114] + v[115]; + y[305] = -0.029545271769166 * v[116] + 0.0435335896909237 * v[117] + 0.0515478737652302 * v[118] + v[119]; + y[306] = -0.029545271769166 * v[85] + 0.0435335896909237 * v[112] + 0.0515478737652302 * v[111] + v[110]; + y[308] = 0.0294575486332178 * v[84] + 0.0443899892270565 * v[113] + 0.0518434084951878 * v[114] + v[115]; + y[309] = 0.0294575486332178 * v[116] + 0.0443899892270565 * v[117] + 0.0518434084951878 * v[118] + v[119]; + y[310] = 0.0294575486332178 * v[85] + 0.0443899892270565 * v[112] + 0.0518434084951878 * v[111] + v[110]; + y[312] = -0.0226244386285543 * v[84] + 0.03036268055439 * v[113] + 0.143480017781258 * v[114] + v[115]; + y[313] = -0.0226244386285543 * v[116] + 0.03036268055439 * v[117] + 0.143480017781258 * v[118] + v[119]; + y[314] = -0.0226244386285543 * v[85] + 0.03036268055439 * v[112] + 0.143480017781258 * v[111] + v[110]; + y[316] = 0.0228122211992741 * v[84] + 0.0326673835515976 * v[113] + 0.144575268030167 * v[114] + v[115]; + y[317] = 0.0228122211992741 * v[116] + 0.0326673835515976 * v[117] + 0.144575268030167 * v[118] + v[119]; + y[318] = 0.0228122211992741 * v[85] + 0.0326673835515976 * v[112] + 0.144575268030167 * v[111] + v[110]; + y[320] = -0.000356095697497949 * v[84] + 0.0570880249142647 * v[113] + 0.213441297411919 * v[114] + v[115]; + y[321] = -0.000356095697497949 * v[116] + 0.0570880249142647 * v[117] + 0.213441297411919 * v[118] + v[119]; + y[322] = -0.000356095697497949 * v[85] + 0.0570880249142647 * v[112] + 0.213441297411919 * v[111] + v[110]; + v[109] = cos(x[12]); + v[108] = sin(x[12]); + v[120] = 4.89663865010925e-12 * v[108]; + v[121] = v[84] * v[109] + v[113] * v[120] + v[114] * v[108]; + v[122] = -1. * v[108] - 4.89663865010925e-12 * v[120]; + v[123] = 4.89663865010925e-12 * v[109]; + v[124] = 0. - -1. * v[109]; + v[125] = v[84] * v[122] + v[113] * v[123] + v[114] * v[124]; + v[126] = -1. * v[113] + 4.89663865010925e-12 * v[114]; + v[127] = v[115] + 0.2155 * v[114]; + y[324] = 0.00531387468799949 * v[121] + -0.0231041144579649 * v[125] + -0.0224952418357134 * v[126] + v[127]; + v[128] = v[116] * v[109] + v[117] * v[120] + v[118] * v[108]; + v[129] = v[116] * v[122] + v[117] * v[123] + v[118] * v[124]; + v[130] = -1. * v[117] + 4.89663865010925e-12 * v[118]; + v[131] = v[119] + 0.2155 * v[118]; + y[325] = 0.00531387468799949 * v[128] + -0.0231041144579649 * v[129] + -0.0224952418357134 * v[130] + v[131]; + v[120] = v[85] * v[109] + v[112] * v[120] + v[111] * v[108]; + v[124] = v[85] * v[122] + v[112] * v[123] + v[111] * v[124]; + v[123] = -1. * v[112] + 4.89663865010925e-12 * v[111]; + v[122] = v[110] + 0.2155 * v[111]; + y[326] = 0.00531387468799949 * v[120] + -0.0231041144579649 * v[124] + -0.0224952418357134 * v[123] + v[122]; + y[328] = 0.00424248585477471 * v[121] + -0.0304307378828526 * v[125] + 0.0232355650514364 * v[126] + v[127]; + y[329] = 0.00424248585477471 * v[128] + -0.0304307378828526 * v[129] + 0.0232355650514364 * v[130] + v[131]; + y[330] = 0.00424248585477471 * v[120] + -0.0304307378828526 * v[124] + 0.0232355650514364 * v[123] + v[122]; + y[332] = 0.00347242690622807 * v[121] + 0.0357604399323463 * v[125] + -0.0275979526340961 * v[126] + v[127]; + y[333] = 0.00347242690622807 * v[128] + 0.0357604399323463 * v[129] + -0.0275979526340961 * v[130] + v[131]; + y[334] = 0.00347242690622807 * v[120] + 0.0357604399323463 * v[124] + -0.0275979526340961 * v[123] + v[122]; + y[336] = -0.00440459558740258 * v[121] + 0.029050262644887 * v[125] + 0.0197553057223558 * v[126] + v[127]; + y[337] = -0.00440459558740258 * v[128] + 0.029050262644887 * v[129] + 0.0197553057223558 * v[130] + v[131]; + y[338] = -0.00440459558740258 * v[120] + 0.029050262644887 * v[124] + 0.0197553057223558 * v[123] + v[122]; + v[108] = cos(x[13]); + v[109] = sin(x[13]); + v[132] = -1. * v[108] + 2.06823107110214e-13 * v[109]; + v[133] = 1.26217744835362e-29 * v[108] + 4.89663865010925e-12 * v[109]; + v[109] = 2.06823107110214e-13 * v[108] + v[109]; + v[108] = v[121] * v[132] + v[125] * v[133] + v[126] * v[109]; + v[134] = v[109] - -4.89652762780679e-12 * v[133]; + v[135] = -4.89652762780679e-12 * v[132] - -1.01273331923549e-24 * v[109]; + v[136] = -1.01273331923549e-24 * v[133] - v[132]; + v[137] = v[121] * v[134] + v[125] * v[135] + v[126] * v[136]; + v[138] = -1.01273331923549e-24 * v[121] + v[125] + -4.89652762780679e-12 * v[126]; + v[139] = v[127] + 0.081 * v[125]; + y[340] = -0.0199781656265259 * v[108] + -0.0210024751722813 * v[137] + 0.015956237912178 * v[138] + v[139]; + v[140] = v[128] * v[132] + v[129] * v[133] + v[130] * v[109]; + v[141] = v[128] * v[134] + v[129] * v[135] + v[130] * v[136]; + v[142] = -1.01273331923549e-24 * v[128] + v[129] + -4.89652762780679e-12 * v[130]; + v[143] = v[131] + 0.081 * v[129]; + y[341] = -0.0199781656265259 * v[140] + -0.0210024751722813 * v[141] + 0.015956237912178 * v[142] + v[143]; + v[109] = v[120] * v[132] + v[124] * v[133] + v[123] * v[109]; + v[136] = v[120] * v[134] + v[124] * v[135] + v[123] * v[136]; + v[135] = -1.01273331923549e-24 * v[120] + v[124] + -4.89652762780679e-12 * v[123]; + v[134] = v[122] + 0.081 * v[124]; + y[342] = -0.0199781656265259 * v[109] + -0.0210024751722813 * v[136] + 0.015956237912178 * v[135] + v[134]; + y[344] = 0.0191871430724859 * v[108] + -0.0194653403013945 * v[137] + 0.0160456709563732 * v[138] + v[139]; + y[345] = 0.0191871430724859 * v[140] + -0.0194653403013945 * v[141] + 0.0160456709563732 * v[142] + v[143]; + y[346] = 0.0191871430724859 * v[109] + -0.0194653403013945 * v[136] + 0.0160456709563732 * v[135] + v[134]; + y[348] = -0.0201440621167421 * v[108] + 0.0189183782786131 * v[137] + 0.0165120754390955 * v[138] + v[139]; + y[349] = -0.0201440621167421 * v[140] + 0.0189183782786131 * v[141] + 0.0165120754390955 * v[142] + v[143]; + y[350] = -0.0201440621167421 * v[109] + 0.0189183782786131 * v[136] + 0.0165120754390955 * v[135] + v[134]; + y[352] = 0.0215731263160706 * v[108] + 0.0232260525226593 * v[137] + 0.00288419239223003 * v[138] + v[139]; + y[353] = 0.0215731263160706 * v[140] + 0.0232260525226593 * v[141] + 0.00288419239223003 * v[142] + v[143]; + y[354] = 0.0215731263160706 * v[109] + 0.0232260525226593 * v[136] + 0.00288419239223003 * v[135] + v[134]; + y[356] = 0.022247614338994 * v[108] + 0.0269022006541491 * v[137] + 0.0263182260096073 * v[138] + v[139]; + y[357] = 0.022247614338994 * v[140] + 0.0269022006541491 * v[141] + 0.0263182260096073 * v[142] + v[143]; + y[358] = 0.022247614338994 * v[109] + 0.0269022006541491 * v[136] + 0.0263182260096073 * v[135] + v[134]; + y[360] = -0.012587617063022 * v[108] + -0.0367822142356301 * v[137] + 0.0720952862501248 * v[138] + v[139]; + y[361] = -0.012587617063022 * v[140] + -0.0367822142356301 * v[141] + 0.0720952862501248 * v[142] + v[143]; + y[362] = -0.012587617063022 * v[109] + -0.0367822142356301 * v[136] + 0.0720952862501248 * v[135] + v[134]; + y[364] = -0.0156136708164741 * v[108] + -0.0359627567126562 * v[137] + 0.11080842852592 * v[138] + v[139]; + y[365] = -0.0156136708164741 * v[140] + -0.0359627567126562 * v[141] + 0.11080842852592 * v[142] + v[143]; + y[366] = -0.0156136708164741 * v[109] + -0.0359627567126562 * v[136] + 0.11080842852592 * v[135] + v[134]; + y[368] = 0.016497643534955 * v[108] + 0.0343992957979445 * v[137] + 0.0716519562155126 * v[138] + v[139]; + y[369] = 0.016497643534955 * v[140] + 0.0343992957979445 * v[141] + 0.0716519562155126 * v[142] + v[143]; + y[370] = 0.016497643534955 * v[109] + 0.0343992957979445 * v[136] + 0.0716519562155126 * v[135] + v[134]; + y[372] = 0.0156358738203146 * v[108] + 0.0351002731763063 * v[137] + 0.107802299931652 * v[138] + v[139]; + y[373] = 0.0156358738203146 * v[140] + 0.0351002731763063 * v[141] + 0.107802299931652 * v[142] + v[143]; + y[374] = 0.0156358738203146 * v[109] + 0.0351002731763063 * v[136] + 0.107802299931652 * v[135] + v[134]; + y[376] = -0.0233254483937131 * v[108] + -0.060328906390759 * v[137] + 0.229128492395143 * v[138] + v[139]; + y[377] = -0.0233254483937131 * v[140] + -0.060328906390759 * v[141] + 0.229128492395143 * v[142] + v[143]; + y[378] = -0.0233254483937131 * v[109] + -0.060328906390759 * v[136] + 0.229128492395143 * v[135] + v[134]; + y[380] = -0.0278344700254539 * v[108] + -0.0652496087446016 * v[137] + 0.174521849313737 * v[138] + v[139]; + y[381] = -0.0278344700254539 * v[140] + -0.0652496087446016 * v[141] + 0.174521849313737 * v[142] + v[143]; + y[382] = -0.0278344700254539 * v[109] + -0.0652496087446016 * v[136] + 0.174521849313737 * v[135] + v[134]; + y[384] = -0.0245009807652867 * v[108] + -0.0612167200448942 * v[137] + 0.137942649576717 * v[138] + v[139]; + y[385] = -0.0245009807652867 * v[140] + -0.0612167200448942 * v[141] + 0.137942649576717 * v[142] + v[143]; + y[386] = -0.0245009807652867 * v[109] + -0.0612167200448942 * v[136] + 0.137942649576717 * v[135] + v[134]; + y[388] = 0.0232954529086768 * v[108] + 0.060317004059848 * v[137] + 0.229128492395133 * v[138] + v[139]; + y[389] = 0.0232954529086768 * v[140] + 0.060317004059848 * v[141] + 0.229128492395133 * v[142] + v[143]; + y[390] = 0.0232954529086768 * v[109] + 0.060317004059848 * v[136] + 0.229128492395133 * v[135] + v[134]; + y[392] = 0.0277966318512907 * v[108] + 0.0652448814791517 * v[137] + 0.174521849313751 * v[138] + v[139]; + y[393] = 0.0277966318512907 * v[140] + 0.0652448814791517 * v[141] + 0.174521849313751 * v[142] + v[143]; + y[394] = 0.0277966318512907 * v[109] + 0.0652448814791517 * v[136] + 0.174521849313751 * v[135] + v[134]; + y[396] = 0.0244695698111778 * v[108] + 0.0612066888027197 * v[137] + 0.137942649576715 * v[138] + v[139]; + y[397] = 0.0244695698111778 * v[140] + 0.0612066888027197 * v[141] + 0.137942649576715 * v[142] + v[143]; + y[398] = 0.0244695698111778 * v[109] + 0.0612066888027197 * v[136] + 0.137942649576715 * v[135] + v[134]; + y[404] = 0.000872313685249537 * v[0] + -0.0133955972269177 * v[2]; + y[405] = 0.000872313685249537 * v[1] + -0.0133955972269177 * v[0]; + y[408] = 0.00193074345588684 * v[7] + 0.0649560242891312 * v[9] + 0.00920608267188072 * v[10]; + y[409] = 0.00193074345588684 * v[11] + 0.0649560242891312 * v[8] + 0.00920608267188072 * v[3]; + y[410] = 0.36 + 0.00193074345588684 * v[4] + 4.50788602272322e-14 + 0.0649560242891312 * v[6]; + y[412] = -0.000562309403903782 * v[5] + 0.0219063013792038 * v[18] + 0.125700622797012 * v[19] + v[20]; + y[413] = -0.000562309403903782 * v[21] + 0.0219063013792038 * v[22] + 0.125700622797012 * v[23] + v[24]; + y[414] = -0.000562309403903782 * v[12] + 0.0219063013792038 * v[17] + 0.125700622797012 * v[16] + v[15]; + y[416] = 0.00356513448059559 * v[26] + 0.0733528286218643 * v[30] + 0.0188915058970451 * v[31] + v[32]; + y[417] = 0.00356513448059559 * v[33] + 0.0733528286218643 * v[34] + 0.0188915058970451 * v[35] + v[36]; + y[418] = 0.00356513448059559 * v[25] + 0.0733528286218643 * v[29] + 0.0188915058970451 * v[28] + v[27]; + y[420] = 0.00770308636128902 * v[13] + 0.0144911548122764 * v[42] + 0.123687468469143 * v[43] + v[44]; + y[421] = 0.00770308636128902 * v[45] + 0.0144911548122764 * v[46] + 0.123687468469143 * v[47] + v[48]; + y[422] = 0.00770308636128902 * v[14] + 0.0144911548122764 * v[41] + 0.123687468469143 * v[40] + v[39]; + y[424] = 0.00384843838401139 * v[50] + 0.00344000640325248 * v[54] + -0.00277649774216115 * v[55] + v[56]; + y[425] = 0.00384843838401139 * v[57] + 0.00344000640325248 * v[58] + -0.00277649774216115 * v[59] + v[60]; + y[426] = 0.00384843838401139 * v[49] + 0.00344000640325248 * v[53] + -0.00277649774216115 * v[52] + v[51]; + y[428] = 0.000802827416919172 * v[37] + 0.00246126996353269 * v[66] + 0.0201600454747677 * v[67] + v[68]; + y[429] = 0.000802827416919172 * v[69] + 0.00246126996353269 * v[70] + 0.0201600454747677 * v[71] + v[72]; + y[430] = 0.000802827416919172 * v[38] + 0.00246126996353269 * v[65] + 0.0201600454747677 * v[64] + v[63]; + y[432] = 0.000565047317650169 * v[37] + -0.000513007864356041 * v[66] + 0.0910757705569267 * v[67] + v[68]; + y[433] = 0.000565047317650169 * v[69] + -0.000513007864356041 * v[70] + 0.0910757705569267 * v[71] + v[72]; + y[434] = 0.000565047317650169 * v[38] + -0.000513007864356041 * v[65] + 0.0910757705569267 * v[64] + v[63]; + y[436] = -0.0238223746418953 * v[37] + -0.0607042051851749 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[437] = -0.0238223746418953 * v[69] + -0.0607042051851749 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[438] = -0.0238223746418953 * v[38] + -0.0607042051851749 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[440] = 0.0237917806953192 * v[37] + 0.0606930963695049 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[441] = 0.0237917806953192 * v[69] + 0.0606930963695049 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[442] = 0.0237917806953192 * v[38] + 0.0606930963695049 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[448] = 0.000872313685249537 * v[62] + -0.0133955972269177 * v[73]; + y[449] = 0.765 + 0.000872313685249537 * v[61] + -0.0133955972269177 * v[62]; + y[452] = 0.00193074345588684 * v[78] + 0.0649560242891312 * v[80] + 0.00920608267188072 * v[81]; + y[453] = 0.765 + 0.00193074345588684 * v[82] + 0.0649560242891312 * v[79] + 0.00920608267188072 * v[74]; + y[454] = 0.36 + 0.00193074345588684 * v[75] + 4.50788602272322e-14 + 0.0649560242891312 * v[77]; + y[456] = -0.000562309403903782 * v[76] + 0.0219063013792038 * v[89] + 0.125700622797012 * v[90] + v[91]; + y[457] = -0.000562309403903782 * v[92] + 0.0219063013792038 * v[93] + 0.125700622797012 * v[94] + v[95]; + y[458] = -0.000562309403903782 * v[83] + 0.0219063013792038 * v[88] + 0.125700622797012 * v[87] + v[86]; + y[460] = 0.00356513448059559 * v[97] + 0.0733528286218643 * v[101] + 0.0188915058970451 * v[102] + v[103]; + y[461] = 0.00356513448059559 * v[104] + 0.0733528286218643 * v[105] + 0.0188915058970451 * v[106] + v[107]; + y[462] = 0.00356513448059559 * v[96] + 0.0733528286218643 * v[100] + 0.0188915058970451 * v[99] + v[98]; + y[464] = 0.00770308636128902 * v[84] + 0.0144911548122764 * v[113] + 0.123687468469143 * v[114] + v[115]; + y[465] = 0.00770308636128902 * v[116] + 0.0144911548122764 * v[117] + 0.123687468469143 * v[118] + v[119]; + y[466] = 0.00770308636128902 * v[85] + 0.0144911548122764 * v[112] + 0.123687468469143 * v[111] + v[110]; + y[468] = 0.00384843838401139 * v[121] + 0.00344000640325248 * v[125] + -0.00277649774216115 * v[126] + v[127]; + y[469] = 0.00384843838401139 * v[128] + 0.00344000640325248 * v[129] + -0.00277649774216115 * v[130] + v[131]; + y[470] = 0.00384843838401139 * v[120] + 0.00344000640325248 * v[124] + -0.00277649774216115 * v[123] + v[122]; + y[472] = 0.000802827416919172 * v[108] + 0.00246126996353269 * v[137] + 0.0201600454747677 * v[138] + v[139]; + y[473] = 0.000802827416919172 * v[140] + 0.00246126996353269 * v[141] + 0.0201600454747677 * v[142] + v[143]; + y[474] = 0.000802827416919172 * v[109] + 0.00246126996353269 * v[136] + 0.0201600454747677 * v[135] + v[134]; + y[476] = 0.000565047317650169 * v[108] + -0.000513007864356041 * v[137] + 0.0910757705569267 * v[138] + v[139]; + y[477] = 0.000565047317650169 * v[140] + -0.000513007864356041 * v[141] + 0.0910757705569267 * v[142] + v[143]; + y[478] = 0.000565047317650169 * v[109] + -0.000513007864356041 * v[136] + 0.0910757705569267 * v[135] + v[134]; + y[480] = -0.0238223746418953 * v[108] + -0.0607042051851749 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[481] = -0.0238223746418953 * v[140] + -0.0607042051851749 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[482] = -0.0238223746418953 * v[109] + -0.0607042051851749 * v[136] + 0.190582081675529 * v[135] + v[134]; + y[484] = 0.0237917806953192 * v[108] + 0.0606930963695049 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[485] = 0.0237917806953192 * v[140] + 0.0606930963695049 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[486] = 0.0237917806953192 * v[109] + 0.0606930963695049 * v[136] + 0.190582081675529 * v[135] + v[134]; + // dependent variables without operations + y[0] = -0.0735198631882668; + y[1] = -0.0541173815727234; + y[2] = 0.0768099054694176; + y[3] = 0.105830922722816; + y[4] = -0.0735262334346771; + y[5] = 0.0529109761118889; + y[6] = 0.0793738961219788; + y[7] = 0.104262858629227; + y[8] = 0.0390705168247223; + y[9] = -0.0450286567211151; + y[10] = 0.0765031948685646; + y[11] = 0.106655471026897; + y[12] = 0.0499769896268845; + y[13] = 0.0486934892833233; + y[14] = 0.0640255585312843; + y[15] = 0.10622838139534; + y[18] = 0.21666914716363; + y[19] = 0.107229880988598; + y[22] = 0.21647381156683; + y[23] = 0.0835958793759346; + y[26] = 0.215699472725391; + y[27] = 0.0838129222393036; + y[30] = 0.345404357910156; + y[31] = 0.098225325345993; + y[34] = 0.345727117061615; + y[35] = 0.097195640206337; + y[39] = 0.0975483432412148; + y[43] = 0.0937116593122482; + y[47] = 0.0810142904520035; + y[51] = 0.081512838602066; + y[55] = 0.0968621224164963; + y[59] = 0.0760728046298027; + y[63] = 0.0766041874885559; + y[67] = 0.0939076915383339; + y[71] = 0.0926672369241714; + y[75] = 0.0911291986703873; + y[79] = 0.0827247872948647; + y[83] = 0.0821510478854179; + y[87] = 0.0694684311747551; + y[91] = 0.0699467360973358; + y[95] = 0.0867823362350464; + y[99] = 0.0661434233188629; + y[103] = 0.0676505789160728; + y[107] = 0.0714448466897011; + y[111] = 0.0710318759083748; + y[115] = 0.0704528912901878; + y[119] = 0.0710151568055153; + y[123] = 0.0592901185154915; + y[127] = 0.0694939121603966; + y[131] = 0.0688671767711639; + y[135] = 0.07082200050354; + y[139] = 0.0727226212620735; + y[143] = 0.0363594107329845; + y[147] = 0.0361910536885262; + y[151] = 0.0362601280212402; + y[155] = 0.0339092910289764; + y[159] = 0.0348900593817234; + y[163] = 0.0449101217091084; + y[167] = 0.0442281886935234; + y[171] = 0.0448950715363026; + y[175] = 0.0444425120949745; + y[179] = 0.0432860739529133; + y[183] = 0.0269252900034189; + y[187] = 0.0291912201792002; + y[191] = 0.0432860739529133; + y[195] = 0.0269252900034189; + y[199] = 0.0291912201792002; + y[200] = -0.0735198631882668; + y[201] = 0.710882618427277; + y[202] = 0.0768099054694176; + y[203] = 0.105830922722816; + y[204] = -0.0735262334346771; + y[205] = 0.817910976111889; + y[206] = 0.0793738961219788; + y[207] = 0.104262858629227; + y[208] = 0.0390705168247223; + y[209] = 0.719971343278885; + y[210] = 0.0765031948685646; + y[211] = 0.106655471026897; + y[212] = 0.0499769896268845; + y[213] = 0.813693489283323; + y[214] = 0.0640255585312843; + y[215] = 0.10622838139534; + y[218] = 0.21666914716363; + y[219] = 0.107229880988598; + y[222] = 0.21647381156683; + y[223] = 0.0835958793759346; + y[226] = 0.215699472725391; + y[227] = 0.0838129222393036; + y[230] = 0.345404357910156; + y[231] = 0.098225325345993; + y[234] = 0.345727117061615; + y[235] = 0.097195640206337; + y[239] = 0.0975483432412148; + y[243] = 0.0937116593122482; + y[247] = 0.0810142904520035; + y[251] = 0.081512838602066; + y[255] = 0.0968621224164963; + y[259] = 0.0760728046298027; + y[263] = 0.0766041874885559; + y[267] = 0.0939076915383339; + y[271] = 0.0926672369241714; + y[275] = 0.0911291986703873; + y[279] = 0.0827247872948647; + y[283] = 0.0821510478854179; + y[287] = 0.0694684311747551; + y[291] = 0.0699467360973358; + y[295] = 0.0867823362350464; + y[299] = 0.0661434233188629; + y[303] = 0.0676505789160728; + y[307] = 0.0714448466897011; + y[311] = 0.0710318759083748; + y[315] = 0.0704528912901878; + y[319] = 0.0710151568055153; + y[323] = 0.0592901185154915; + y[327] = 0.0694939121603966; + y[331] = 0.0688671767711639; + y[335] = 0.07082200050354; + y[339] = 0.0727226212620735; + y[343] = 0.0363594107329845; + y[347] = 0.0361910536885262; + y[351] = 0.0362601280212402; + y[355] = 0.0339092910289764; + y[359] = 0.0348900593817234; + y[363] = 0.0449101217091084; + y[367] = 0.0442281886935234; + y[371] = 0.0448950715363026; + y[375] = 0.0444425120949745; + y[379] = 0.0432860739529133; + y[383] = 0.0269252900034189; + y[387] = 0.0291912201792002; + y[391] = 0.0432860739529133; + y[395] = 0.0269252900034189; + y[399] = 0.0291912201792002; + y[400] = -0.012415380217135; + y[401] = -0.00161365361418575; + y[402] = 0.0705235376954079; + y[403] = 0.186638832092285; + y[406] = 0.276647390127182; + y[407] = 0.175033777952194; + y[411] = 0.174783602356911; + y[415] = 0.164482057094574; + y[419] = 0.153639882802963; + y[423] = 0.158965557813644; + y[427] = 0.111575603485107; + y[431] = 0.0679832771420479; + y[435] = 0.0879067108035088; + y[439] = 0.0818375200033188; + y[443] = 0.0818375200033188; + y[444] = -0.012415380217135; + y[445] = 0.763386368751526; + y[446] = 0.0705235376954079; + y[447] = 0.186638832092285; + y[450] = 0.276647390127182; + y[451] = 0.175033777952194; + y[455] = 0.174783602356911; + y[459] = 0.164482057094574; + y[463] = 0.153639882802963; + y[467] = 0.158965557813644; + y[471] = 0.111575603485107; + y[475] = 0.0679832771420479; + y[479] = 0.0879067108035088; + y[483] = 0.0818375200033188; + y[487] = 0.0818375200033188; + + // clang-format off +// + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/right_finger +if (sphere_environment_in_collision(environment, + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[388], + y[389], + y[390], + y[391])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[392], + y[393], + y[394], + y[395])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[396], + y[397], + y[398], + y[399])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/left_finger +if (sphere_environment_in_collision(environment, + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[376], + y[377], + y[378], + y[379])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[380], + y[381], + y[382], + y[383])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[384], + y[385], + y[386], + y[387])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/body +if (sphere_environment_in_collision(environment, + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[360], + y[361], + y[362], + y[363])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[364], + y[365], + y[366], + y[367])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[368], + y[369], + y[370], + y[371])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[372], + y[373], + y[374], + y[375])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_7 +if (sphere_environment_in_collision(environment, + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[340], + y[341], + y[342], + y[343])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[344], + y[345], + y[346], + y[347])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[348], + y[349], + y[350], + y[351])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[352], + y[353], + y[354], + y[355])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[356], + y[357], + y[358], + y[359])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_6 +if (sphere_environment_in_collision(environment, + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[324], + y[325], + y[326], + y[327])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[328], + y[329], + y[330], + y[331])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[332], + y[333], + y[334], + y[335])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[336], + y[337], + y[338], + y[339])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_5 +if (sphere_environment_in_collision(environment, + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[296], + y[297], + y[298], + y[299])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[300], + y[301], + y[302], + y[303])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[304], + y[305], + y[306], + y[307])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[308], + y[309], + y[310], + y[311])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[312], + y[313], + y[314], + y[315])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[316], + y[317], + y[318], + y[319])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[320], + y[321], + y[322], + y[323])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_4 +if (sphere_environment_in_collision(environment, + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[276], + y[277], + y[278], + y[279])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[280], + y[281], + y[282], + y[283])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[284], + y[285], + y[286], + y[287])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[288], + y[289], + y[290], + y[291])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[292], + y[293], + y[294], + y[295])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_3 +if (sphere_environment_in_collision(environment, + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[256], + y[257], + y[258], + y[259])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[260], + y[261], + y[262], + y[263])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[264], + y[265], + y[266], + y[267])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[268], + y[269], + y[270], + y[271])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[272], + y[273], + y[274], + y[275])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_2 +if (sphere_environment_in_collision(environment, + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[236], + y[237], + y[238], + y[239])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[240], + y[241], + y[242], + y[243])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[244], + y[245], + y[246], + y[247])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[248], + y[249], + y[250], + y[251])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[252], + y[253], + y[254], + y[255])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_1 +if (sphere_environment_in_collision(environment, + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[216], + y[217], + y[218], + y[219])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[220], + y[221], + y[222], + y[223])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[224], + y[225], + y[226], + y[227])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[228], + y[229], + y[230], + y[231])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[232], + y[233], + y[234], + y[235])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_0 +if (sphere_environment_in_collision(environment, + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[200], + y[201], + y[202], + y[203])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[204], + y[205], + y[206], + y[207])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[208], + y[209], + y[210], + y[211])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[212], + y[213], + y[214], + y[215])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/right_finger +if (sphere_environment_in_collision(environment, + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[188], + y[189], + y[190], + y[191])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[192], + y[193], + y[194], + y[195])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[196], + y[197], + y[198], + y[199])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/left_finger +if (sphere_environment_in_collision(environment, + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[176], + y[177], + y[178], + y[179])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[180], + y[181], + y[182], + y[183])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[184], + y[185], + y[186], + y[187])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/body +if (sphere_environment_in_collision(environment, + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[160], + y[161], + y[162], + y[163])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[164], + y[165], + y[166], + y[167])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[168], + y[169], + y[170], + y[171])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[172], + y[173], + y[174], + y[175])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_7 +if (sphere_environment_in_collision(environment, + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[140], + y[141], + y[142], + y[143])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[144], + y[145], + y[146], + y[147])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[148], + y[149], + y[150], + y[151])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[152], + y[153], + y[154], + y[155])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[156], + y[157], + y[158], + y[159])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_6 +if (sphere_environment_in_collision(environment, + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[124], + y[125], + y[126], + y[127])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[128], + y[129], + y[130], + y[131])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[132], + y[133], + y[134], + y[135])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[136], + y[137], + y[138], + y[139])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_5 +if (sphere_environment_in_collision(environment, + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[96], + y[97], + y[98], + y[99])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[100], + y[101], + y[102], + y[103])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[104], + y[105], + y[106], + y[107])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[108], + y[109], + y[110], + y[111])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[112], + y[113], + y[114], + y[115])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[116], + y[117], + y[118], + y[119])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[120], + y[121], + y[122], + y[123])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_4 +if (sphere_environment_in_collision(environment, + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[76], + y[77], + y[78], + y[79])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[80], + y[81], + y[82], + y[83])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[84], + y[85], + y[86], + y[87])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[88], + y[89], + y[90], + y[91])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[92], + y[93], + y[94], + y[95])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_3 +if (sphere_environment_in_collision(environment, + y[412], + y[413], + y[414], + y[415])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[56], + y[57], + y[58], + y[59])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[60], + y[61], + y[62], + y[63])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[64], + y[65], + y[66], + y[67])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[68], + y[69], + y[70], + y[71])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[72], + y[73], + y[74], + y[75])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_2 +if (sphere_environment_in_collision(environment, + y[408], + y[409], + y[410], + y[411])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[36], + y[37], + y[38], + y[39])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[40], + y[41], + y[42], + y[43])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[44], + y[45], + y[46], + y[47])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[48], + y[49], + y[50], + y[51])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[52], + y[53], + y[54], + y[55])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_1 +if (sphere_environment_in_collision(environment, + y[404], + y[405], + y[406], + y[407])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[16], + y[17], + y[18], + y[19])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[20], + y[21], + y[22], + y[23])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[24], + y[25], + y[26], + y[27])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[28], + y[29], + y[30], + y[31])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[32], + y[33], + y[34], + y[35])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_0 +if (sphere_environment_in_collision(environment, + y[400], + y[401], + y[402], + y[403])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[0], + y[1], + y[2], + y[3])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[4], + y[5], + y[6], + y[7])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[8], + y[9], + y[10], + y[11])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[12], + y[13], + y[14], + y[15])) [[unlikely]] + { + return false; + } + +} + + + +// +// robot self-collisions +// + + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/body +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/body +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/body +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/body +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/body +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/body +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/body +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/body +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/body +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/body +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/body +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/body +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/body +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/body +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/body +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/body +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/body +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/body +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/body +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/body +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/body +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/body +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/body +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/body +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/body +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + return true; + } + + template + static inline bool fkcc_attach( + const vamp::collision::Environment> &environment, + const ConfigurationBlock &x) noexcept + { + std::array, 144> v; + std::array, 512> y; + + v[0] = cos(x[0]); + v[1] = sin(x[0]); + v[2] = 0. - v[1]; + y[16] = -0.0304988883435726 * v[0] + -0.0173739213496447 * v[2]; + y[17] = -0.0304988883435726 * v[1] + -0.0173739213496447 * v[0]; + y[20] = 0.0376833528280258 * v[0] + -0.0566041171550751 * v[2]; + y[21] = 0.0376833528280258 * v[1] + -0.0566041171550751 * v[0]; + y[24] = 0.053051695227623 * v[0] + 0.0300084203481674 * v[2]; + y[25] = 0.053051695227623 * v[1] + 0.0300084203481674 * v[0]; + y[28] = -0.0274603478610516 * v[0] + -0.0326122231781483 * v[2]; + y[29] = -0.0274603478610516 * v[1] + -0.0326122231781483 * v[0]; + y[32] = 0.0312839150428772 * v[0] + -0.0324193239212036 * v[2]; + y[33] = 0.0312839150428772 * v[1] + -0.0324193239212036 * v[0]; + v[3] = cos(x[1]); + v[4] = sin(x[1]); + v[5] = -1. * v[3] + 1.01273331923549e-24 * v[4]; + v[6] = -2.06823107110214e-13 * v[3] + -4.89652762780679e-12 * v[4]; + v[7] = v[0] * v[5] + v[2] * v[6]; + v[4] = -1.26217744835362e-29 * v[3] + v[4]; + v[3] = v[4] - 4.89663865010925e-12 * v[6]; + v[8] = 4.89663865010925e-12 * v[5] - -2.06823107110214e-13 * v[4]; + v[9] = v[0] * v[3] + v[2] * v[8]; + v[10] = -2.06823107110214e-13 * v[0] + v[2]; + y[36] = -0.0286435410380363 * v[7] + 0.0075924526900053 * v[9] + 0.0357369221746922 * v[10]; + v[11] = v[1] * v[5] + v[0] * v[6]; + v[8] = v[1] * v[3] + v[0] * v[8]; + v[3] = -2.06823107110214e-13 * v[1] + v[0]; + y[37] = -0.0286435410380363 * v[11] + 0.0075924526900053 * v[8] + 0.0357369221746922 * v[3]; + v[6] = -2.06823107110214e-13 * v[6] - v[5]; + y[38] = 0.36 + -0.0286435410380363 * v[4] + 1.74990794356544e-13 + 0.0075924526900053 * v[6]; + y[40] = 0.0302073135972023 * v[7] + -0.00406156480312347 * v[9] + 0.0409813597798347 * v[10]; + y[41] = 0.0302073135972023 * v[11] + -0.00406156480312347 * v[8] + 0.0409813597798347 * v[3]; + y[42] = 0.36 + 0.0302073135972023 * v[4] + 2.00670910231972e-13 + -0.00406156480312347 * v[6]; + y[44] = -0.0447303093969822 * v[7] + 0.13815912604332 * v[9] + -0.0262443888932467 * v[10]; + y[45] = -0.0447303093969822 * v[11] + 0.13815912604332 * v[8] + -0.0262443888932467 * v[3]; + y[46] = 0.36 + -0.0447303093969822 * v[4] + -1.2850928900317e-13 + 0.13815912604332 * v[6]; + y[48] = 0.0457500033080578 * v[7] + 0.142471238970757 * v[9] + -0.0185553897172213 * v[10]; + y[49] = 0.0457500033080578 * v[11] + 0.142471238970757 * v[8] + -0.0185553897172213 * v[3]; + y[50] = 0.36 + 0.0457500033080578 * v[4] + -9.08590384571854e-14 + 0.142471238970757 * v[6]; + y[52] = 0.00205385428853333 * v[7] + 0.132787525653839 * v[9] + 0.0468450263142586 * v[10]; + y[53] = 0.00205385428853333 * v[11] + 0.132787525653839 * v[8] + 0.0468450263142586 * v[3]; + y[54] = 0.36 + 0.00205385428853333 * v[4] + 2.29383166415784e-13 + 0.132787525653839 * v[6]; + v[5] = cos(x[2]); + v[12] = sin(x[2]); + v[13] = -1. * v[5] + 1.01273331923549e-24 * v[12]; + v[14] = -2.06823107110214e-13 * v[5] + -4.89652762780679e-12 * v[12]; + v[12] = -1.26217744835362e-29 * v[5] + v[12]; + v[5] = v[7] * v[13] + v[9] * v[14] + v[10] * v[12]; + v[15] = v[12] - 4.89663865010925e-12 * v[14]; + v[16] = 4.89663865010925e-12 * v[13] - -2.06823107110214e-13 * v[12]; + v[17] = -2.06823107110214e-13 * v[14] - v[13]; + v[18] = v[7] * v[15] + v[9] * v[16] + v[10] * v[17]; + v[19] = -2.06823107110214e-13 * v[7] + v[9] + 4.89663865010925e-12 * v[10]; + v[20] = 0.2045 * v[9]; + y[56] = -0.033751618117094 * v[5] + -0.0206236597150564 * v[18] + 0.0556587167084217 * v[19] + v[20]; + v[21] = v[11] * v[13] + v[8] * v[14] + v[3] * v[12]; + v[22] = v[11] * v[15] + v[8] * v[16] + v[3] * v[17]; + v[23] = -2.06823107110214e-13 * v[11] + v[8] + 4.89663865010925e-12 * v[3]; + v[24] = 0.2045 * v[8]; + y[57] = -0.033751618117094 * v[21] + -0.0206236597150564 * v[22] + 0.0556587167084217 * v[23] + v[24]; + v[12] = v[4] * v[13] + v[6] * v[14] + 4.89663865010925e-12 * v[12]; + v[17] = v[4] * v[15] + v[6] * v[16] + 4.89663865010925e-12 * v[17]; + v[16] = -2.06823107110214e-13 * v[4] + 2.39770700697438e-23 + v[6]; + v[15] = 0.36 + 0.2045 * v[6]; + y[58] = -0.033751618117094 * v[12] + -0.0206236597150564 * v[17] + 0.0556587167084217 * v[16] + v[15]; + y[60] = 0.036438126116991 * v[5] + -0.0216596964746714 * v[18] + 0.0589511506259441 * v[19] + v[20]; + y[61] = 0.036438126116991 * v[21] + -0.0216596964746714 * v[22] + 0.0589511506259441 * v[23] + v[24]; + y[62] = 0.036438126116991 * v[12] + -0.0216596964746714 * v[17] + 0.0589511506259441 * v[16] + v[15]; + y[64] = 0.00543839018791914 * v[5] + 0.0358658879995346 * v[18] + 0.0723318234086037 * v[19] + v[20]; + y[65] = 0.00543839018791914 * v[21] + 0.0358658879995346 * v[22] + 0.0723318234086037 * v[23] + v[24]; + y[66] = 0.00543839018791914 * v[12] + 0.0358658879995346 * v[17] + 0.0723318234086037 * v[16] + v[15]; + y[68] = -0.00150183925870806 * v[5] + 0.00477686012163758 * v[18] + 0.188644707202911 * v[19] + v[20]; + y[69] = -0.00150183925870806 * v[21] + 0.00477686012163758 * v[22] + 0.188644707202911 * v[23] + v[24]; + y[70] = -0.00150183925870806 * v[12] + 0.00477686012163758 * v[17] + 0.188644707202911 * v[16] + v[15]; + y[72] = -0.000443624390754849 * v[5] + 0.0609206445515156 * v[18] + 0.187817513942719 * v[19] + v[20]; + y[73] = -0.000443624390754849 * v[21] + 0.0609206445515156 * v[22] + 0.187817513942719 * v[23] + v[24]; + y[74] = -0.000443624390754849 * v[12] + 0.0609206445515156 * v[17] + 0.187817513942719 * v[16] + v[15]; + v[14] = cos(x[3]); + v[13] = sin(x[3]); + v[25] = 4.89663865010925e-12 * v[13]; + v[26] = v[5] * v[14] + v[18] * v[25] + v[19] * v[13]; + v[27] = -1. * v[13] - 4.89663865010925e-12 * v[25]; + v[28] = 4.89663865010925e-12 * v[14]; + v[29] = 0. - -1. * v[14]; + v[30] = v[5] * v[27] + v[18] * v[28] + v[19] * v[29]; + v[31] = -1. * v[18] + 4.89663865010925e-12 * v[19]; + v[32] = v[20] + 0.2155 * v[19]; + y[76] = 0.00209041242487729 * v[26] + 0.0127677032724023 * v[30] + 0.0110630923882127 * v[31] + v[32]; + v[33] = v[21] * v[14] + v[22] * v[25] + v[23] * v[13]; + v[34] = v[21] * v[27] + v[22] * v[28] + v[23] * v[29]; + v[35] = -1. * v[22] + 4.89663865010925e-12 * v[23]; + v[36] = v[24] + 0.2155 * v[23]; + y[77] = 0.00209041242487729 * v[33] + 0.0127677032724023 * v[34] + 0.0110630923882127 * v[35] + v[36]; + v[25] = v[12] * v[14] + v[17] * v[25] + v[16] * v[13]; + v[29] = v[12] * v[27] + v[17] * v[28] + v[16] * v[29]; + v[28] = -1. * v[17] + 4.89663865010925e-12 * v[16]; + v[27] = v[15] + 0.2155 * v[16]; + y[78] = 0.00209041242487729 * v[25] + 0.0127677032724023 * v[29] + 0.0110630923882127 * v[28] + v[27]; + y[80] = 0.00488302065059543 * v[26] + 0.0161912720650434 * v[30] + 0.0618039071559906 * v[31] + v[32]; + y[81] = 0.00488302065059543 * v[33] + 0.0161912720650434 * v[34] + 0.0618039071559906 * v[35] + v[36]; + y[82] = 0.00488302065059543 * v[25] + 0.0161912720650434 * v[29] + 0.0618039071559906 * v[28] + v[27]; + y[84] = -0.0348032154142857 * v[26] + 0.133986249566078 * v[30] + -0.0251118093729019 * v[31] + v[32]; + y[85] = -0.0348032154142857 * v[33] + 0.133986249566078 * v[34] + -0.0251118093729019 * v[35] + v[36]; + y[86] = -0.0348032154142857 * v[25] + 0.133986249566078 * v[29] + -0.0251118093729019 * v[28] + v[27]; + y[88] = 0.038326770067215 * v[26] + 0.133518978953362 * v[30] + -0.0277583207935095 * v[31] + v[32]; + y[89] = 0.038326770067215 * v[33] + 0.133518978953362 * v[34] + -0.0277583207935095 * v[35] + v[36]; + y[90] = 0.038326770067215 * v[25] + 0.133518978953362 * v[29] + -0.0277583207935095 * v[28] + v[27]; + y[92] = -0.00637074047699571 * v[26] + 0.12884546816349 * v[30] + 0.0382916443049908 * v[31] + v[32]; + y[93] = -0.00637074047699571 * v[33] + 0.12884546816349 * v[34] + 0.0382916443049908 * v[35] + v[36]; + y[94] = -0.00637074047699571 * v[25] + 0.12884546816349 * v[29] + 0.0382916443049908 * v[28] + v[27]; + v[13] = cos(x[4]); + v[14] = sin(x[4]); + v[37] = -1. * v[13] + 2.06823107110214e-13 * v[14]; + v[38] = 1.26217744835362e-29 * v[13] + 4.89663865010925e-12 * v[14]; + v[14] = 2.06823107110214e-13 * v[13] + v[14]; + v[13] = v[26] * v[37] + v[30] * v[38] + v[31] * v[14]; + v[39] = v[14] - -4.89652762780679e-12 * v[38]; + v[40] = -4.89652762780679e-12 * v[37] - -1.01273331923549e-24 * v[14]; + v[41] = -1.01273331923549e-24 * v[38] - v[37]; + v[42] = v[26] * v[39] + v[30] * v[40] + v[31] * v[41]; + v[43] = -1.01273331923549e-24 * v[26] + v[30] + -4.89652762780679e-12 * v[31]; + v[44] = v[32] + 0.1845 * v[30]; + y[96] = -0.0303262490779161 * v[13] + -0.0207324735820293 * v[42] + 0.0466873794794083 * v[43] + v[44]; + v[45] = v[33] * v[37] + v[34] * v[38] + v[35] * v[14]; + v[46] = v[33] * v[39] + v[34] * v[40] + v[35] * v[41]; + v[47] = -1.01273331923549e-24 * v[33] + v[34] + -4.89652762780679e-12 * v[35]; + v[48] = v[36] + 0.1845 * v[34]; + y[97] = -0.0303262490779161 * v[45] + -0.0207324735820293 * v[46] + 0.0466873794794083 * v[47] + v[48]; + v[14] = v[25] * v[37] + v[29] * v[38] + v[28] * v[14]; + v[41] = v[25] * v[39] + v[29] * v[40] + v[28] * v[41]; + v[40] = -1.01273331923549e-24 * v[25] + v[29] + -4.89652762780679e-12 * v[28]; + v[39] = v[27] + 0.1845 * v[29]; + y[98] = -0.0303262490779161 * v[14] + -0.0207324735820293 * v[41] + 0.0466873794794083 * v[40] + v[39]; + y[100] = 0.0382123328745365 * v[13] + -0.0229748375713825 * v[42] + 0.0462025664746761 * v[43] + v[44]; + y[101] = 0.0382123328745365 * v[45] + -0.0229748375713825 * v[46] + 0.0462025664746761 * v[47] + v[48]; + y[102] = 0.0382123328745365 * v[14] + -0.0229748375713825 * v[41] + 0.0462025664746761 * v[40] + v[39]; + y[104] = -0.029545271769166 * v[13] + 0.0435335896909237 * v[42] + 0.0515478737652302 * v[43] + v[44]; + y[105] = -0.029545271769166 * v[45] + 0.0435335896909237 * v[46] + 0.0515478737652302 * v[47] + v[48]; + y[106] = -0.029545271769166 * v[14] + 0.0435335896909237 * v[41] + 0.0515478737652302 * v[40] + v[39]; + y[108] = 0.0294575486332178 * v[13] + 0.0443899892270565 * v[42] + 0.0518434084951878 * v[43] + v[44]; + y[109] = 0.0294575486332178 * v[45] + 0.0443899892270565 * v[46] + 0.0518434084951878 * v[47] + v[48]; + y[110] = 0.0294575486332178 * v[14] + 0.0443899892270565 * v[41] + 0.0518434084951878 * v[40] + v[39]; + y[112] = -0.0226244386285543 * v[13] + 0.03036268055439 * v[42] + 0.143480017781258 * v[43] + v[44]; + y[113] = -0.0226244386285543 * v[45] + 0.03036268055439 * v[46] + 0.143480017781258 * v[47] + v[48]; + y[114] = -0.0226244386285543 * v[14] + 0.03036268055439 * v[41] + 0.143480017781258 * v[40] + v[39]; + y[116] = 0.0228122211992741 * v[13] + 0.0326673835515976 * v[42] + 0.144575268030167 * v[43] + v[44]; + y[117] = 0.0228122211992741 * v[45] + 0.0326673835515976 * v[46] + 0.144575268030167 * v[47] + v[48]; + y[118] = 0.0228122211992741 * v[14] + 0.0326673835515976 * v[41] + 0.144575268030167 * v[40] + v[39]; + y[120] = -0.000356095697497949 * v[13] + 0.0570880249142647 * v[42] + 0.213441297411919 * v[43] + v[44]; + y[121] = -0.000356095697497949 * v[45] + 0.0570880249142647 * v[46] + 0.213441297411919 * v[47] + v[48]; + y[122] = -0.000356095697497949 * v[14] + 0.0570880249142647 * v[41] + 0.213441297411919 * v[40] + v[39]; + v[38] = cos(x[5]); + v[37] = sin(x[5]); + v[49] = 4.89663865010925e-12 * v[37]; + v[50] = v[13] * v[38] + v[42] * v[49] + v[43] * v[37]; + v[51] = -1. * v[37] - 4.89663865010925e-12 * v[49]; + v[52] = 4.89663865010925e-12 * v[38]; + v[53] = 0. - -1. * v[38]; + v[54] = v[13] * v[51] + v[42] * v[52] + v[43] * v[53]; + v[55] = -1. * v[42] + 4.89663865010925e-12 * v[43]; + v[56] = v[44] + 0.2155 * v[43]; + y[124] = 0.00531387468799949 * v[50] + -0.0231041144579649 * v[54] + -0.0224952418357134 * v[55] + v[56]; + v[57] = v[45] * v[38] + v[46] * v[49] + v[47] * v[37]; + v[58] = v[45] * v[51] + v[46] * v[52] + v[47] * v[53]; + v[59] = -1. * v[46] + 4.89663865010925e-12 * v[47]; + v[60] = v[48] + 0.2155 * v[47]; + y[125] = 0.00531387468799949 * v[57] + -0.0231041144579649 * v[58] + -0.0224952418357134 * v[59] + v[60]; + v[49] = v[14] * v[38] + v[41] * v[49] + v[40] * v[37]; + v[53] = v[14] * v[51] + v[41] * v[52] + v[40] * v[53]; + v[52] = -1. * v[41] + 4.89663865010925e-12 * v[40]; + v[51] = v[39] + 0.2155 * v[40]; + y[126] = 0.00531387468799949 * v[49] + -0.0231041144579649 * v[53] + -0.0224952418357134 * v[52] + v[51]; + y[128] = 0.00424248585477471 * v[50] + -0.0304307378828526 * v[54] + 0.0232355650514364 * v[55] + v[56]; + y[129] = 0.00424248585477471 * v[57] + -0.0304307378828526 * v[58] + 0.0232355650514364 * v[59] + v[60]; + y[130] = 0.00424248585477471 * v[49] + -0.0304307378828526 * v[53] + 0.0232355650514364 * v[52] + v[51]; + y[132] = 0.00347242690622807 * v[50] + 0.0357604399323463 * v[54] + -0.0275979526340961 * v[55] + v[56]; + y[133] = 0.00347242690622807 * v[57] + 0.0357604399323463 * v[58] + -0.0275979526340961 * v[59] + v[60]; + y[134] = 0.00347242690622807 * v[49] + 0.0357604399323463 * v[53] + -0.0275979526340961 * v[52] + v[51]; + y[136] = -0.00440459558740258 * v[50] + 0.029050262644887 * v[54] + 0.0197553057223558 * v[55] + v[56]; + y[137] = -0.00440459558740258 * v[57] + 0.029050262644887 * v[58] + 0.0197553057223558 * v[59] + v[60]; + y[138] = -0.00440459558740258 * v[49] + 0.029050262644887 * v[53] + 0.0197553057223558 * v[52] + v[51]; + v[37] = cos(x[6]); + v[38] = sin(x[6]); + v[61] = -1. * v[37] + 2.06823107110214e-13 * v[38]; + v[62] = 1.26217744835362e-29 * v[37] + 4.89663865010925e-12 * v[38]; + v[38] = 2.06823107110214e-13 * v[37] + v[38]; + v[37] = v[50] * v[61] + v[54] * v[62] + v[55] * v[38]; + v[63] = v[38] - -4.89652762780679e-12 * v[62]; + v[64] = -4.89652762780679e-12 * v[61] - -1.01273331923549e-24 * v[38]; + v[65] = -1.01273331923549e-24 * v[62] - v[61]; + v[66] = v[50] * v[63] + v[54] * v[64] + v[55] * v[65]; + v[67] = -1.01273331923549e-24 * v[50] + v[54] + -4.89652762780679e-12 * v[55]; + v[68] = v[56] + 0.081 * v[54]; + y[140] = -0.0199781656265259 * v[37] + -0.0210024751722813 * v[66] + 0.015956237912178 * v[67] + v[68]; + v[69] = v[57] * v[61] + v[58] * v[62] + v[59] * v[38]; + v[70] = v[57] * v[63] + v[58] * v[64] + v[59] * v[65]; + v[71] = -1.01273331923549e-24 * v[57] + v[58] + -4.89652762780679e-12 * v[59]; + v[72] = v[60] + 0.081 * v[58]; + y[141] = -0.0199781656265259 * v[69] + -0.0210024751722813 * v[70] + 0.015956237912178 * v[71] + v[72]; + v[38] = v[49] * v[61] + v[53] * v[62] + v[52] * v[38]; + v[65] = v[49] * v[63] + v[53] * v[64] + v[52] * v[65]; + v[64] = -1.01273331923549e-24 * v[49] + v[53] + -4.89652762780679e-12 * v[52]; + v[63] = v[51] + 0.081 * v[53]; + y[142] = -0.0199781656265259 * v[38] + -0.0210024751722813 * v[65] + 0.015956237912178 * v[64] + v[63]; + y[144] = 0.0191871430724859 * v[37] + -0.0194653403013945 * v[66] + 0.0160456709563732 * v[67] + v[68]; + y[145] = 0.0191871430724859 * v[69] + -0.0194653403013945 * v[70] + 0.0160456709563732 * v[71] + v[72]; + y[146] = 0.0191871430724859 * v[38] + -0.0194653403013945 * v[65] + 0.0160456709563732 * v[64] + v[63]; + y[148] = -0.0201440621167421 * v[37] + 0.0189183782786131 * v[66] + 0.0165120754390955 * v[67] + v[68]; + y[149] = -0.0201440621167421 * v[69] + 0.0189183782786131 * v[70] + 0.0165120754390955 * v[71] + v[72]; + y[150] = -0.0201440621167421 * v[38] + 0.0189183782786131 * v[65] + 0.0165120754390955 * v[64] + v[63]; + y[152] = 0.0215731263160706 * v[37] + 0.0232260525226593 * v[66] + 0.00288419239223003 * v[67] + v[68]; + y[153] = 0.0215731263160706 * v[69] + 0.0232260525226593 * v[70] + 0.00288419239223003 * v[71] + v[72]; + y[154] = 0.0215731263160706 * v[38] + 0.0232260525226593 * v[65] + 0.00288419239223003 * v[64] + v[63]; + y[156] = 0.022247614338994 * v[37] + 0.0269022006541491 * v[66] + 0.0263182260096073 * v[67] + v[68]; + y[157] = 0.022247614338994 * v[69] + 0.0269022006541491 * v[70] + 0.0263182260096073 * v[71] + v[72]; + y[158] = 0.022247614338994 * v[38] + 0.0269022006541491 * v[65] + 0.0263182260096073 * v[64] + v[63]; + y[160] = -0.012587617063022 * v[37] + -0.0367822142356301 * v[66] + 0.0720952862501248 * v[67] + v[68]; + y[161] = -0.012587617063022 * v[69] + -0.0367822142356301 * v[70] + 0.0720952862501248 * v[71] + v[72]; + y[162] = -0.012587617063022 * v[38] + -0.0367822142356301 * v[65] + 0.0720952862501248 * v[64] + v[63]; + y[164] = -0.0156136708164741 * v[37] + -0.0359627567126562 * v[66] + 0.11080842852592 * v[67] + v[68]; + y[165] = -0.0156136708164741 * v[69] + -0.0359627567126562 * v[70] + 0.11080842852592 * v[71] + v[72]; + y[166] = -0.0156136708164741 * v[38] + -0.0359627567126562 * v[65] + 0.11080842852592 * v[64] + v[63]; + y[168] = 0.016497643534955 * v[37] + 0.0343992957979445 * v[66] + 0.0716519562155126 * v[67] + v[68]; + y[169] = 0.016497643534955 * v[69] + 0.0343992957979445 * v[70] + 0.0716519562155126 * v[71] + v[72]; + y[170] = 0.016497643534955 * v[38] + 0.0343992957979445 * v[65] + 0.0716519562155126 * v[64] + v[63]; + y[172] = 0.0156358738203146 * v[37] + 0.0351002731763063 * v[66] + 0.107802299931652 * v[67] + v[68]; + y[173] = 0.0156358738203146 * v[69] + 0.0351002731763063 * v[70] + 0.107802299931652 * v[71] + v[72]; + y[174] = 0.0156358738203146 * v[38] + 0.0351002731763063 * v[65] + 0.107802299931652 * v[64] + v[63]; + y[176] = -0.0233254483937131 * v[37] + -0.060328906390759 * v[66] + 0.229128492395143 * v[67] + v[68]; + y[177] = -0.0233254483937131 * v[69] + -0.060328906390759 * v[70] + 0.229128492395143 * v[71] + v[72]; + y[178] = -0.0233254483937131 * v[38] + -0.060328906390759 * v[65] + 0.229128492395143 * v[64] + v[63]; + y[180] = -0.0278344700254539 * v[37] + -0.0652496087446016 * v[66] + 0.174521849313737 * v[67] + v[68]; + y[181] = -0.0278344700254539 * v[69] + -0.0652496087446016 * v[70] + 0.174521849313737 * v[71] + v[72]; + y[182] = -0.0278344700254539 * v[38] + -0.0652496087446016 * v[65] + 0.174521849313737 * v[64] + v[63]; + y[184] = -0.0245009807652867 * v[37] + -0.0612167200448942 * v[66] + 0.137942649576717 * v[67] + v[68]; + y[185] = -0.0245009807652867 * v[69] + -0.0612167200448942 * v[70] + 0.137942649576717 * v[71] + v[72]; + y[186] = -0.0245009807652867 * v[38] + -0.0612167200448942 * v[65] + 0.137942649576717 * v[64] + v[63]; + y[188] = 0.0232954529086768 * v[37] + 0.060317004059848 * v[66] + 0.229128492395133 * v[67] + v[68]; + y[189] = 0.0232954529086768 * v[69] + 0.060317004059848 * v[70] + 0.229128492395133 * v[71] + v[72]; + y[190] = 0.0232954529086768 * v[38] + 0.060317004059848 * v[65] + 0.229128492395133 * v[64] + v[63]; + y[192] = 0.0277966318512907 * v[37] + 0.0652448814791517 * v[66] + 0.174521849313751 * v[67] + v[68]; + y[193] = 0.0277966318512907 * v[69] + 0.0652448814791517 * v[70] + 0.174521849313751 * v[71] + v[72]; + y[194] = 0.0277966318512907 * v[38] + 0.0652448814791517 * v[65] + 0.174521849313751 * v[64] + v[63]; + y[196] = 0.0244695698111778 * v[37] + 0.0612066888027197 * v[66] + 0.137942649576715 * v[67] + v[68]; + y[197] = 0.0244695698111778 * v[69] + 0.0612066888027197 * v[70] + 0.137942649576715 * v[71] + v[72]; + y[198] = 0.0244695698111778 * v[38] + 0.0612066888027197 * v[65] + 0.137942649576715 * v[64] + v[63]; + v[62] = cos(x[7]); + v[61] = sin(x[7]); + v[73] = 0. - v[61]; + y[216] = -0.0304988883435726 * v[62] + -0.0173739213496447 * v[73]; + y[217] = 0.765 + -0.0304988883435726 * v[61] + -0.0173739213496447 * v[62]; + y[220] = 0.0376833528280258 * v[62] + -0.0566041171550751 * v[73]; + y[221] = 0.765 + 0.0376833528280258 * v[61] + -0.0566041171550751 * v[62]; + y[224] = 0.053051695227623 * v[62] + 0.0300084203481674 * v[73]; + y[225] = 0.765 + 0.053051695227623 * v[61] + 0.0300084203481674 * v[62]; + y[228] = -0.0274603478610516 * v[62] + -0.0326122231781483 * v[73]; + y[229] = 0.765 + -0.0274603478610516 * v[61] + -0.0326122231781483 * v[62]; + y[232] = 0.0312839150428772 * v[62] + -0.0324193239212036 * v[73]; + y[233] = 0.765 + 0.0312839150428772 * v[61] + -0.0324193239212036 * v[62]; + v[74] = cos(x[8]); + v[75] = sin(x[8]); + v[76] = -1. * v[74] + 1.01273331923549e-24 * v[75]; + v[77] = -2.06823107110214e-13 * v[74] + -4.89652762780679e-12 * v[75]; + v[78] = v[62] * v[76] + v[73] * v[77]; + v[75] = -1.26217744835362e-29 * v[74] + v[75]; + v[74] = v[75] - 4.89663865010925e-12 * v[77]; + v[79] = 4.89663865010925e-12 * v[76] - -2.06823107110214e-13 * v[75]; + v[80] = v[62] * v[74] + v[73] * v[79]; + v[81] = -2.06823107110214e-13 * v[62] + v[73]; + y[236] = -0.0286435410380363 * v[78] + 0.0075924526900053 * v[80] + 0.0357369221746922 * v[81]; + v[82] = v[61] * v[76] + v[62] * v[77]; + v[79] = v[61] * v[74] + v[62] * v[79]; + v[74] = -2.06823107110214e-13 * v[61] + v[62]; + y[237] = 0.765 + -0.0286435410380363 * v[82] + 0.0075924526900053 * v[79] + 0.0357369221746922 * v[74]; + v[77] = -2.06823107110214e-13 * v[77] - v[76]; + y[238] = 0.36 + -0.0286435410380363 * v[75] + 1.74990794356544e-13 + 0.0075924526900053 * v[77]; + y[240] = 0.0302073135972023 * v[78] + -0.00406156480312347 * v[80] + 0.0409813597798347 * v[81]; + y[241] = 0.765 + 0.0302073135972023 * v[82] + -0.00406156480312347 * v[79] + 0.0409813597798347 * v[74]; + y[242] = 0.36 + 0.0302073135972023 * v[75] + 2.00670910231972e-13 + -0.00406156480312347 * v[77]; + y[244] = -0.0447303093969822 * v[78] + 0.13815912604332 * v[80] + -0.0262443888932467 * v[81]; + y[245] = 0.765 + -0.0447303093969822 * v[82] + 0.13815912604332 * v[79] + -0.0262443888932467 * v[74]; + y[246] = 0.36 + -0.0447303093969822 * v[75] + -1.2850928900317e-13 + 0.13815912604332 * v[77]; + y[248] = 0.0457500033080578 * v[78] + 0.142471238970757 * v[80] + -0.0185553897172213 * v[81]; + y[249] = 0.765 + 0.0457500033080578 * v[82] + 0.142471238970757 * v[79] + -0.0185553897172213 * v[74]; + y[250] = 0.36 + 0.0457500033080578 * v[75] + -9.08590384571854e-14 + 0.142471238970757 * v[77]; + y[252] = 0.00205385428853333 * v[78] + 0.132787525653839 * v[80] + 0.0468450263142586 * v[81]; + y[253] = 0.765 + 0.00205385428853333 * v[82] + 0.132787525653839 * v[79] + 0.0468450263142586 * v[74]; + y[254] = 0.36 + 0.00205385428853333 * v[75] + 2.29383166415784e-13 + 0.132787525653839 * v[77]; + v[76] = cos(x[9]); + v[83] = sin(x[9]); + v[84] = -1. * v[76] + 1.01273331923549e-24 * v[83]; + v[85] = -2.06823107110214e-13 * v[76] + -4.89652762780679e-12 * v[83]; + v[83] = -1.26217744835362e-29 * v[76] + v[83]; + v[76] = v[78] * v[84] + v[80] * v[85] + v[81] * v[83]; + v[86] = v[83] - 4.89663865010925e-12 * v[85]; + v[87] = 4.89663865010925e-12 * v[84] - -2.06823107110214e-13 * v[83]; + v[88] = -2.06823107110214e-13 * v[85] - v[84]; + v[89] = v[78] * v[86] + v[80] * v[87] + v[81] * v[88]; + v[90] = -2.06823107110214e-13 * v[78] + v[80] + 4.89663865010925e-12 * v[81]; + v[91] = 0.2045 * v[80]; + y[256] = -0.033751618117094 * v[76] + -0.0206236597150564 * v[89] + 0.0556587167084217 * v[90] + v[91]; + v[92] = v[82] * v[84] + v[79] * v[85] + v[74] * v[83]; + v[93] = v[82] * v[86] + v[79] * v[87] + v[74] * v[88]; + v[94] = -2.06823107110214e-13 * v[82] + v[79] + 4.89663865010925e-12 * v[74]; + v[95] = 0.765 + 0.2045 * v[79]; + y[257] = -0.033751618117094 * v[92] + -0.0206236597150564 * v[93] + 0.0556587167084217 * v[94] + v[95]; + v[83] = v[75] * v[84] + v[77] * v[85] + 4.89663865010925e-12 * v[83]; + v[88] = v[75] * v[86] + v[77] * v[87] + 4.89663865010925e-12 * v[88]; + v[87] = -2.06823107110214e-13 * v[75] + 2.39770700697438e-23 + v[77]; + v[86] = 0.36 + 0.2045 * v[77]; + y[258] = -0.033751618117094 * v[83] + -0.0206236597150564 * v[88] + 0.0556587167084217 * v[87] + v[86]; + y[260] = 0.036438126116991 * v[76] + -0.0216596964746714 * v[89] + 0.0589511506259441 * v[90] + v[91]; + y[261] = 0.036438126116991 * v[92] + -0.0216596964746714 * v[93] + 0.0589511506259441 * v[94] + v[95]; + y[262] = 0.036438126116991 * v[83] + -0.0216596964746714 * v[88] + 0.0589511506259441 * v[87] + v[86]; + y[264] = 0.00543839018791914 * v[76] + 0.0358658879995346 * v[89] + 0.0723318234086037 * v[90] + v[91]; + y[265] = 0.00543839018791914 * v[92] + 0.0358658879995346 * v[93] + 0.0723318234086037 * v[94] + v[95]; + y[266] = 0.00543839018791914 * v[83] + 0.0358658879995346 * v[88] + 0.0723318234086037 * v[87] + v[86]; + y[268] = -0.00150183925870806 * v[76] + 0.00477686012163758 * v[89] + 0.188644707202911 * v[90] + v[91]; + y[269] = -0.00150183925870806 * v[92] + 0.00477686012163758 * v[93] + 0.188644707202911 * v[94] + v[95]; + y[270] = -0.00150183925870806 * v[83] + 0.00477686012163758 * v[88] + 0.188644707202911 * v[87] + v[86]; + y[272] = -0.000443624390754849 * v[76] + 0.0609206445515156 * v[89] + 0.187817513942719 * v[90] + v[91]; + y[273] = -0.000443624390754849 * v[92] + 0.0609206445515156 * v[93] + 0.187817513942719 * v[94] + v[95]; + y[274] = -0.000443624390754849 * v[83] + 0.0609206445515156 * v[88] + 0.187817513942719 * v[87] + v[86]; + v[85] = cos(x[10]); + v[84] = sin(x[10]); + v[96] = 4.89663865010925e-12 * v[84]; + v[97] = v[76] * v[85] + v[89] * v[96] + v[90] * v[84]; + v[98] = -1. * v[84] - 4.89663865010925e-12 * v[96]; + v[99] = 4.89663865010925e-12 * v[85]; + v[100] = 0. - -1. * v[85]; + v[101] = v[76] * v[98] + v[89] * v[99] + v[90] * v[100]; + v[102] = -1. * v[89] + 4.89663865010925e-12 * v[90]; + v[103] = v[91] + 0.2155 * v[90]; + y[276] = 0.00209041242487729 * v[97] + 0.0127677032724023 * v[101] + 0.0110630923882127 * v[102] + v[103]; + v[104] = v[92] * v[85] + v[93] * v[96] + v[94] * v[84]; + v[105] = v[92] * v[98] + v[93] * v[99] + v[94] * v[100]; + v[106] = -1. * v[93] + 4.89663865010925e-12 * v[94]; + v[107] = v[95] + 0.2155 * v[94]; + y[277] = 0.00209041242487729 * v[104] + 0.0127677032724023 * v[105] + 0.0110630923882127 * v[106] + v[107]; + v[96] = v[83] * v[85] + v[88] * v[96] + v[87] * v[84]; + v[100] = v[83] * v[98] + v[88] * v[99] + v[87] * v[100]; + v[99] = -1. * v[88] + 4.89663865010925e-12 * v[87]; + v[98] = v[86] + 0.2155 * v[87]; + y[278] = 0.00209041242487729 * v[96] + 0.0127677032724023 * v[100] + 0.0110630923882127 * v[99] + v[98]; + y[280] = 0.00488302065059543 * v[97] + 0.0161912720650434 * v[101] + 0.0618039071559906 * v[102] + v[103]; + y[281] = 0.00488302065059543 * v[104] + 0.0161912720650434 * v[105] + 0.0618039071559906 * v[106] + v[107]; + y[282] = 0.00488302065059543 * v[96] + 0.0161912720650434 * v[100] + 0.0618039071559906 * v[99] + v[98]; + y[284] = -0.0348032154142857 * v[97] + 0.133986249566078 * v[101] + -0.0251118093729019 * v[102] + v[103]; + y[285] = -0.0348032154142857 * v[104] + 0.133986249566078 * v[105] + -0.0251118093729019 * v[106] + v[107]; + y[286] = -0.0348032154142857 * v[96] + 0.133986249566078 * v[100] + -0.0251118093729019 * v[99] + v[98]; + y[288] = 0.038326770067215 * v[97] + 0.133518978953362 * v[101] + -0.0277583207935095 * v[102] + v[103]; + y[289] = 0.038326770067215 * v[104] + 0.133518978953362 * v[105] + -0.0277583207935095 * v[106] + v[107]; + y[290] = 0.038326770067215 * v[96] + 0.133518978953362 * v[100] + -0.0277583207935095 * v[99] + v[98]; + y[292] = -0.00637074047699571 * v[97] + 0.12884546816349 * v[101] + 0.0382916443049908 * v[102] + v[103]; + y[293] = -0.00637074047699571 * v[104] + 0.12884546816349 * v[105] + 0.0382916443049908 * v[106] + v[107]; + y[294] = -0.00637074047699571 * v[96] + 0.12884546816349 * v[100] + 0.0382916443049908 * v[99] + v[98]; + v[84] = cos(x[11]); + v[85] = sin(x[11]); + v[108] = -1. * v[84] + 2.06823107110214e-13 * v[85]; + v[109] = 1.26217744835362e-29 * v[84] + 4.89663865010925e-12 * v[85]; + v[85] = 2.06823107110214e-13 * v[84] + v[85]; + v[84] = v[97] * v[108] + v[101] * v[109] + v[102] * v[85]; + v[110] = v[85] - -4.89652762780679e-12 * v[109]; + v[111] = -4.89652762780679e-12 * v[108] - -1.01273331923549e-24 * v[85]; + v[112] = -1.01273331923549e-24 * v[109] - v[108]; + v[113] = v[97] * v[110] + v[101] * v[111] + v[102] * v[112]; + v[114] = -1.01273331923549e-24 * v[97] + v[101] + -4.89652762780679e-12 * v[102]; + v[115] = v[103] + 0.1845 * v[101]; + y[296] = -0.0303262490779161 * v[84] + -0.0207324735820293 * v[113] + 0.0466873794794083 * v[114] + v[115]; + v[116] = v[104] * v[108] + v[105] * v[109] + v[106] * v[85]; + v[117] = v[104] * v[110] + v[105] * v[111] + v[106] * v[112]; + v[118] = -1.01273331923549e-24 * v[104] + v[105] + -4.89652762780679e-12 * v[106]; + v[119] = v[107] + 0.1845 * v[105]; + y[297] = -0.0303262490779161 * v[116] + -0.0207324735820293 * v[117] + 0.0466873794794083 * v[118] + v[119]; + v[85] = v[96] * v[108] + v[100] * v[109] + v[99] * v[85]; + v[112] = v[96] * v[110] + v[100] * v[111] + v[99] * v[112]; + v[111] = -1.01273331923549e-24 * v[96] + v[100] + -4.89652762780679e-12 * v[99]; + v[110] = v[98] + 0.1845 * v[100]; + y[298] = -0.0303262490779161 * v[85] + -0.0207324735820293 * v[112] + 0.0466873794794083 * v[111] + v[110]; + y[300] = 0.0382123328745365 * v[84] + -0.0229748375713825 * v[113] + 0.0462025664746761 * v[114] + v[115]; + y[301] = 0.0382123328745365 * v[116] + -0.0229748375713825 * v[117] + 0.0462025664746761 * v[118] + v[119]; + y[302] = 0.0382123328745365 * v[85] + -0.0229748375713825 * v[112] + 0.0462025664746761 * v[111] + v[110]; + y[304] = -0.029545271769166 * v[84] + 0.0435335896909237 * v[113] + 0.0515478737652302 * v[114] + v[115]; + y[305] = -0.029545271769166 * v[116] + 0.0435335896909237 * v[117] + 0.0515478737652302 * v[118] + v[119]; + y[306] = -0.029545271769166 * v[85] + 0.0435335896909237 * v[112] + 0.0515478737652302 * v[111] + v[110]; + y[308] = 0.0294575486332178 * v[84] + 0.0443899892270565 * v[113] + 0.0518434084951878 * v[114] + v[115]; + y[309] = 0.0294575486332178 * v[116] + 0.0443899892270565 * v[117] + 0.0518434084951878 * v[118] + v[119]; + y[310] = 0.0294575486332178 * v[85] + 0.0443899892270565 * v[112] + 0.0518434084951878 * v[111] + v[110]; + y[312] = -0.0226244386285543 * v[84] + 0.03036268055439 * v[113] + 0.143480017781258 * v[114] + v[115]; + y[313] = -0.0226244386285543 * v[116] + 0.03036268055439 * v[117] + 0.143480017781258 * v[118] + v[119]; + y[314] = -0.0226244386285543 * v[85] + 0.03036268055439 * v[112] + 0.143480017781258 * v[111] + v[110]; + y[316] = 0.0228122211992741 * v[84] + 0.0326673835515976 * v[113] + 0.144575268030167 * v[114] + v[115]; + y[317] = 0.0228122211992741 * v[116] + 0.0326673835515976 * v[117] + 0.144575268030167 * v[118] + v[119]; + y[318] = 0.0228122211992741 * v[85] + 0.0326673835515976 * v[112] + 0.144575268030167 * v[111] + v[110]; + y[320] = -0.000356095697497949 * v[84] + 0.0570880249142647 * v[113] + 0.213441297411919 * v[114] + v[115]; + y[321] = -0.000356095697497949 * v[116] + 0.0570880249142647 * v[117] + 0.213441297411919 * v[118] + v[119]; + y[322] = -0.000356095697497949 * v[85] + 0.0570880249142647 * v[112] + 0.213441297411919 * v[111] + v[110]; + v[109] = cos(x[12]); + v[108] = sin(x[12]); + v[120] = 4.89663865010925e-12 * v[108]; + v[121] = v[84] * v[109] + v[113] * v[120] + v[114] * v[108]; + v[122] = -1. * v[108] - 4.89663865010925e-12 * v[120]; + v[123] = 4.89663865010925e-12 * v[109]; + v[124] = 0. - -1. * v[109]; + v[125] = v[84] * v[122] + v[113] * v[123] + v[114] * v[124]; + v[126] = -1. * v[113] + 4.89663865010925e-12 * v[114]; + v[127] = v[115] + 0.2155 * v[114]; + y[324] = 0.00531387468799949 * v[121] + -0.0231041144579649 * v[125] + -0.0224952418357134 * v[126] + v[127]; + v[128] = v[116] * v[109] + v[117] * v[120] + v[118] * v[108]; + v[129] = v[116] * v[122] + v[117] * v[123] + v[118] * v[124]; + v[130] = -1. * v[117] + 4.89663865010925e-12 * v[118]; + v[131] = v[119] + 0.2155 * v[118]; + y[325] = 0.00531387468799949 * v[128] + -0.0231041144579649 * v[129] + -0.0224952418357134 * v[130] + v[131]; + v[120] = v[85] * v[109] + v[112] * v[120] + v[111] * v[108]; + v[124] = v[85] * v[122] + v[112] * v[123] + v[111] * v[124]; + v[123] = -1. * v[112] + 4.89663865010925e-12 * v[111]; + v[122] = v[110] + 0.2155 * v[111]; + y[326] = 0.00531387468799949 * v[120] + -0.0231041144579649 * v[124] + -0.0224952418357134 * v[123] + v[122]; + y[328] = 0.00424248585477471 * v[121] + -0.0304307378828526 * v[125] + 0.0232355650514364 * v[126] + v[127]; + y[329] = 0.00424248585477471 * v[128] + -0.0304307378828526 * v[129] + 0.0232355650514364 * v[130] + v[131]; + y[330] = 0.00424248585477471 * v[120] + -0.0304307378828526 * v[124] + 0.0232355650514364 * v[123] + v[122]; + y[332] = 0.00347242690622807 * v[121] + 0.0357604399323463 * v[125] + -0.0275979526340961 * v[126] + v[127]; + y[333] = 0.00347242690622807 * v[128] + 0.0357604399323463 * v[129] + -0.0275979526340961 * v[130] + v[131]; + y[334] = 0.00347242690622807 * v[120] + 0.0357604399323463 * v[124] + -0.0275979526340961 * v[123] + v[122]; + y[336] = -0.00440459558740258 * v[121] + 0.029050262644887 * v[125] + 0.0197553057223558 * v[126] + v[127]; + y[337] = -0.00440459558740258 * v[128] + 0.029050262644887 * v[129] + 0.0197553057223558 * v[130] + v[131]; + y[338] = -0.00440459558740258 * v[120] + 0.029050262644887 * v[124] + 0.0197553057223558 * v[123] + v[122]; + v[108] = cos(x[13]); + v[109] = sin(x[13]); + v[132] = -1. * v[108] + 2.06823107110214e-13 * v[109]; + v[133] = 1.26217744835362e-29 * v[108] + 4.89663865010925e-12 * v[109]; + v[109] = 2.06823107110214e-13 * v[108] + v[109]; + v[108] = v[121] * v[132] + v[125] * v[133] + v[126] * v[109]; + v[134] = v[109] - -4.89652762780679e-12 * v[133]; + v[135] = -4.89652762780679e-12 * v[132] - -1.01273331923549e-24 * v[109]; + v[136] = -1.01273331923549e-24 * v[133] - v[132]; + v[137] = v[121] * v[134] + v[125] * v[135] + v[126] * v[136]; + v[138] = -1.01273331923549e-24 * v[121] + v[125] + -4.89652762780679e-12 * v[126]; + v[139] = v[127] + 0.081 * v[125]; + y[340] = -0.0199781656265259 * v[108] + -0.0210024751722813 * v[137] + 0.015956237912178 * v[138] + v[139]; + v[140] = v[128] * v[132] + v[129] * v[133] + v[130] * v[109]; + v[141] = v[128] * v[134] + v[129] * v[135] + v[130] * v[136]; + v[142] = -1.01273331923549e-24 * v[128] + v[129] + -4.89652762780679e-12 * v[130]; + v[143] = v[131] + 0.081 * v[129]; + y[341] = -0.0199781656265259 * v[140] + -0.0210024751722813 * v[141] + 0.015956237912178 * v[142] + v[143]; + v[109] = v[120] * v[132] + v[124] * v[133] + v[123] * v[109]; + v[136] = v[120] * v[134] + v[124] * v[135] + v[123] * v[136]; + v[135] = -1.01273331923549e-24 * v[120] + v[124] + -4.89652762780679e-12 * v[123]; + v[134] = v[122] + 0.081 * v[124]; + y[342] = -0.0199781656265259 * v[109] + -0.0210024751722813 * v[136] + 0.015956237912178 * v[135] + v[134]; + y[344] = 0.0191871430724859 * v[108] + -0.0194653403013945 * v[137] + 0.0160456709563732 * v[138] + v[139]; + y[345] = 0.0191871430724859 * v[140] + -0.0194653403013945 * v[141] + 0.0160456709563732 * v[142] + v[143]; + y[346] = 0.0191871430724859 * v[109] + -0.0194653403013945 * v[136] + 0.0160456709563732 * v[135] + v[134]; + y[348] = -0.0201440621167421 * v[108] + 0.0189183782786131 * v[137] + 0.0165120754390955 * v[138] + v[139]; + y[349] = -0.0201440621167421 * v[140] + 0.0189183782786131 * v[141] + 0.0165120754390955 * v[142] + v[143]; + y[350] = -0.0201440621167421 * v[109] + 0.0189183782786131 * v[136] + 0.0165120754390955 * v[135] + v[134]; + y[352] = 0.0215731263160706 * v[108] + 0.0232260525226593 * v[137] + 0.00288419239223003 * v[138] + v[139]; + y[353] = 0.0215731263160706 * v[140] + 0.0232260525226593 * v[141] + 0.00288419239223003 * v[142] + v[143]; + y[354] = 0.0215731263160706 * v[109] + 0.0232260525226593 * v[136] + 0.00288419239223003 * v[135] + v[134]; + y[356] = 0.022247614338994 * v[108] + 0.0269022006541491 * v[137] + 0.0263182260096073 * v[138] + v[139]; + y[357] = 0.022247614338994 * v[140] + 0.0269022006541491 * v[141] + 0.0263182260096073 * v[142] + v[143]; + y[358] = 0.022247614338994 * v[109] + 0.0269022006541491 * v[136] + 0.0263182260096073 * v[135] + v[134]; + y[360] = -0.012587617063022 * v[108] + -0.0367822142356301 * v[137] + 0.0720952862501248 * v[138] + v[139]; + y[361] = -0.012587617063022 * v[140] + -0.0367822142356301 * v[141] + 0.0720952862501248 * v[142] + v[143]; + y[362] = -0.012587617063022 * v[109] + -0.0367822142356301 * v[136] + 0.0720952862501248 * v[135] + v[134]; + y[364] = -0.0156136708164741 * v[108] + -0.0359627567126562 * v[137] + 0.11080842852592 * v[138] + v[139]; + y[365] = -0.0156136708164741 * v[140] + -0.0359627567126562 * v[141] + 0.11080842852592 * v[142] + v[143]; + y[366] = -0.0156136708164741 * v[109] + -0.0359627567126562 * v[136] + 0.11080842852592 * v[135] + v[134]; + y[368] = 0.016497643534955 * v[108] + 0.0343992957979445 * v[137] + 0.0716519562155126 * v[138] + v[139]; + y[369] = 0.016497643534955 * v[140] + 0.0343992957979445 * v[141] + 0.0716519562155126 * v[142] + v[143]; + y[370] = 0.016497643534955 * v[109] + 0.0343992957979445 * v[136] + 0.0716519562155126 * v[135] + v[134]; + y[372] = 0.0156358738203146 * v[108] + 0.0351002731763063 * v[137] + 0.107802299931652 * v[138] + v[139]; + y[373] = 0.0156358738203146 * v[140] + 0.0351002731763063 * v[141] + 0.107802299931652 * v[142] + v[143]; + y[374] = 0.0156358738203146 * v[109] + 0.0351002731763063 * v[136] + 0.107802299931652 * v[135] + v[134]; + y[376] = -0.0233254483937131 * v[108] + -0.060328906390759 * v[137] + 0.229128492395143 * v[138] + v[139]; + y[377] = -0.0233254483937131 * v[140] + -0.060328906390759 * v[141] + 0.229128492395143 * v[142] + v[143]; + y[378] = -0.0233254483937131 * v[109] + -0.060328906390759 * v[136] + 0.229128492395143 * v[135] + v[134]; + y[380] = -0.0278344700254539 * v[108] + -0.0652496087446016 * v[137] + 0.174521849313737 * v[138] + v[139]; + y[381] = -0.0278344700254539 * v[140] + -0.0652496087446016 * v[141] + 0.174521849313737 * v[142] + v[143]; + y[382] = -0.0278344700254539 * v[109] + -0.0652496087446016 * v[136] + 0.174521849313737 * v[135] + v[134]; + y[384] = -0.0245009807652867 * v[108] + -0.0612167200448942 * v[137] + 0.137942649576717 * v[138] + v[139]; + y[385] = -0.0245009807652867 * v[140] + -0.0612167200448942 * v[141] + 0.137942649576717 * v[142] + v[143]; + y[386] = -0.0245009807652867 * v[109] + -0.0612167200448942 * v[136] + 0.137942649576717 * v[135] + v[134]; + y[388] = 0.0232954529086768 * v[108] + 0.060317004059848 * v[137] + 0.229128492395133 * v[138] + v[139]; + y[389] = 0.0232954529086768 * v[140] + 0.060317004059848 * v[141] + 0.229128492395133 * v[142] + v[143]; + y[390] = 0.0232954529086768 * v[109] + 0.060317004059848 * v[136] + 0.229128492395133 * v[135] + v[134]; + y[392] = 0.0277966318512907 * v[108] + 0.0652448814791517 * v[137] + 0.174521849313751 * v[138] + v[139]; + y[393] = 0.0277966318512907 * v[140] + 0.0652448814791517 * v[141] + 0.174521849313751 * v[142] + v[143]; + y[394] = 0.0277966318512907 * v[109] + 0.0652448814791517 * v[136] + 0.174521849313751 * v[135] + v[134]; + y[396] = 0.0244695698111778 * v[108] + 0.0612066888027197 * v[137] + 0.137942649576715 * v[138] + v[139]; + y[397] = 0.0244695698111778 * v[140] + 0.0612066888027197 * v[141] + 0.137942649576715 * v[142] + v[143]; + y[398] = 0.0244695698111778 * v[109] + 0.0612066888027197 * v[136] + 0.137942649576715 * v[135] + v[134]; + y[404] = 0.000872313685249537 * v[0] + -0.0133955972269177 * v[2]; + y[405] = 0.000872313685249537 * v[1] + -0.0133955972269177 * v[0]; + y[408] = 0.00193074345588684 * v[7] + 0.0649560242891312 * v[9] + 0.00920608267188072 * v[10]; + y[409] = 0.00193074345588684 * v[11] + 0.0649560242891312 * v[8] + 0.00920608267188072 * v[3]; + y[410] = 0.36 + 0.00193074345588684 * v[4] + 4.50788602272322e-14 + 0.0649560242891312 * v[6]; + y[412] = -0.000562309403903782 * v[5] + 0.0219063013792038 * v[18] + 0.125700622797012 * v[19] + v[20]; + y[413] = -0.000562309403903782 * v[21] + 0.0219063013792038 * v[22] + 0.125700622797012 * v[23] + v[24]; + y[414] = -0.000562309403903782 * v[12] + 0.0219063013792038 * v[17] + 0.125700622797012 * v[16] + v[15]; + y[416] = 0.00356513448059559 * v[26] + 0.0733528286218643 * v[30] + 0.0188915058970451 * v[31] + v[32]; + y[417] = 0.00356513448059559 * v[33] + 0.0733528286218643 * v[34] + 0.0188915058970451 * v[35] + v[36]; + y[418] = 0.00356513448059559 * v[25] + 0.0733528286218643 * v[29] + 0.0188915058970451 * v[28] + v[27]; + y[420] = 0.00770308636128902 * v[13] + 0.0144911548122764 * v[42] + 0.123687468469143 * v[43] + v[44]; + y[421] = 0.00770308636128902 * v[45] + 0.0144911548122764 * v[46] + 0.123687468469143 * v[47] + v[48]; + y[422] = 0.00770308636128902 * v[14] + 0.0144911548122764 * v[41] + 0.123687468469143 * v[40] + v[39]; + y[424] = 0.00384843838401139 * v[50] + 0.00344000640325248 * v[54] + -0.00277649774216115 * v[55] + v[56]; + y[425] = 0.00384843838401139 * v[57] + 0.00344000640325248 * v[58] + -0.00277649774216115 * v[59] + v[60]; + y[426] = 0.00384843838401139 * v[49] + 0.00344000640325248 * v[53] + -0.00277649774216115 * v[52] + v[51]; + y[428] = 0.000802827416919172 * v[37] + 0.00246126996353269 * v[66] + 0.0201600454747677 * v[67] + v[68]; + y[429] = 0.000802827416919172 * v[69] + 0.00246126996353269 * v[70] + 0.0201600454747677 * v[71] + v[72]; + y[430] = 0.000802827416919172 * v[38] + 0.00246126996353269 * v[65] + 0.0201600454747677 * v[64] + v[63]; + y[432] = 0.000565047317650169 * v[37] + -0.000513007864356041 * v[66] + 0.0910757705569267 * v[67] + v[68]; + y[433] = 0.000565047317650169 * v[69] + -0.000513007864356041 * v[70] + 0.0910757705569267 * v[71] + v[72]; + y[434] = 0.000565047317650169 * v[38] + -0.000513007864356041 * v[65] + 0.0910757705569267 * v[64] + v[63]; + y[436] = -0.0238223746418953 * v[37] + -0.0607042051851749 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[437] = -0.0238223746418953 * v[69] + -0.0607042051851749 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[438] = -0.0238223746418953 * v[38] + -0.0607042051851749 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[440] = 0.0237917806953192 * v[37] + 0.0606930963695049 * v[66] + 0.190582081675529 * v[67] + v[68]; + y[441] = 0.0237917806953192 * v[69] + 0.0606930963695049 * v[70] + 0.190582081675529 * v[71] + v[72]; + y[442] = 0.0237917806953192 * v[38] + 0.0606930963695049 * v[65] + 0.190582081675529 * v[64] + v[63]; + y[448] = 0.000872313685249537 * v[62] + -0.0133955972269177 * v[73]; + y[449] = 0.765 + 0.000872313685249537 * v[61] + -0.0133955972269177 * v[62]; + y[452] = 0.00193074345588684 * v[78] + 0.0649560242891312 * v[80] + 0.00920608267188072 * v[81]; + y[453] = 0.765 + 0.00193074345588684 * v[82] + 0.0649560242891312 * v[79] + 0.00920608267188072 * v[74]; + y[454] = 0.36 + 0.00193074345588684 * v[75] + 4.50788602272322e-14 + 0.0649560242891312 * v[77]; + y[456] = -0.000562309403903782 * v[76] + 0.0219063013792038 * v[89] + 0.125700622797012 * v[90] + v[91]; + y[457] = -0.000562309403903782 * v[92] + 0.0219063013792038 * v[93] + 0.125700622797012 * v[94] + v[95]; + y[458] = -0.000562309403903782 * v[83] + 0.0219063013792038 * v[88] + 0.125700622797012 * v[87] + v[86]; + y[460] = 0.00356513448059559 * v[97] + 0.0733528286218643 * v[101] + 0.0188915058970451 * v[102] + v[103]; + y[461] = 0.00356513448059559 * v[104] + 0.0733528286218643 * v[105] + 0.0188915058970451 * v[106] + v[107]; + y[462] = 0.00356513448059559 * v[96] + 0.0733528286218643 * v[100] + 0.0188915058970451 * v[99] + v[98]; + y[464] = 0.00770308636128902 * v[84] + 0.0144911548122764 * v[113] + 0.123687468469143 * v[114] + v[115]; + y[465] = 0.00770308636128902 * v[116] + 0.0144911548122764 * v[117] + 0.123687468469143 * v[118] + v[119]; + y[466] = 0.00770308636128902 * v[85] + 0.0144911548122764 * v[112] + 0.123687468469143 * v[111] + v[110]; + y[468] = 0.00384843838401139 * v[121] + 0.00344000640325248 * v[125] + -0.00277649774216115 * v[126] + v[127]; + y[469] = 0.00384843838401139 * v[128] + 0.00344000640325248 * v[129] + -0.00277649774216115 * v[130] + v[131]; + y[470] = 0.00384843838401139 * v[120] + 0.00344000640325248 * v[124] + -0.00277649774216115 * v[123] + v[122]; + y[472] = 0.000802827416919172 * v[108] + 0.00246126996353269 * v[137] + 0.0201600454747677 * v[138] + v[139]; + y[473] = 0.000802827416919172 * v[140] + 0.00246126996353269 * v[141] + 0.0201600454747677 * v[142] + v[143]; + y[474] = 0.000802827416919172 * v[109] + 0.00246126996353269 * v[136] + 0.0201600454747677 * v[135] + v[134]; + y[476] = 0.000565047317650169 * v[108] + -0.000513007864356041 * v[137] + 0.0910757705569267 * v[138] + v[139]; + y[477] = 0.000565047317650169 * v[140] + -0.000513007864356041 * v[141] + 0.0910757705569267 * v[142] + v[143]; + y[478] = 0.000565047317650169 * v[109] + -0.000513007864356041 * v[136] + 0.0910757705569267 * v[135] + v[134]; + y[480] = -0.0238223746418953 * v[108] + -0.0607042051851749 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[481] = -0.0238223746418953 * v[140] + -0.0607042051851749 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[482] = -0.0238223746418953 * v[109] + -0.0607042051851749 * v[136] + 0.190582081675529 * v[135] + v[134]; + y[484] = 0.0237917806953192 * v[108] + 0.0606930963695049 * v[137] + 0.190582081675529 * v[138] + v[139]; + y[485] = 0.0237917806953192 * v[140] + 0.0606930963695049 * v[141] + 0.190582081675529 * v[142] + v[143]; + y[486] = 0.0237917806953192 * v[109] + 0.0606930963695049 * v[136] + 0.190582081675529 * v[135] + v[134]; + y[488] = v[68] + -8.46716530222835e-13 * v[37] + 3.4209890475978e-13 * v[66] + 0.2765 * v[67]; + y[489] = v[72] + -8.46716530222835e-13 * v[69] + 3.4209890475978e-13 * v[70] + 0.2765 * v[71]; + y[490] = v[63] + -8.46716530222835e-13 * v[38] + 3.4209890475978e-13 * v[65] + 0.2765 * v[64]; + y[491] = 0.374606593412337 * v[37] + 0.927183854568232 * v[66]; + y[492] = 0.374606593412337 * v[69] + 0.927183854568232 * v[70]; + y[493] = 0.374606593412337 * v[38] + 0.927183854568232 * v[65]; + y[494] = -0.927183854568232 * v[37] + 0.374606593412337 * v[66]; + y[495] = -0.927183854568232 * v[69] + 0.374606593412337 * v[70]; + y[496] = -0.927183854568232 * v[38] + 0.374606593412337 * v[65]; + y[497] = 4.92834364281641e-17 * v[37] + -2.64260292799678e-18 * v[66] + v[67]; + y[498] = 4.92834364281641e-17 * v[69] + -2.64260292799678e-18 * v[70] + v[71]; + y[499] = 4.92834364281641e-17 * v[38] + -2.64260292799678e-18 * v[65] + v[64]; + y[500] = v[139] + -8.46716530222835e-13 * v[108] + 3.4209890475978e-13 * v[137] + 0.2765 * v[138]; + y[501] = v[143] + -8.46716530222835e-13 * v[140] + 3.4209890475978e-13 * v[141] + 0.2765 * v[142]; + y[502] = v[134] + -8.46716530222835e-13 * v[109] + 3.4209890475978e-13 * v[136] + 0.2765 * v[135]; + y[503] = 0.374606593412337 * v[108] + 0.927183854568232 * v[137]; + y[504] = 0.374606593412337 * v[140] + 0.927183854568232 * v[141]; + y[505] = 0.374606593412337 * v[109] + 0.927183854568232 * v[136]; + y[506] = -0.927183854568232 * v[108] + 0.374606593412337 * v[137]; + y[507] = -0.927183854568232 * v[140] + 0.374606593412337 * v[141]; + y[508] = -0.927183854568232 * v[109] + 0.374606593412337 * v[136]; + y[509] = 4.92834364281641e-17 * v[108] + -2.64260292799678e-18 * v[137] + v[138]; + y[510] = 4.92834364281641e-17 * v[140] + -2.64260292799678e-18 * v[141] + v[142]; + y[511] = 4.92834364281641e-17 * v[109] + -2.64260292799678e-18 * v[136] + v[135]; + // dependent variables without operations + y[0] = -0.0735198631882668; + y[1] = -0.0541173815727234; + y[2] = 0.0768099054694176; + y[3] = 0.105830922722816; + y[4] = -0.0735262334346771; + y[5] = 0.0529109761118889; + y[6] = 0.0793738961219788; + y[7] = 0.104262858629227; + y[8] = 0.0390705168247223; + y[9] = -0.0450286567211151; + y[10] = 0.0765031948685646; + y[11] = 0.106655471026897; + y[12] = 0.0499769896268845; + y[13] = 0.0486934892833233; + y[14] = 0.0640255585312843; + y[15] = 0.10622838139534; + y[18] = 0.21666914716363; + y[19] = 0.107229880988598; + y[22] = 0.21647381156683; + y[23] = 0.0835958793759346; + y[26] = 0.215699472725391; + y[27] = 0.0838129222393036; + y[30] = 0.345404357910156; + y[31] = 0.098225325345993; + y[34] = 0.345727117061615; + y[35] = 0.097195640206337; + y[39] = 0.0975483432412148; + y[43] = 0.0937116593122482; + y[47] = 0.0810142904520035; + y[51] = 0.081512838602066; + y[55] = 0.0968621224164963; + y[59] = 0.0760728046298027; + y[63] = 0.0766041874885559; + y[67] = 0.0939076915383339; + y[71] = 0.0926672369241714; + y[75] = 0.0911291986703873; + y[79] = 0.0827247872948647; + y[83] = 0.0821510478854179; + y[87] = 0.0694684311747551; + y[91] = 0.0699467360973358; + y[95] = 0.0867823362350464; + y[99] = 0.0661434233188629; + y[103] = 0.0676505789160728; + y[107] = 0.0714448466897011; + y[111] = 0.0710318759083748; + y[115] = 0.0704528912901878; + y[119] = 0.0710151568055153; + y[123] = 0.0592901185154915; + y[127] = 0.0694939121603966; + y[131] = 0.0688671767711639; + y[135] = 0.07082200050354; + y[139] = 0.0727226212620735; + y[143] = 0.0363594107329845; + y[147] = 0.0361910536885262; + y[151] = 0.0362601280212402; + y[155] = 0.0339092910289764; + y[159] = 0.0348900593817234; + y[163] = 0.0449101217091084; + y[167] = 0.0442281886935234; + y[171] = 0.0448950715363026; + y[175] = 0.0444425120949745; + y[179] = 0.0432860739529133; + y[183] = 0.0269252900034189; + y[187] = 0.0291912201792002; + y[191] = 0.0432860739529133; + y[195] = 0.0269252900034189; + y[199] = 0.0291912201792002; + y[200] = -0.0735198631882668; + y[201] = 0.710882618427277; + y[202] = 0.0768099054694176; + y[203] = 0.105830922722816; + y[204] = -0.0735262334346771; + y[205] = 0.817910976111889; + y[206] = 0.0793738961219788; + y[207] = 0.104262858629227; + y[208] = 0.0390705168247223; + y[209] = 0.719971343278885; + y[210] = 0.0765031948685646; + y[211] = 0.106655471026897; + y[212] = 0.0499769896268845; + y[213] = 0.813693489283323; + y[214] = 0.0640255585312843; + y[215] = 0.10622838139534; + y[218] = 0.21666914716363; + y[219] = 0.107229880988598; + y[222] = 0.21647381156683; + y[223] = 0.0835958793759346; + y[226] = 0.215699472725391; + y[227] = 0.0838129222393036; + y[230] = 0.345404357910156; + y[231] = 0.098225325345993; + y[234] = 0.345727117061615; + y[235] = 0.097195640206337; + y[239] = 0.0975483432412148; + y[243] = 0.0937116593122482; + y[247] = 0.0810142904520035; + y[251] = 0.081512838602066; + y[255] = 0.0968621224164963; + y[259] = 0.0760728046298027; + y[263] = 0.0766041874885559; + y[267] = 0.0939076915383339; + y[271] = 0.0926672369241714; + y[275] = 0.0911291986703873; + y[279] = 0.0827247872948647; + y[283] = 0.0821510478854179; + y[287] = 0.0694684311747551; + y[291] = 0.0699467360973358; + y[295] = 0.0867823362350464; + y[299] = 0.0661434233188629; + y[303] = 0.0676505789160728; + y[307] = 0.0714448466897011; + y[311] = 0.0710318759083748; + y[315] = 0.0704528912901878; + y[319] = 0.0710151568055153; + y[323] = 0.0592901185154915; + y[327] = 0.0694939121603966; + y[331] = 0.0688671767711639; + y[335] = 0.07082200050354; + y[339] = 0.0727226212620735; + y[343] = 0.0363594107329845; + y[347] = 0.0361910536885262; + y[351] = 0.0362601280212402; + y[355] = 0.0339092910289764; + y[359] = 0.0348900593817234; + y[363] = 0.0449101217091084; + y[367] = 0.0442281886935234; + y[371] = 0.0448950715363026; + y[375] = 0.0444425120949745; + y[379] = 0.0432860739529133; + y[383] = 0.0269252900034189; + y[387] = 0.0291912201792002; + y[391] = 0.0432860739529133; + y[395] = 0.0269252900034189; + y[399] = 0.0291912201792002; + y[400] = -0.012415380217135; + y[401] = -0.00161365361418575; + y[402] = 0.0705235376954079; + y[403] = 0.186638832092285; + y[406] = 0.276647390127182; + y[407] = 0.175033777952194; + y[411] = 0.174783602356911; + y[415] = 0.164482057094574; + y[419] = 0.153639882802963; + y[423] = 0.158965557813644; + y[427] = 0.111575603485107; + y[431] = 0.0679832771420479; + y[435] = 0.0879067108035088; + y[439] = 0.0818375200033188; + y[443] = 0.0818375200033188; + y[444] = -0.012415380217135; + y[445] = 0.763386368751526; + y[446] = 0.0705235376954079; + y[447] = 0.186638832092285; + y[450] = 0.276647390127182; + y[451] = 0.175033777952194; + y[455] = 0.174783602356911; + y[459] = 0.164482057094574; + y[463] = 0.153639882802963; + y[467] = 0.158965557813644; + y[471] = 0.111575603485107; + y[475] = 0.0679832771420479; + y[479] = 0.0879067108035088; + y[483] = 0.0818375200033188; + y[487] = 0.0818375200033188; + + // clang-format off +// + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/right_finger +if (sphere_environment_in_collision(environment, + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[388], + y[389], + y[390], + y[391])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[392], + y[393], + y[394], + y[395])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[396], + y[397], + y[398], + y[399])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/left_finger +if (sphere_environment_in_collision(environment, + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[376], + y[377], + y[378], + y[379])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[380], + y[381], + y[382], + y[383])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[384], + y[385], + y[386], + y[387])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_right/body +if (sphere_environment_in_collision(environment, + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[360], + y[361], + y[362], + y[363])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[364], + y[365], + y[366], + y[367])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[368], + y[369], + y[370], + y[371])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[372], + y[373], + y[374], + y[375])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_7 +if (sphere_environment_in_collision(environment, + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[340], + y[341], + y[342], + y[343])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[344], + y[345], + y[346], + y[347])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[348], + y[349], + y[350], + y[351])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[352], + y[353], + y[354], + y[355])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[356], + y[357], + y[358], + y[359])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_6 +if (sphere_environment_in_collision(environment, + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[324], + y[325], + y[326], + y[327])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[328], + y[329], + y[330], + y[331])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[332], + y[333], + y[334], + y[335])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[336], + y[337], + y[338], + y[339])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_5 +if (sphere_environment_in_collision(environment, + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[296], + y[297], + y[298], + y[299])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[300], + y[301], + y[302], + y[303])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[304], + y[305], + y[306], + y[307])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[308], + y[309], + y[310], + y[311])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[312], + y[313], + y[314], + y[315])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[316], + y[317], + y[318], + y[319])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[320], + y[321], + y[322], + y[323])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_4 +if (sphere_environment_in_collision(environment, + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[276], + y[277], + y[278], + y[279])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[280], + y[281], + y[282], + y[283])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[284], + y[285], + y[286], + y[287])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[288], + y[289], + y[290], + y[291])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[292], + y[293], + y[294], + y[295])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_3 +if (sphere_environment_in_collision(environment, + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[256], + y[257], + y[258], + y[259])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[260], + y[261], + y[262], + y[263])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[264], + y[265], + y[266], + y[267])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[268], + y[269], + y[270], + y[271])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[272], + y[273], + y[274], + y[275])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_2 +if (sphere_environment_in_collision(environment, + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[236], + y[237], + y[238], + y[239])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[240], + y[241], + y[242], + y[243])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[244], + y[245], + y[246], + y[247])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[248], + y[249], + y[250], + y[251])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[252], + y[253], + y[254], + y[255])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_1 +if (sphere_environment_in_collision(environment, + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[216], + y[217], + y[218], + y[219])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[220], + y[221], + y[222], + y[223])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[224], + y[225], + y[226], + y[227])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[228], + y[229], + y[230], + y[231])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[232], + y[233], + y[234], + y[235])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_right/iiwa_link_0 +if (sphere_environment_in_collision(environment, + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[200], + y[201], + y[202], + y[203])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[204], + y[205], + y[206], + y[207])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[208], + y[209], + y[210], + y[211])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[212], + y[213], + y[214], + y[215])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/right_finger +if (sphere_environment_in_collision(environment, + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[188], + y[189], + y[190], + y[191])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[192], + y[193], + y[194], + y[195])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[196], + y[197], + y[198], + y[199])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/left_finger +if (sphere_environment_in_collision(environment, + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[176], + y[177], + y[178], + y[179])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[180], + y[181], + y[182], + y[183])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[184], + y[185], + y[186], + y[187])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// wsg_left/body +if (sphere_environment_in_collision(environment, + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[160], + y[161], + y[162], + y[163])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[164], + y[165], + y[166], + y[167])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[168], + y[169], + y[170], + y[171])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[172], + y[173], + y[174], + y[175])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_7 +if (sphere_environment_in_collision(environment, + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[140], + y[141], + y[142], + y[143])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[144], + y[145], + y[146], + y[147])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[148], + y[149], + y[150], + y[151])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[152], + y[153], + y[154], + y[155])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[156], + y[157], + y[158], + y[159])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_6 +if (sphere_environment_in_collision(environment, + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[124], + y[125], + y[126], + y[127])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[128], + y[129], + y[130], + y[131])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[132], + y[133], + y[134], + y[135])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[136], + y[137], + y[138], + y[139])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_5 +if (sphere_environment_in_collision(environment, + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[96], + y[97], + y[98], + y[99])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[100], + y[101], + y[102], + y[103])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[104], + y[105], + y[106], + y[107])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[108], + y[109], + y[110], + y[111])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[112], + y[113], + y[114], + y[115])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[116], + y[117], + y[118], + y[119])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[120], + y[121], + y[122], + y[123])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_4 +if (sphere_environment_in_collision(environment, + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[76], + y[77], + y[78], + y[79])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[80], + y[81], + y[82], + y[83])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[84], + y[85], + y[86], + y[87])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[88], + y[89], + y[90], + y[91])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[92], + y[93], + y[94], + y[95])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_3 +if (sphere_environment_in_collision(environment, + y[412], + y[413], + y[414], + y[415])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[56], + y[57], + y[58], + y[59])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[60], + y[61], + y[62], + y[63])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[64], + y[65], + y[66], + y[67])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[68], + y[69], + y[70], + y[71])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[72], + y[73], + y[74], + y[75])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_2 +if (sphere_environment_in_collision(environment, + y[408], + y[409], + y[410], + y[411])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[36], + y[37], + y[38], + y[39])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[40], + y[41], + y[42], + y[43])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[44], + y[45], + y[46], + y[47])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[48], + y[49], + y[50], + y[51])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[52], + y[53], + y[54], + y[55])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_1 +if (sphere_environment_in_collision(environment, + y[404], + y[405], + y[406], + y[407])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[16], + y[17], + y[18], + y[19])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[20], + y[21], + y[22], + y[23])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[24], + y[25], + y[26], + y[27])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[28], + y[29], + y[30], + y[31])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[32], + y[33], + y[34], + y[35])) [[unlikely]] + { + return false; + } + +} + + + + + + + +// +// environment vs. robot collisions +// + +// iiwa_left/iiwa_link_0 +if (sphere_environment_in_collision(environment, + y[400], + y[401], + y[402], + y[403])) [[unlikely]] +{ + + + if (sphere_environment_in_collision(environment, + y[0], + y[1], + y[2], + y[3])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[4], + y[5], + y[6], + y[7])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[8], + y[9], + y[10], + y[11])) [[unlikely]] + { + return false; + } + + + if (sphere_environment_in_collision(environment, + y[12], + y[13], + y[14], + y[15])) [[unlikely]] + { + return false; + } + +} + + + +// +// robot self-collisions +// + + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/body +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/body +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_0 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[400], + y[401], + y[402], + y[403], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[0 ], + y[1 ], + y[2 ], + y[3 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[4 ], + y[5 ], + y[6 ], + y[7 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[8 ], + y[9 ], + y[10 ], + y[11 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[12 ], + y[13 ], + y[14 ], + y[15 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/body +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/body +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_1 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[404], + y[405], + y[406], + y[407], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[16 ], + y[17 ], + y[18 ], + y[19 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[20 ], + y[21 ], + y[22 ], + y[23 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[24 ], + y[25 ], + y[26 ], + y[27 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[28 ], + y[29 ], + y[30 ], + y[31 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[32 ], + y[33 ], + y[34 ], + y[35 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_4 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[416], + y[417], + y[418], + y[419])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[76 ], + y[77 ], + y[78 ], + y[79 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[80 ], + y[81 ], + y[82 ], + y[83 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[84 ], + y[85 ], + y[86 ], + y[87 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[88 ], + y[89 ], + y[90 ], + y[91 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[92 ], + y[93 ], + y[94 ], + y[95 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/body +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/body +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_2 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[408], + y[409], + y[410], + y[411], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[36 ], + y[37 ], + y[38 ], + y[39 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[40 ], + y[41 ], + y[42 ], + y[43 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[44 ], + y[45 ], + y[46 ], + y[47 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[48 ], + y[49 ], + y[50 ], + y[51 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[52 ], + y[53 ], + y[54 ], + y[55 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_5 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[420], + y[421], + y[422], + y[423])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[96 ], + y[97 ], + y[98 ], + y[99 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[100 ], + y[101 ], + y[102 ], + y[103 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[104 ], + y[105 ], + y[106 ], + y[107 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[108 ], + y[109 ], + y[110 ], + y[111 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[112 ], + y[113 ], + y[114 ], + y[115 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[116 ], + y[117 ], + y[118 ], + y[119 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[120 ], + y[121 ], + y[122 ], + y[123 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_6 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[424], + y[425], + y[426], + y[427])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[124 ], + y[125 ], + y[126 ], + y[127 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[128 ], + y[129 ], + y[130 ], + y[131 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[132 ], + y[133 ], + y[134 ], + y[135 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[136 ], + y[137 ], + y[138 ], + y[139 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_left/iiwa_link_7 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[428], + y[429], + y[430], + y[431])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[140 ], + y[141 ], + y[142 ], + y[143 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[144 ], + y[145 ], + y[146 ], + y[147 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[148 ], + y[149 ], + y[150 ], + y[151 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[152 ], + y[153 ], + y[154 ], + y[155 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[156 ], + y[157 ], + y[158 ], + y[159 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/body +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/body +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_3 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[412], + y[413], + y[414], + y[415], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[56 ], + y[57 ], + y[58 ], + y[59 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[60 ], + y[61 ], + y[62 ], + y[63 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[64 ], + y[65 ], + y[66 ], + y[67 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[68 ], + y[69 ], + y[70 ], + y[71 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[72 ], + y[73 ], + y[74 ], + y[75 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/body +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/body +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_4 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[416], + y[417], + y[418], + y[419], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[76 ], + y[77 ], + y[78 ], + y[79 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[80 ], + y[81 ], + y[82 ], + y[83 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[84 ], + y[85 ], + y[86 ], + y[87 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[88 ], + y[89 ], + y[90 ], + y[91 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[92 ], + y[93 ], + y[94 ], + y[95 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/body +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/body +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_5 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[420], + y[421], + y[422], + y[423], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[96 ], + y[97 ], + y[98 ], + y[99 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[100 ], + y[101 ], + y[102 ], + y[103 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[104 ], + y[105 ], + y[106 ], + y[107 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[108 ], + y[109 ], + y[110 ], + y[111 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[112 ], + y[113 ], + y[114 ], + y[115 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[116 ], + y[117 ], + y[118 ], + y[119 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[120 ], + y[121 ], + y[122 ], + y[123 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/body +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[432], + y[433], + y[434], + y[435])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[160 ], + y[161 ], + y[162 ], + y[163 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[164 ], + y[165 ], + y[166 ], + y[167 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[168 ], + y[169 ], + y[170 ], + y[171 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[172 ], + y[173 ], + y[174 ], + y[175 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/left_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[436], + y[437], + y[438], + y[439])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[176 ], + y[177 ], + y[178 ], + y[179 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[180 ], + y[181 ], + y[182 ], + y[183 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[184 ], + y[185 ], + y[186 ], + y[187 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_left/right_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[440], + y[441], + y[442], + y[443])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[188 ], + y[189 ], + y[190 ], + y[191 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[192 ], + y[193 ], + y[194 ], + y[195 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[196 ], + y[197 ], + y[198 ], + y[199 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/body +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_6 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[424], + y[425], + y[426], + y[427], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[124 ], + y[125 ], + y[126 ], + y[127 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[128 ], + y[129 ], + y[130 ], + y[131 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[132 ], + y[133 ], + y[134 ], + y[135 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[136 ], + y[137 ], + y[138 ], + y[139 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/body +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_left/iiwa_link_7 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[428], + y[429], + y[430], + y[431], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[140 ], + y[141 ], + y[142 ], + y[143 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[144 ], + y[145 ], + y[146 ], + y[147 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[148 ], + y[149 ], + y[150 ], + y[151 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[152 ], + y[153 ], + y[154 ], + y[155 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[156 ], + y[157 ], + y[158 ], + y[159 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/body +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/body vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[432], + y[433], + y[434], + y[435], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[160 ], + y[161 ], + y[162 ], + y[163 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[164 ], + y[165 ], + y[166 ], + y[167 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[168 ], + y[169 ], + y[170 ], + y[171 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[172 ], + y[173 ], + y[174 ], + y[175 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/body +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/left_finger vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[436], + y[437], + y[438], + y[439], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[176 ], + y[177 ], + y[178 ], + y[179 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[180 ], + y[181 ], + y[182 ], + y[183 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[184 ], + y[185 ], + y[186 ], + y[187 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_0 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[444], + y[445], + y[446], + y[447])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[200 ], + y[201 ], + y[202 ], + y[203 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[204 ], + y[205 ], + y[206 ], + y[207 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[208 ], + y[209 ], + y[210 ], + y[211 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[212 ], + y[213 ], + y[214 ], + y[215 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_1 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[448], + y[449], + y[450], + y[451])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[216 ], + y[217 ], + y[218 ], + y[219 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[220 ], + y[221 ], + y[222 ], + y[223 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[224 ], + y[225 ], + y[226 ], + y[227 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[228 ], + y[229 ], + y[230 ], + y[231 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[232 ], + y[233 ], + y[234 ], + y[235 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_2 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[452], + y[453], + y[454], + y[455])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[236 ], + y[237 ], + y[238 ], + y[239 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[240 ], + y[241 ], + y[242 ], + y[243 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[244 ], + y[245 ], + y[246 ], + y[247 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[248 ], + y[249 ], + y[250 ], + y[251 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[252 ], + y[253 ], + y[254 ], + y[255 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_3 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[456], + y[457], + y[458], + y[459])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[256 ], + y[257 ], + y[258 ], + y[259 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[260 ], + y[261 ], + y[262 ], + y[263 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[264 ], + y[265 ], + y[266 ], + y[267 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[268 ], + y[269 ], + y[270 ], + y[271 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[272 ], + y[273 ], + y[274 ], + y[275 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/body +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// wsg_left/right_finger vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[440], + y[441], + y[442], + y[443], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[188 ], + y[189 ], + y[190 ], + y[191 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[192 ], + y[193 ], + y[194 ], + y[195 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[196 ], + y[197 ], + y[198 ], + y[199 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/body +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_0 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[444], + y[445], + y[446], + y[447], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[200 ], + y[201 ], + y[202 ], + y[203 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[204 ], + y[205 ], + y[206 ], + y[207 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[208 ], + y[209 ], + y[210 ], + y[211 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[212 ], + y[213 ], + y[214 ], + y[215 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/body +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_1 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[448], + y[449], + y[450], + y[451], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[216 ], + y[217 ], + y[218 ], + y[219 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[220 ], + y[221 ], + y[222 ], + y[223 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[224 ], + y[225 ], + y[226 ], + y[227 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[228 ], + y[229 ], + y[230 ], + y[231 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[232 ], + y[233 ], + y[234 ], + y[235 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_4 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[460], + y[461], + y[462], + y[463])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[276 ], + y[277 ], + y[278 ], + y[279 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[280 ], + y[281 ], + y[282 ], + y[283 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[284 ], + y[285 ], + y[286 ], + y[287 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[288 ], + y[289 ], + y[290 ], + y[291 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[292 ], + y[293 ], + y[294 ], + y[295 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/body +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_2 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[452], + y[453], + y[454], + y[455], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[236 ], + y[237 ], + y[238 ], + y[239 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[240 ], + y[241 ], + y[242 ], + y[243 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[244 ], + y[245 ], + y[246 ], + y[247 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[248 ], + y[249 ], + y[250 ], + y[251 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[252 ], + y[253 ], + y[254 ], + y[255 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_5 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[464], + y[465], + y[466], + y[467])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[296 ], + y[297 ], + y[298 ], + y[299 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[300 ], + y[301 ], + y[302 ], + y[303 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[304 ], + y[305 ], + y[306 ], + y[307 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[308 ], + y[309 ], + y[310 ], + y[311 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[312 ], + y[313 ], + y[314 ], + y[315 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[316 ], + y[317 ], + y[318 ], + y[319 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[320 ], + y[321 ], + y[322 ], + y[323 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_6 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[468], + y[469], + y[470], + y[471])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[324 ], + y[325 ], + y[326 ], + y[327 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[328 ], + y[329 ], + y[330 ], + y[331 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[332 ], + y[333 ], + y[334 ], + y[335 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[336 ], + y[337 ], + y[338 ], + y[339 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. iiwa_right/iiwa_link_7 +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[472], + y[473], + y[474], + y[475])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[340 ], + y[341 ], + y[342 ], + y[343 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[344 ], + y[345 ], + y[346 ], + y[347 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[348 ], + y[349 ], + y[350 ], + y[351 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[352 ], + y[353 ], + y[354 ], + y[355 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[356 ], + y[357 ], + y[358 ], + y[359 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/body +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_3 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[456], + y[457], + y[458], + y[459], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[256 ], + y[257 ], + y[258 ], + y[259 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[260 ], + y[261 ], + y[262 ], + y[263 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[264 ], + y[265 ], + y[266 ], + y[267 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[268 ], + y[269 ], + y[270 ], + y[271 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[272 ], + y[273 ], + y[274 ], + y[275 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/body +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_4 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[460], + y[461], + y[462], + y[463], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[276 ], + y[277 ], + y[278 ], + y[279 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[280 ], + y[281 ], + y[282 ], + y[283 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[284 ], + y[285 ], + y[286 ], + y[287 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[288 ], + y[289 ], + y[290 ], + y[291 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[292 ], + y[293 ], + y[294 ], + y[295 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/body +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_5 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[464], + y[465], + y[466], + y[467], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[296 ], + y[297 ], + y[298 ], + y[299 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[300 ], + y[301 ], + y[302 ], + y[303 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[304 ], + y[305 ], + y[306 ], + y[307 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[308 ], + y[309 ], + y[310 ], + y[311 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[312 ], + y[313 ], + y[314 ], + y[315 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[316 ], + y[317 ], + y[318 ], + y[319 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[320 ], + y[321 ], + y[322 ], + y[323 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/body +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[476], + y[477], + y[478], + y[479])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[360 ], + y[361 ], + y[362 ], + y[363 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[364 ], + y[365 ], + y[366 ], + y[367 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[368 ], + y[369 ], + y[370 ], + y[371 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[372 ], + y[373 ], + y[374 ], + y[375 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/left_finger +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[480], + y[481], + y[482], + y[483])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[376 ], + y[377 ], + y[378 ], + y[379 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[380 ], + y[381 ], + y[382 ], + y[383 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[384 ], + y[385 ], + y[386 ], + y[387 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + + + + + + + +// iiwa_right/iiwa_link_6 vs. wsg_right/right_finger +if (sphere_sphere_self_collision(y[468], + y[469], + y[470], + y[471], + y[484], + y[485], + y[486], + y[487])) [[unlikely]] +{ + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[324 ], + y[325 ], + y[326 ], + y[327 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[328 ], + y[329 ], + y[330 ], + y[331 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[332 ], + y[333 ], + y[334 ], + y[335 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[388 ], + y[389 ], + y[390 ], + y[391 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[392 ], + y[393 ], + y[394 ], + y[395 ])) [[unlikely]] + { + return false; + } + + + + + + + if (sphere_sphere_self_collision(y[336 ], + y[337 ], + y[338 ], + y[339 ], + y[396 ], + y[397 ], + y[398 ], + y[399 ])) [[unlikely]] + { + return false; + } + + + +} + + + + + // attaching at wsg_left/tool + set_attachment_pose(environment, 0, to_isometry(&y[488])); + + // attaching at wsg_right/tool + set_attachment_pose(environment, 1, to_isometry(&y[500])); + + + // + // attachment vs. environment collisions + // + if (attachment_environment_collision(environment)) [[unlikely]] + { + return false; + } + + + // + // attachment vs. attachment collisions (across end-effectors) + // + if (attachment_attachment_collision(environment)) [[unlikely]] + { + return false; + } + + + // + // attachment vs. robot collisions + // + + + + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_0 + if (attachment_sphere_collision(environment, 0, 5U, + y[400], + y[401], + y[402], + y[403])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 5U, + y[0], + y[1], + y[2], + y[3])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 5U, + y[4], + y[5], + y[6], + y[7])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 5U, + y[8], + y[9], + y[10], + y[11])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 5U, + y[12], + y[13], + y[14], + y[15])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_1 + if (attachment_sphere_collision(environment, 0, 7U, + y[404], + y[405], + y[406], + y[407])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 7U, + y[16], + y[17], + y[18], + y[19])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 7U, + y[20], + y[21], + y[22], + y[23])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 7U, + y[24], + y[25], + y[26], + y[27])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 7U, + y[28], + y[29], + y[30], + y[31])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 7U, + y[32], + y[33], + y[34], + y[35])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_2 + if (attachment_sphere_collision(environment, 0, 9U, + y[408], + y[409], + y[410], + y[411])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 9U, + y[36], + y[37], + y[38], + y[39])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 9U, + y[40], + y[41], + y[42], + y[43])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 9U, + y[44], + y[45], + y[46], + y[47])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 9U, + y[48], + y[49], + y[50], + y[51])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 9U, + y[52], + y[53], + y[54], + y[55])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_3 + if (attachment_sphere_collision(environment, 0, 11U, + y[412], + y[413], + y[414], + y[415])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 11U, + y[56], + y[57], + y[58], + y[59])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 11U, + y[60], + y[61], + y[62], + y[63])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 11U, + y[64], + y[65], + y[66], + y[67])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 11U, + y[68], + y[69], + y[70], + y[71])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 11U, + y[72], + y[73], + y[74], + y[75])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_4 + if (attachment_sphere_collision(environment, 0, 13U, + y[416], + y[417], + y[418], + y[419])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 13U, + y[76], + y[77], + y[78], + y[79])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 13U, + y[80], + y[81], + y[82], + y[83])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 13U, + y[84], + y[85], + y[86], + y[87])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 13U, + y[88], + y[89], + y[90], + y[91])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 13U, + y[92], + y[93], + y[94], + y[95])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_5 + if (attachment_sphere_collision(environment, 0, 15U, + y[420], + y[421], + y[422], + y[423])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 15U, + y[96], + y[97], + y[98], + y[99])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[100], + y[101], + y[102], + y[103])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[104], + y[105], + y[106], + y[107])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[108], + y[109], + y[110], + y[111])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[112], + y[113], + y[114], + y[115])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[116], + y[117], + y[118], + y[119])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 15U, + y[120], + y[121], + y[122], + y[123])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_left/iiwa_link_6 + if (attachment_sphere_collision(environment, 0, 17U, + y[424], + y[425], + y[426], + y[427])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 17U, + y[124], + y[125], + y[126], + y[127])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 17U, + y[128], + y[129], + y[130], + y[131])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 17U, + y[132], + y[133], + y[134], + y[135])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 17U, + y[136], + y[137], + y[138], + y[139])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_0 + if (attachment_sphere_collision(environment, 0, 35U, + y[444], + y[445], + y[446], + y[447])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 35U, + y[200], + y[201], + y[202], + y[203])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 35U, + y[204], + y[205], + y[206], + y[207])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 35U, + y[208], + y[209], + y[210], + y[211])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 35U, + y[212], + y[213], + y[214], + y[215])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_1 + if (attachment_sphere_collision(environment, 0, 37U, + y[448], + y[449], + y[450], + y[451])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 37U, + y[216], + y[217], + y[218], + y[219])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 37U, + y[220], + y[221], + y[222], + y[223])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 37U, + y[224], + y[225], + y[226], + y[227])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 37U, + y[228], + y[229], + y[230], + y[231])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 37U, + y[232], + y[233], + y[234], + y[235])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_2 + if (attachment_sphere_collision(environment, 0, 39U, + y[452], + y[453], + y[454], + y[455])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 39U, + y[236], + y[237], + y[238], + y[239])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 39U, + y[240], + y[241], + y[242], + y[243])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 39U, + y[244], + y[245], + y[246], + y[247])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 39U, + y[248], + y[249], + y[250], + y[251])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 39U, + y[252], + y[253], + y[254], + y[255])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_3 + if (attachment_sphere_collision(environment, 0, 41U, + y[456], + y[457], + y[458], + y[459])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 41U, + y[256], + y[257], + y[258], + y[259])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 41U, + y[260], + y[261], + y[262], + y[263])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 41U, + y[264], + y[265], + y[266], + y[267])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 41U, + y[268], + y[269], + y[270], + y[271])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 41U, + y[272], + y[273], + y[274], + y[275])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_4 + if (attachment_sphere_collision(environment, 0, 43U, + y[460], + y[461], + y[462], + y[463])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 43U, + y[276], + y[277], + y[278], + y[279])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 43U, + y[280], + y[281], + y[282], + y[283])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 43U, + y[284], + y[285], + y[286], + y[287])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 43U, + y[288], + y[289], + y[290], + y[291])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 43U, + y[292], + y[293], + y[294], + y[295])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_5 + if (attachment_sphere_collision(environment, 0, 45U, + y[464], + y[465], + y[466], + y[467])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 45U, + y[296], + y[297], + y[298], + y[299])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[300], + y[301], + y[302], + y[303])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[304], + y[305], + y[306], + y[307])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[308], + y[309], + y[310], + y[311])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[312], + y[313], + y[314], + y[315])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[316], + y[317], + y[318], + y[319])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 45U, + y[320], + y[321], + y[322], + y[323])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_6 + if (attachment_sphere_collision(environment, 0, 47U, + y[468], + y[469], + y[470], + y[471])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 47U, + y[324], + y[325], + y[326], + y[327])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 47U, + y[328], + y[329], + y[330], + y[331])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 47U, + y[332], + y[333], + y[334], + y[335])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 47U, + y[336], + y[337], + y[338], + y[339])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. iiwa_right/iiwa_link_7 + if (attachment_sphere_collision(environment, 0, 49U, + y[472], + y[473], + y[474], + y[475])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 49U, + y[340], + y[341], + y[342], + y[343])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 49U, + y[344], + y[345], + y[346], + y[347])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 49U, + y[348], + y[349], + y[350], + y[351])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 49U, + y[352], + y[353], + y[354], + y[355])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 49U, + y[356], + y[357], + y[358], + y[359])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. wsg_right/body + if (attachment_sphere_collision(environment, 0, 55U, + y[476], + y[477], + y[478], + y[479])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 55U, + y[360], + y[361], + y[362], + y[363])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 55U, + y[364], + y[365], + y[366], + y[367])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 55U, + y[368], + y[369], + y[370], + y[371])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 55U, + y[372], + y[373], + y[374], + y[375])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. wsg_right/left_finger + if (attachment_sphere_collision(environment, 0, 57U, + y[480], + y[481], + y[482], + y[483])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 57U, + y[376], + y[377], + y[378], + y[379])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 57U, + y[380], + y[381], + y[382], + y[383])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 57U, + y[384], + y[385], + y[386], + y[387])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_left/tool attachments vs. wsg_right/right_finger + if (attachment_sphere_collision(environment, 0, 59U, + y[484], + y[485], + y[486], + y[487])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 0, 59U, + y[388], + y[389], + y[390], + y[391])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 59U, + y[392], + y[393], + y[394], + y[395])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 0, 59U, + y[396], + y[397], + y[398], + y[399])) [[unlikely]] + { + return false; + } + + } + + + + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_0 + if (attachment_sphere_collision(environment, 1, 5U, + y[400], + y[401], + y[402], + y[403])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 5U, + y[0], + y[1], + y[2], + y[3])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 5U, + y[4], + y[5], + y[6], + y[7])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 5U, + y[8], + y[9], + y[10], + y[11])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 5U, + y[12], + y[13], + y[14], + y[15])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_1 + if (attachment_sphere_collision(environment, 1, 7U, + y[404], + y[405], + y[406], + y[407])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 7U, + y[16], + y[17], + y[18], + y[19])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 7U, + y[20], + y[21], + y[22], + y[23])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 7U, + y[24], + y[25], + y[26], + y[27])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 7U, + y[28], + y[29], + y[30], + y[31])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 7U, + y[32], + y[33], + y[34], + y[35])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_2 + if (attachment_sphere_collision(environment, 1, 9U, + y[408], + y[409], + y[410], + y[411])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 9U, + y[36], + y[37], + y[38], + y[39])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 9U, + y[40], + y[41], + y[42], + y[43])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 9U, + y[44], + y[45], + y[46], + y[47])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 9U, + y[48], + y[49], + y[50], + y[51])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 9U, + y[52], + y[53], + y[54], + y[55])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_3 + if (attachment_sphere_collision(environment, 1, 11U, + y[412], + y[413], + y[414], + y[415])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 11U, + y[56], + y[57], + y[58], + y[59])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 11U, + y[60], + y[61], + y[62], + y[63])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 11U, + y[64], + y[65], + y[66], + y[67])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 11U, + y[68], + y[69], + y[70], + y[71])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 11U, + y[72], + y[73], + y[74], + y[75])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_4 + if (attachment_sphere_collision(environment, 1, 13U, + y[416], + y[417], + y[418], + y[419])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 13U, + y[76], + y[77], + y[78], + y[79])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 13U, + y[80], + y[81], + y[82], + y[83])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 13U, + y[84], + y[85], + y[86], + y[87])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 13U, + y[88], + y[89], + y[90], + y[91])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 13U, + y[92], + y[93], + y[94], + y[95])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_5 + if (attachment_sphere_collision(environment, 1, 15U, + y[420], + y[421], + y[422], + y[423])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 15U, + y[96], + y[97], + y[98], + y[99])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[100], + y[101], + y[102], + y[103])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[104], + y[105], + y[106], + y[107])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[108], + y[109], + y[110], + y[111])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[112], + y[113], + y[114], + y[115])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[116], + y[117], + y[118], + y[119])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 15U, + y[120], + y[121], + y[122], + y[123])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_6 + if (attachment_sphere_collision(environment, 1, 17U, + y[424], + y[425], + y[426], + y[427])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 17U, + y[124], + y[125], + y[126], + y[127])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 17U, + y[128], + y[129], + y[130], + y[131])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 17U, + y[132], + y[133], + y[134], + y[135])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 17U, + y[136], + y[137], + y[138], + y[139])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_left/iiwa_link_7 + if (attachment_sphere_collision(environment, 1, 19U, + y[428], + y[429], + y[430], + y[431])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 19U, + y[140], + y[141], + y[142], + y[143])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 19U, + y[144], + y[145], + y[146], + y[147])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 19U, + y[148], + y[149], + y[150], + y[151])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 19U, + y[152], + y[153], + y[154], + y[155])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 19U, + y[156], + y[157], + y[158], + y[159])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. wsg_left/body + if (attachment_sphere_collision(environment, 1, 25U, + y[432], + y[433], + y[434], + y[435])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 25U, + y[160], + y[161], + y[162], + y[163])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 25U, + y[164], + y[165], + y[166], + y[167])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 25U, + y[168], + y[169], + y[170], + y[171])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 25U, + y[172], + y[173], + y[174], + y[175])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. wsg_left/left_finger + if (attachment_sphere_collision(environment, 1, 27U, + y[436], + y[437], + y[438], + y[439])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 27U, + y[176], + y[177], + y[178], + y[179])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 27U, + y[180], + y[181], + y[182], + y[183])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 27U, + y[184], + y[185], + y[186], + y[187])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. wsg_left/right_finger + if (attachment_sphere_collision(environment, 1, 29U, + y[440], + y[441], + y[442], + y[443])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 29U, + y[188], + y[189], + y[190], + y[191])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 29U, + y[192], + y[193], + y[194], + y[195])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 29U, + y[196], + y[197], + y[198], + y[199])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_0 + if (attachment_sphere_collision(environment, 1, 35U, + y[444], + y[445], + y[446], + y[447])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 35U, + y[200], + y[201], + y[202], + y[203])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 35U, + y[204], + y[205], + y[206], + y[207])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 35U, + y[208], + y[209], + y[210], + y[211])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 35U, + y[212], + y[213], + y[214], + y[215])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_1 + if (attachment_sphere_collision(environment, 1, 37U, + y[448], + y[449], + y[450], + y[451])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 37U, + y[216], + y[217], + y[218], + y[219])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 37U, + y[220], + y[221], + y[222], + y[223])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 37U, + y[224], + y[225], + y[226], + y[227])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 37U, + y[228], + y[229], + y[230], + y[231])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 37U, + y[232], + y[233], + y[234], + y[235])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_2 + if (attachment_sphere_collision(environment, 1, 39U, + y[452], + y[453], + y[454], + y[455])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 39U, + y[236], + y[237], + y[238], + y[239])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 39U, + y[240], + y[241], + y[242], + y[243])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 39U, + y[244], + y[245], + y[246], + y[247])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 39U, + y[248], + y[249], + y[250], + y[251])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 39U, + y[252], + y[253], + y[254], + y[255])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_3 + if (attachment_sphere_collision(environment, 1, 41U, + y[456], + y[457], + y[458], + y[459])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 41U, + y[256], + y[257], + y[258], + y[259])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 41U, + y[260], + y[261], + y[262], + y[263])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 41U, + y[264], + y[265], + y[266], + y[267])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 41U, + y[268], + y[269], + y[270], + y[271])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 41U, + y[272], + y[273], + y[274], + y[275])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_4 + if (attachment_sphere_collision(environment, 1, 43U, + y[460], + y[461], + y[462], + y[463])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 43U, + y[276], + y[277], + y[278], + y[279])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 43U, + y[280], + y[281], + y[282], + y[283])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 43U, + y[284], + y[285], + y[286], + y[287])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 43U, + y[288], + y[289], + y[290], + y[291])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 43U, + y[292], + y[293], + y[294], + y[295])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_5 + if (attachment_sphere_collision(environment, 1, 45U, + y[464], + y[465], + y[466], + y[467])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 45U, + y[296], + y[297], + y[298], + y[299])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[300], + y[301], + y[302], + y[303])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[304], + y[305], + y[306], + y[307])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[308], + y[309], + y[310], + y[311])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[312], + y[313], + y[314], + y[315])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[316], + y[317], + y[318], + y[319])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 45U, + y[320], + y[321], + y[322], + y[323])) [[unlikely]] + { + return false; + } + + } + + + + + + // wsg_right/tool attachments vs. iiwa_right/iiwa_link_6 + if (attachment_sphere_collision(environment, 1, 47U, + y[468], + y[469], + y[470], + y[471])) [[unlikely]] + { + + + if (attachment_sphere_collision(environment, 1, 47U, + y[324], + y[325], + y[326], + y[327])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 47U, + y[328], + y[329], + y[330], + y[331])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 47U, + y[332], + y[333], + y[334], + y[335])) [[unlikely]] + { + return false; + } + + + if (attachment_sphere_collision(environment, 1, 47U, + y[336], + y[337], + y[338], + y[339])) [[unlikely]] + { + return false; + } + + } + + + + return true; + } + + static inline auto eefk(const std::array &x, std::size_t eef_index = 0) noexcept -> Eigen::Isometry3f + { + std::array v; + std::array y; + + v[0] = cos(x[0]); + v[1] = cos(x[1]); + v[2] = sin(x[1]); + v[3] = -1.26217744835362e-29 * v[1] + v[2]; + v[4] = -2.06823107110214e-13 * v[1] + -4.89652762780679e-12 * v[2]; + v[5] = v[3] - 4.89663865010925e-12 * v[4]; + v[6] = sin(x[0]); + v[7] = 0. - v[6]; + v[2] = -1. * v[1] + 1.01273331923549e-24 * v[2]; + v[1] = 4.89663865010925e-12 * v[2] - -2.06823107110214e-13 * v[3]; + v[8] = v[0] * v[5] + v[7] * v[1]; + v[9] = v[0] * v[2] + v[7] * v[4]; + v[7] = -2.06823107110214e-13 * v[0] + v[7]; + v[10] = -2.06823107110214e-13 * v[9] + v[8] + 4.89663865010925e-12 * v[7]; + v[11] = cos(x[2]); + v[12] = sin(x[2]); + v[13] = -1. * v[11] + 1.01273331923549e-24 * v[12]; + v[14] = -2.06823107110214e-13 * v[11] + -4.89652762780679e-12 * v[12]; + v[12] = -1.26217744835362e-29 * v[11] + v[12]; + v[11] = v[9] * v[13] + v[8] * v[14] + v[7] * v[12]; + v[15] = sin(x[3]); + v[16] = 4.89663865010925e-12 * v[15]; + v[17] = -1. * v[15] - 4.89663865010925e-12 * v[16]; + v[18] = v[12] - 4.89663865010925e-12 * v[14]; + v[19] = 4.89663865010925e-12 * v[13] - -2.06823107110214e-13 * v[12]; + v[20] = -2.06823107110214e-13 * v[14] - v[13]; + v[7] = v[9] * v[18] + v[8] * v[19] + v[7] * v[20]; + v[9] = cos(x[3]); + v[21] = 4.89663865010925e-12 * v[9]; + v[22] = 0. - -1. * v[9]; + v[23] = v[11] * v[17] + v[7] * v[21] + v[10] * v[22]; + v[11] = v[11] * v[9] + v[7] * v[16] + v[10] * v[15]; + v[7] = -1. * v[7] + 4.89663865010925e-12 * v[10]; + v[24] = -1.01273331923549e-24 * v[11] + v[23] + -4.89652762780679e-12 * v[7]; + v[25] = cos(x[4]); + v[26] = sin(x[4]); + v[27] = -1. * v[25] + 2.06823107110214e-13 * v[26]; + v[28] = 1.26217744835362e-29 * v[25] + 4.89663865010925e-12 * v[26]; + v[26] = 2.06823107110214e-13 * v[25] + v[26]; + v[25] = v[11] * v[27] + v[23] * v[28] + v[7] * v[26]; + v[29] = sin(x[5]); + v[30] = 4.89663865010925e-12 * v[29]; + v[31] = -1. * v[29] - 4.89663865010925e-12 * v[30]; + v[32] = v[26] - -4.89652762780679e-12 * v[28]; + v[33] = -4.89652762780679e-12 * v[27] - -1.01273331923549e-24 * v[26]; + v[34] = -1.01273331923549e-24 * v[28] - v[27]; + v[7] = v[11] * v[32] + v[23] * v[33] + v[7] * v[34]; + v[11] = cos(x[5]); + v[35] = 4.89663865010925e-12 * v[11]; + v[36] = 0. - -1. * v[11]; + v[37] = v[25] * v[31] + v[7] * v[35] + v[24] * v[36]; + v[25] = v[25] * v[11] + v[7] * v[30] + v[24] * v[29]; + v[38] = cos(x[6]); + v[39] = sin(x[6]); + v[40] = -1. * v[38] + 2.06823107110214e-13 * v[39]; + v[41] = 1.26217744835362e-29 * v[38] + 4.89663865010925e-12 * v[39]; + v[7] = -1. * v[7] + 4.89663865010925e-12 * v[24]; + v[39] = 2.06823107110214e-13 * v[38] + v[39]; + v[38] = v[25] * v[40] + v[37] * v[41] + v[7] * v[39]; + v[42] = v[39] - -4.89652762780679e-12 * v[41]; + v[43] = -4.89652762780679e-12 * v[40] - -1.01273331923549e-24 * v[39]; + v[44] = -1.01273331923549e-24 * v[41] - v[40]; + v[45] = v[25] * v[42] + v[37] * v[43] + v[7] * v[44]; + v[7] = -1.01273331923549e-24 * v[25] + v[37] + -4.89652762780679e-12 * v[7]; + y[0] = 0.2045 * v[8] + 0.2155 * v[10] + 0.1845 * v[23] + 0.2155 * v[24] + 0.081 * v[37] + -8.46716530222835e-13 * v[38] + 3.4209890475978e-13 * v[45] + 0.2765 * v[7]; + v[1] = v[6] * v[5] + v[0] * v[1]; + v[5] = v[6] * v[2] + v[0] * v[4]; + v[6] = -2.06823107110214e-13 * v[6] + v[0]; + v[0] = -2.06823107110214e-13 * v[5] + v[1] + 4.89663865010925e-12 * v[6]; + v[37] = v[5] * v[13] + v[1] * v[14] + v[6] * v[12]; + v[6] = v[5] * v[18] + v[1] * v[19] + v[6] * v[20]; + v[5] = v[37] * v[17] + v[6] * v[21] + v[0] * v[22]; + v[37] = v[37] * v[9] + v[6] * v[16] + v[0] * v[15]; + v[6] = -1. * v[6] + 4.89663865010925e-12 * v[0]; + v[24] = -1.01273331923549e-24 * v[37] + v[5] + -4.89652762780679e-12 * v[6]; + v[23] = v[37] * v[27] + v[5] * v[28] + v[6] * v[26]; + v[6] = v[37] * v[32] + v[5] * v[33] + v[6] * v[34]; + v[37] = v[23] * v[31] + v[6] * v[35] + v[24] * v[36]; + v[23] = v[23] * v[11] + v[6] * v[30] + v[24] * v[29]; + v[6] = -1. * v[6] + 4.89663865010925e-12 * v[24]; + v[10] = v[23] * v[40] + v[37] * v[41] + v[6] * v[39]; + v[8] = v[23] * v[42] + v[37] * v[43] + v[6] * v[44]; + v[6] = -1.01273331923549e-24 * v[23] + v[37] + -4.89652762780679e-12 * v[6]; + y[1] = 0.2045 * v[1] + 0.2155 * v[0] + 0.1845 * v[5] + 0.2155 * v[24] + 0.081 * v[37] + -8.46716530222835e-13 * v[10] + 3.4209890475978e-13 * v[8] + 0.2765 * v[6]; + v[2] = -2.06823107110214e-13 * v[4] - v[2]; + v[4] = -2.06823107110214e-13 * v[3] + 2.39770700697438e-23 + v[2]; + v[12] = v[3] * v[13] + v[2] * v[14] + 4.89663865010925e-12 * v[12]; + v[20] = v[3] * v[18] + v[2] * v[19] + 4.89663865010925e-12 * v[20]; + v[22] = v[12] * v[17] + v[20] * v[21] + v[4] * v[22]; + v[12] = v[12] * v[9] + v[20] * v[16] + v[4] * v[15]; + v[20] = -1. * v[20] + 4.89663865010925e-12 * v[4]; + v[9] = -1.01273331923549e-24 * v[12] + v[22] + -4.89652762780679e-12 * v[20]; + v[26] = v[12] * v[27] + v[22] * v[28] + v[20] * v[26]; + v[20] = v[12] * v[32] + v[22] * v[33] + v[20] * v[34]; + v[36] = v[26] * v[31] + v[20] * v[35] + v[9] * v[36]; + v[26] = v[26] * v[11] + v[20] * v[30] + v[9] * v[29]; + v[20] = -1. * v[20] + 4.89663865010925e-12 * v[9]; + v[39] = v[26] * v[40] + v[36] * v[41] + v[20] * v[39]; + v[44] = v[26] * v[42] + v[36] * v[43] + v[20] * v[44]; + v[20] = -1.01273331923549e-24 * v[26] + v[36] + -4.89652762780679e-12 * v[20]; + y[2] = 0.36 + 0.2045 * v[2] + 0.2155 * v[4] + 0.1845 * v[22] + 0.2155 * v[9] + 0.081 * v[36] + -8.46716530222835e-13 * v[39] + 3.4209890475978e-13 * v[44] + 0.2765 * v[20]; + y[3] = 0.374606593412337 * v[38] + 0.927183854568232 * v[45]; + y[4] = 0.374606593412337 * v[10] + 0.927183854568232 * v[8]; + y[5] = 0.374606593412337 * v[39] + 0.927183854568232 * v[44]; + y[6] = -0.927183854568232 * v[38] + 0.374606593412337 * v[45]; + y[7] = -0.927183854568232 * v[10] + 0.374606593412337 * v[8]; + y[8] = -0.927183854568232 * v[39] + 0.374606593412337 * v[44]; + y[9] = 4.92834364281641e-17 * v[38] + -2.64260292799678e-18 * v[45] + v[7]; + y[10] = 4.92834364281641e-17 * v[10] + -2.64260292799678e-18 * v[8] + v[6]; + y[11] = 4.92834364281641e-17 * v[39] + -2.64260292799678e-18 * v[44] + v[20]; + v[20] = cos(x[7]); + v[44] = cos(x[8]); + v[39] = sin(x[8]); + v[6] = -1.26217744835362e-29 * v[44] + v[39]; + v[8] = -2.06823107110214e-13 * v[44] + -4.89652762780679e-12 * v[39]; + v[10] = v[6] - 4.89663865010925e-12 * v[8]; + v[7] = sin(x[7]); + v[45] = 0. - v[7]; + v[39] = -1. * v[44] + 1.01273331923549e-24 * v[39]; + v[44] = 4.89663865010925e-12 * v[39] - -2.06823107110214e-13 * v[6]; + v[38] = v[20] * v[10] + v[45] * v[44]; + v[36] = v[20] * v[39] + v[45] * v[8]; + v[45] = -2.06823107110214e-13 * v[20] + v[45]; + v[9] = -2.06823107110214e-13 * v[36] + v[38] + 4.89663865010925e-12 * v[45]; + v[22] = cos(x[9]); + v[4] = sin(x[9]); + v[2] = -1. * v[22] + 1.01273331923549e-24 * v[4]; + v[26] = -2.06823107110214e-13 * v[22] + -4.89652762780679e-12 * v[4]; + v[4] = -1.26217744835362e-29 * v[22] + v[4]; + v[22] = v[36] * v[2] + v[38] * v[26] + v[45] * v[4]; + v[43] = sin(x[10]); + v[42] = 4.89663865010925e-12 * v[43]; + v[41] = -1. * v[43] - 4.89663865010925e-12 * v[42]; + v[40] = v[4] - 4.89663865010925e-12 * v[26]; + v[11] = 4.89663865010925e-12 * v[2] - -2.06823107110214e-13 * v[4]; + v[30] = -2.06823107110214e-13 * v[26] - v[2]; + v[45] = v[36] * v[40] + v[38] * v[11] + v[45] * v[30]; + v[36] = cos(x[10]); + v[29] = 4.89663865010925e-12 * v[36]; + v[35] = 0. - -1. * v[36]; + v[31] = v[22] * v[41] + v[45] * v[29] + v[9] * v[35]; + v[22] = v[22] * v[36] + v[45] * v[42] + v[9] * v[43]; + v[45] = -1. * v[45] + 4.89663865010925e-12 * v[9]; + v[12] = -1.01273331923549e-24 * v[22] + v[31] + -4.89652762780679e-12 * v[45]; + v[34] = cos(x[11]); + v[33] = sin(x[11]); + v[32] = -1. * v[34] + 2.06823107110214e-13 * v[33]; + v[28] = 1.26217744835362e-29 * v[34] + 4.89663865010925e-12 * v[33]; + v[33] = 2.06823107110214e-13 * v[34] + v[33]; + v[34] = v[22] * v[32] + v[31] * v[28] + v[45] * v[33]; + v[27] = sin(x[12]); + v[16] = 4.89663865010925e-12 * v[27]; + v[15] = -1. * v[27] - 4.89663865010925e-12 * v[16]; + v[21] = v[33] - -4.89652762780679e-12 * v[28]; + v[17] = -4.89652762780679e-12 * v[32] - -1.01273331923549e-24 * v[33]; + v[19] = -1.01273331923549e-24 * v[28] - v[32]; + v[45] = v[22] * v[21] + v[31] * v[17] + v[45] * v[19]; + v[22] = cos(x[12]); + v[18] = 4.89663865010925e-12 * v[22]; + v[3] = 0. - -1. * v[22]; + v[14] = v[34] * v[15] + v[45] * v[18] + v[12] * v[3]; + v[34] = v[34] * v[22] + v[45] * v[16] + v[12] * v[27]; + v[13] = cos(x[13]); + v[37] = sin(x[13]); + v[24] = -1. * v[13] + 2.06823107110214e-13 * v[37]; + v[5] = 1.26217744835362e-29 * v[13] + 4.89663865010925e-12 * v[37]; + v[45] = -1. * v[45] + 4.89663865010925e-12 * v[12]; + v[37] = 2.06823107110214e-13 * v[13] + v[37]; + v[13] = v[34] * v[24] + v[14] * v[5] + v[45] * v[37]; + v[0] = v[37] - -4.89652762780679e-12 * v[5]; + v[1] = -4.89652762780679e-12 * v[24] - -1.01273331923549e-24 * v[37]; + v[23] = -1.01273331923549e-24 * v[5] - v[24]; + v[25] = v[34] * v[0] + v[14] * v[1] + v[45] * v[23]; + v[45] = -1.01273331923549e-24 * v[34] + v[14] + -4.89652762780679e-12 * v[45]; + y[12] = 0.2045 * v[38] + 0.2155 * v[9] + 0.1845 * v[31] + 0.2155 * v[12] + 0.081 * v[14] + -8.46716530222835e-13 * v[13] + 3.4209890475978e-13 * v[25] + 0.2765 * v[45]; + v[44] = v[7] * v[10] + v[20] * v[44]; + v[10] = v[7] * v[39] + v[20] * v[8]; + v[7] = -2.06823107110214e-13 * v[7] + v[20]; + v[20] = -2.06823107110214e-13 * v[10] + v[44] + 4.89663865010925e-12 * v[7]; + v[14] = v[10] * v[2] + v[44] * v[26] + v[7] * v[4]; + v[7] = v[10] * v[40] + v[44] * v[11] + v[7] * v[30]; + v[10] = v[14] * v[41] + v[7] * v[29] + v[20] * v[35]; + v[14] = v[14] * v[36] + v[7] * v[42] + v[20] * v[43]; + v[7] = -1. * v[7] + 4.89663865010925e-12 * v[20]; + v[12] = -1.01273331923549e-24 * v[14] + v[10] + -4.89652762780679e-12 * v[7]; + v[31] = v[14] * v[32] + v[10] * v[28] + v[7] * v[33]; + v[7] = v[14] * v[21] + v[10] * v[17] + v[7] * v[19]; + v[14] = v[31] * v[15] + v[7] * v[18] + v[12] * v[3]; + v[31] = v[31] * v[22] + v[7] * v[16] + v[12] * v[27]; + v[7] = -1. * v[7] + 4.89663865010925e-12 * v[12]; + v[9] = v[31] * v[24] + v[14] * v[5] + v[7] * v[37]; + v[38] = v[31] * v[0] + v[14] * v[1] + v[7] * v[23]; + v[7] = -1.01273331923549e-24 * v[31] + v[14] + -4.89652762780679e-12 * v[7]; + y[13] = 0.765 + 0.2045 * v[44] + 0.2155 * v[20] + 0.1845 * v[10] + 0.2155 * v[12] + 0.081 * v[14] + -8.46716530222835e-13 * v[9] + 3.4209890475978e-13 * v[38] + 0.2765 * v[7]; + v[39] = -2.06823107110214e-13 * v[8] - v[39]; + v[8] = -2.06823107110214e-13 * v[6] + 2.39770700697438e-23 + v[39]; + v[4] = v[6] * v[2] + v[39] * v[26] + 4.89663865010925e-12 * v[4]; + v[30] = v[6] * v[40] + v[39] * v[11] + 4.89663865010925e-12 * v[30]; + v[35] = v[4] * v[41] + v[30] * v[29] + v[8] * v[35]; + v[4] = v[4] * v[36] + v[30] * v[42] + v[8] * v[43]; + v[30] = -1. * v[30] + 4.89663865010925e-12 * v[8]; + v[36] = -1.01273331923549e-24 * v[4] + v[35] + -4.89652762780679e-12 * v[30]; + v[33] = v[4] * v[32] + v[35] * v[28] + v[30] * v[33]; + v[30] = v[4] * v[21] + v[35] * v[17] + v[30] * v[19]; + v[3] = v[33] * v[15] + v[30] * v[18] + v[36] * v[3]; + v[33] = v[33] * v[22] + v[30] * v[16] + v[36] * v[27]; + v[30] = -1. * v[30] + 4.89663865010925e-12 * v[36]; + v[37] = v[33] * v[24] + v[3] * v[5] + v[30] * v[37]; + v[23] = v[33] * v[0] + v[3] * v[1] + v[30] * v[23]; + v[30] = -1.01273331923549e-24 * v[33] + v[3] + -4.89652762780679e-12 * v[30]; + y[14] = 0.36 + 0.2045 * v[39] + 0.2155 * v[8] + 0.1845 * v[35] + 0.2155 * v[36] + 0.081 * v[3] + -8.46716530222835e-13 * v[37] + 3.4209890475978e-13 * v[23] + 0.2765 * v[30]; + y[15] = 0.374606593412337 * v[13] + 0.927183854568232 * v[25]; + y[16] = 0.374606593412337 * v[9] + 0.927183854568232 * v[38]; + y[17] = 0.374606593412337 * v[37] + 0.927183854568232 * v[23]; + y[18] = -0.927183854568232 * v[13] + 0.374606593412337 * v[25]; + y[19] = -0.927183854568232 * v[9] + 0.374606593412337 * v[38]; + y[20] = -0.927183854568232 * v[37] + 0.374606593412337 * v[23]; + y[21] = 4.92834364281641e-17 * v[13] + -2.64260292799678e-18 * v[25] + v[45]; + y[22] = 4.92834364281641e-17 * v[9] + -2.64260292799678e-18 * v[38] + v[7]; + y[23] = 4.92834364281641e-17 * v[37] + -2.64260292799678e-18 * v[23] + v[30]; + + + return to_isometry(y.data() + 12 * eef_index); + } + + +}; +} + +// NOLINTEND(*-magic-numbers) diff --git a/src/impl/vamp/robots/traits.hh b/src/impl/vamp/robots/traits.hh index 4c5a95ec..fcc2f82e 100644 --- a/src/impl/vamp/robots/traits.hh +++ b/src/impl/vamp/robots/traits.hh @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -14,6 +15,7 @@ // static auto sample(FloatVector) -> Configuration; // unit cube -> configuration // static auto distance(const Configuration &, const Configuration &) -> float; // static auto interpolate(const Configuration &, const Configuration &, float t) -> Configuration; +// static constexpr std::array so3_offsets; // start index of each quaternion block // // Robots that define none of them are Euclidean, sample the configuration cube directly, and use // Configuration::distance and Configuration::interpolate. The helpers below resolve each hook with @@ -33,6 +35,18 @@ namespace vamp::robots { }; + template + struct so3_offsets + { + static constexpr std::array value{}; + }; + + template + struct so3_offsets> + { + static constexpr auto value = Robot::so3_offsets; + }; + template struct sample_dimension : std::integral_constant { @@ -90,6 +104,10 @@ namespace vamp::robots template inline constexpr bool is_euclidean_v = detail::euclidean::value; + // Start index of each quaternion (SO(3)) block in the configuration; empty if there are none. + template + inline constexpr auto so3_offsets_v = detail::so3_offsets::value; + template inline constexpr std::size_t sample_dimension_v = detail::sample_dimension::value; diff --git a/src/impl/vamp/utils.hh b/src/impl/vamp/utils.hh index 4c80ac90..2bccb54e 100644 --- a/src/impl/vamp/utils.hh +++ b/src/impl/vamp/utils.hh @@ -2,6 +2,8 @@ #include #include +#include +#include #include #include @@ -32,10 +34,15 @@ namespace vamp::utils return not(iptr % alignment); } - template - inline auto vector_alloc(std::size_t n) noexcept -> T * + template + using buffer_ptr = std::unique_ptr; + + template + inline auto buffer_alloc(std::size_t n) noexcept -> buffer_ptr { - return static_cast(aligned_alloc(alignment, sizeof(T) * round_size(n, vector_size))); + static_assert(std::is_trivial_v); + return buffer_ptr( + static_cast(aligned_alloc(alignment, round_size(sizeof(T) * n, alignment))), &free); } // Because ceil isn't constexpr until C++23 for some reason..... diff --git a/src/impl/vamp/vector/interface.hh b/src/impl/vamp/vector/interface.hh index 48416bcb..402f07c6 100644 --- a/src/impl/vamp/vector/interface.hh +++ b/src/impl/vamp/vector/interface.hh @@ -394,6 +394,23 @@ namespace vamp return D(apply>(d()->data, broadcast_scalar(other))); } + template ::template check = true> + inline constexpr auto min(T o) const noexcept -> D + { + return min(o.data); + } + + template ::template check = true> + inline constexpr auto min(T other) const noexcept -> D + { + return D(apply>(d()->data, other)); + } + + inline constexpr auto min(typename S::ScalarT other) const noexcept -> D + { + return D(apply>(d()->data, broadcast_scalar(other))); + } + inline constexpr auto hsum() const noexcept -> typename S::ScalarT { return S::hsum(unpack::sum_(d()->data)); diff --git a/src/impl/vamp/vector/isa/avx.hh b/src/impl/vamp/vector/isa/avx.hh index 2e30e5db..6dfa3a8a 100644 --- a/src/impl/vamp/vector/isa/avx.hh +++ b/src/impl/vamp/vector/isa/avx.hh @@ -438,6 +438,12 @@ namespace vamp return _mm256_max_ps(v, other); } + template + inline static constexpr auto min(VectorT v, VectorT other) noexcept -> VectorT + { + return _mm256_min_ps(v, other); + } + template inline static constexpr auto hsum(VectorT v) noexcept -> ScalarT { diff --git a/src/impl/vamp/vector/isa/neon.hh b/src/impl/vamp/vector/isa/neon.hh index 49a19997..b0587123 100644 --- a/src/impl/vamp/vector/isa/neon.hh +++ b/src/impl/vamp/vector/isa/neon.hh @@ -528,6 +528,12 @@ namespace vamp return vmaxq_f32(v, other); } + template + inline static constexpr auto min(VectorT v, VectorT other) noexcept -> VectorT + { + return vminq_f32(v, other); + } + template inline static constexpr auto hsum(VectorT v) noexcept -> float { diff --git a/src/impl/vamp/vector/isa/wasm.hh b/src/impl/vamp/vector/isa/wasm.hh index 36504fc5..d82d603e 100644 --- a/src/impl/vamp/vector/isa/wasm.hh +++ b/src/impl/vamp/vector/isa/wasm.hh @@ -555,6 +555,12 @@ namespace vamp return {wasm_f32x4_max(v.v, other.v)}; } + template + inline static constexpr auto min(VectorT v, VectorT other) noexcept -> VectorT + { + return {wasm_f32x4_min(v.v, other.v)}; + } + template inline static constexpr auto hsum(VectorT v) noexcept -> float {