wandelbots-api-client 25.8.0.dev88__py3-none-any.whl → 25.10.0.dev47__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wandelbots_api_client/__init__.py +1 -1
- wandelbots_api_client/api/controller_api.py +9 -3
- wandelbots_api_client/api/controller_ios_api.py +2 -4
- wandelbots_api_client/api/motion_api.py +16 -4
- wandelbots_api_client/api/motion_group_infos_api.py +2 -0
- wandelbots_api_client/api/motion_group_jogging_api.py +10 -4
- wandelbots_api_client/api/store_collision_components_api.py +9 -6
- wandelbots_api_client/api/virtual_robot_behavior_api.py +5 -2
- wandelbots_api_client/api_client.py +1 -1
- wandelbots_api_client/configuration.py +1 -1
- wandelbots_api_client/models/abb_controller.py +4 -4
- wandelbots_api_client/models/abb_controller_egm_server.py +2 -2
- wandelbots_api_client/models/activate_license_request.py +1 -1
- wandelbots_api_client/models/add_request.py +2 -2
- wandelbots_api_client/models/all_joint_positions_request.py +2 -2
- wandelbots_api_client/models/all_joint_positions_response.py +1 -1
- wandelbots_api_client/models/app.py +7 -7
- wandelbots_api_client/models/array_input.py +1 -1
- wandelbots_api_client/models/array_output.py +1 -1
- wandelbots_api_client/models/blending_auto.py +2 -2
- wandelbots_api_client/models/blending_position.py +2 -2
- wandelbots_api_client/models/box.py +4 -4
- wandelbots_api_client/models/box2.py +5 -5
- wandelbots_api_client/models/box3.py +5 -5
- wandelbots_api_client/models/capsule.py +2 -2
- wandelbots_api_client/models/capsule2.py +3 -3
- wandelbots_api_client/models/capsule3.py +3 -3
- wandelbots_api_client/models/capture.py +1 -1
- wandelbots_api_client/models/cell.py +3 -3
- wandelbots_api_client/models/circle.py +2 -2
- wandelbots_api_client/models/code_with_arguments.py +2 -2
- wandelbots_api_client/models/collider.py +3 -3
- wandelbots_api_client/models/collider_input.py +3 -3
- wandelbots_api_client/models/collider_output.py +3 -3
- wandelbots_api_client/models/collision.py +6 -6
- wandelbots_api_client/models/collision_contact.py +2 -2
- wandelbots_api_client/models/collision_motion_group.py +2 -2
- wandelbots_api_client/models/collision_motion_group_assembly.py +4 -4
- wandelbots_api_client/models/collision_robot_configuration_input.py +3 -3
- wandelbots_api_client/models/collision_robot_configuration_output.py +3 -3
- wandelbots_api_client/models/collision_scene.py +2 -2
- wandelbots_api_client/models/collision_scene_assembly.py +5 -5
- wandelbots_api_client/models/command.py +6 -6
- wandelbots_api_client/models/command_settings.py +3 -3
- wandelbots_api_client/models/compound.py +1 -1
- wandelbots_api_client/models/container_environment_inner.py +2 -2
- wandelbots_api_client/models/container_image.py +3 -3
- wandelbots_api_client/models/container_image_secrets_inner.py +1 -1
- wandelbots_api_client/models/container_resources.py +1 -1
- wandelbots_api_client/models/container_storage.py +2 -2
- wandelbots_api_client/models/controller_capabilities.py +2 -2
- wandelbots_api_client/models/controller_instance.py +8 -8
- wandelbots_api_client/models/controller_instance_list.py +1 -1
- wandelbots_api_client/models/convex_hull.py +1 -1
- wandelbots_api_client/models/convex_hull2.py +2 -2
- wandelbots_api_client/models/convex_hull3.py +2 -2
- wandelbots_api_client/models/coordinate_system.py +5 -5
- wandelbots_api_client/models/coordinate_systems.py +1 -1
- wandelbots_api_client/models/create_program_run200_response.py +1 -1
- wandelbots_api_client/models/create_program_run_request.py +1 -1
- wandelbots_api_client/models/create_trigger200_response.py +1 -1
- wandelbots_api_client/models/create_trigger_request.py +4 -4
- wandelbots_api_client/models/cubic_spline.py +1 -1
- wandelbots_api_client/models/cubic_spline_cubic_spline_parameter.py +2 -2
- wandelbots_api_client/models/cubic_spline_parameter.py +2 -2
- wandelbots_api_client/models/cycle_time.py +1 -1
- wandelbots_api_client/models/cylinder.py +2 -2
- wandelbots_api_client/models/cylinder2.py +3 -3
- wandelbots_api_client/models/cylinder3.py +3 -3
- wandelbots_api_client/models/dh_parameter.py +5 -5
- wandelbots_api_client/models/direction_jogging_request.py +9 -9
- wandelbots_api_client/models/error.py +2 -2
- wandelbots_api_client/models/execution_result.py +3 -3
- wandelbots_api_client/models/external_joint_stream_datapoint.py +2 -2
- wandelbots_api_client/models/external_joint_stream_datapoint_value.py +4 -4
- wandelbots_api_client/models/fanuc_controller.py +2 -2
- wandelbots_api_client/models/feedback_collision.py +4 -4
- wandelbots_api_client/models/feedback_joint_limit_exceeded.py +3 -3
- wandelbots_api_client/models/feedback_out_of_workspace.py +2 -2
- wandelbots_api_client/models/feedback_singularity.py +3 -3
- wandelbots_api_client/models/flag.py +1 -1
- wandelbots_api_client/models/force_vector.py +3 -3
- wandelbots_api_client/models/geometry.py +11 -11
- wandelbots_api_client/models/get_all_program_runs200_response.py +1 -1
- wandelbots_api_client/models/get_all_triggers200_response.py +1 -1
- wandelbots_api_client/models/get_mode_response.py +1 -1
- wandelbots_api_client/models/get_trajectory_response.py +1 -1
- wandelbots_api_client/models/get_trajectory_sample_response.py +1 -1
- wandelbots_api_client/models/google_protobuf_any.py +1 -1
- wandelbots_api_client/models/http_exception_response.py +1 -1
- wandelbots_api_client/models/http_validation_error.py +1 -1
- wandelbots_api_client/models/http_validation_error2.py +1 -1
- wandelbots_api_client/models/image_credentials.py +3 -3
- wandelbots_api_client/models/info_service_capabilities.py +7 -7
- wandelbots_api_client/models/initialize_movement_request.py +5 -5
- wandelbots_api_client/models/initialize_movement_response.py +1 -1
- wandelbots_api_client/models/initialize_movement_response_init_response.py +2 -2
- wandelbots_api_client/models/io.py +5 -5
- wandelbots_api_client/models/io_description.py +9 -9
- wandelbots_api_client/models/io_value.py +4 -4
- wandelbots_api_client/models/ios.py +1 -1
- wandelbots_api_client/models/jogging_response.py +3 -3
- wandelbots_api_client/models/jogging_service_capabilities.py +2 -2
- wandelbots_api_client/models/joint_jogging_request.py +5 -5
- wandelbots_api_client/models/joint_limit.py +4 -4
- wandelbots_api_client/models/joint_limit_exceeded.py +2 -2
- wandelbots_api_client/models/joint_position_request.py +3 -3
- wandelbots_api_client/models/joint_trajectory.py +3 -3
- wandelbots_api_client/models/joints.py +1 -1
- wandelbots_api_client/models/kinematic_service_capabilities.py +3 -3
- wandelbots_api_client/models/kuka_controller.py +5 -5
- wandelbots_api_client/models/kuka_controller_rsi_server.py +2 -2
- wandelbots_api_client/models/license.py +10 -10
- wandelbots_api_client/models/license_status.py +2 -2
- wandelbots_api_client/models/limit_settings.py +12 -12
- wandelbots_api_client/models/limits_override.py +6 -6
- wandelbots_api_client/models/list_io_descriptions_response.py +1 -1
- wandelbots_api_client/models/list_io_values_response.py +1 -1
- wandelbots_api_client/models/list_payloads_response.py +1 -1
- wandelbots_api_client/models/list_program_metadata_response.py +1 -1
- wandelbots_api_client/models/list_recipe_metadata_response.py +1 -1
- wandelbots_api_client/models/list_response.py +1 -1
- wandelbots_api_client/models/list_tcps_response.py +1 -1
- wandelbots_api_client/models/mode_change_response.py +4 -4
- wandelbots_api_client/models/motion_command.py +3 -3
- wandelbots_api_client/models/motion_group_behavior_getter.py +1 -1
- wandelbots_api_client/models/motion_group_info.py +3 -3
- wandelbots_api_client/models/motion_group_infos.py +1 -1
- wandelbots_api_client/models/motion_group_instance.py +5 -5
- wandelbots_api_client/models/motion_group_instance_list.py +1 -1
- wandelbots_api_client/models/motion_group_joints.py +4 -4
- wandelbots_api_client/models/motion_group_physical.py +5 -5
- wandelbots_api_client/models/motion_group_specification.py +2 -2
- wandelbots_api_client/models/motion_group_state.py +12 -12
- wandelbots_api_client/models/motion_group_state_joint_limit_reached.py +1 -1
- wandelbots_api_client/models/motion_group_state_response.py +2 -2
- wandelbots_api_client/models/motion_id.py +1 -1
- wandelbots_api_client/models/motion_ids_list_response.py +1 -1
- wandelbots_api_client/models/motion_vector.py +3 -3
- wandelbots_api_client/models/mounting.py +2 -2
- wandelbots_api_client/models/move_request.py +8 -8
- wandelbots_api_client/models/move_response.py +2 -2
- wandelbots_api_client/models/move_to_trajectory_via_joint_ptp_request.py +4 -4
- wandelbots_api_client/models/movement.py +1 -1
- wandelbots_api_client/models/movement_error.py +1 -1
- wandelbots_api_client/models/movement_error_error.py +1 -1
- wandelbots_api_client/models/movement_movement.py +3 -3
- wandelbots_api_client/models/op_mode.py +1 -1
- wandelbots_api_client/models/opcua_node_value_trigger_config.py +3 -3
- wandelbots_api_client/models/optimizer_setup.py +7 -7
- wandelbots_api_client/models/out_of_workspace.py +1 -1
- wandelbots_api_client/models/path.py +1 -1
- wandelbots_api_client/models/path_cartesian_ptp.py +2 -2
- wandelbots_api_client/models/path_circle.py +3 -3
- wandelbots_api_client/models/path_cubic_spline.py +2 -2
- wandelbots_api_client/models/path_joint_ptp.py +2 -2
- wandelbots_api_client/models/path_line.py +2 -2
- wandelbots_api_client/models/pause_movement_request.py +2 -2
- wandelbots_api_client/models/pause_movement_response.py +1 -1
- wandelbots_api_client/models/pause_movement_response_pause_response.py +2 -2
- wandelbots_api_client/models/pause_on_io.py +2 -2
- wandelbots_api_client/models/payload.py +4 -4
- wandelbots_api_client/models/plan_collision_free_ptp_request.py +5 -5
- wandelbots_api_client/models/plan_failed_on_trajectory_response.py +9 -9
- wandelbots_api_client/models/plan_failed_response.py +7 -7
- wandelbots_api_client/models/plan_request.py +5 -5
- wandelbots_api_client/models/plan_response.py +3 -3
- wandelbots_api_client/models/plan_successful_response.py +2 -2
- wandelbots_api_client/models/plan_trajectory_failed_response.py +3 -3
- wandelbots_api_client/models/plan_trajectory_request.py +5 -5
- wandelbots_api_client/models/plan_trajectory_response.py +1 -1
- wandelbots_api_client/models/plane2.py +1 -1
- wandelbots_api_client/models/plane3.py +1 -1
- wandelbots_api_client/models/planned_motion.py +5 -5
- wandelbots_api_client/models/planner_pose.py +2 -2
- wandelbots_api_client/models/planning_limits.py +12 -12
- wandelbots_api_client/models/planning_limits_limit_range.py +2 -2
- wandelbots_api_client/models/playback_speed_request.py +2 -2
- wandelbots_api_client/models/playback_speed_response.py +1 -1
- wandelbots_api_client/models/playback_speed_response_playback_speed_response.py +1 -1
- wandelbots_api_client/models/point_cloud.py +1 -1
- wandelbots_api_client/models/pose.py +3 -3
- wandelbots_api_client/models/pose2.py +2 -2
- wandelbots_api_client/models/program_metadata.py +6 -6
- wandelbots_api_client/models/program_run.py +10 -10
- wandelbots_api_client/models/program_run_object.py +6 -6
- wandelbots_api_client/models/program_runner_reference.py +2 -2
- wandelbots_api_client/models/pyjectory_datatypes_core_pose.py +2 -2
- wandelbots_api_client/models/pyjectory_datatypes_serializer_orientation.py +1 -1
- wandelbots_api_client/models/pyjectory_datatypes_serializer_pose.py +1 -1
- wandelbots_api_client/models/pyjectory_datatypes_serializer_position.py +1 -1
- wandelbots_api_client/models/pyriphery_etcd_etcd_configuration.py +4 -4
- wandelbots_api_client/models/pyriphery_hardware_isaac_isaac_configuration.py +4 -4
- wandelbots_api_client/models/pyriphery_opcua_opcua_configuration.py +3 -3
- wandelbots_api_client/models/pyriphery_pyrae_controller_controller_configuration.py +6 -6
- wandelbots_api_client/models/pyriphery_pyrae_robot_robot_configuration.py +7 -7
- wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_input.py +4 -4
- wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_output.py +4 -4
- wandelbots_api_client/models/pyriphery_robotics_robotcell_timer_configuration.py +2 -2
- wandelbots_api_client/models/pyriphery_robotics_simulation_robot_with_view_open3d_configuration.py +3 -3
- wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_io_configuration.py +2 -2
- wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_opcua_configuration.py +2 -2
- wandelbots_api_client/models/quaternion.py +4 -4
- wandelbots_api_client/models/recipe_metadata.py +7 -7
- wandelbots_api_client/models/rectangle.py +2 -2
- wandelbots_api_client/models/rectangle2.py +3 -3
- wandelbots_api_client/models/rectangle3.py +3 -3
- wandelbots_api_client/models/rectangular_capsule.py +3 -3
- wandelbots_api_client/models/rectangular_capsule2.py +4 -4
- wandelbots_api_client/models/rectangular_capsule3.py +4 -4
- wandelbots_api_client/models/robot_controller.py +2 -2
- wandelbots_api_client/models/robot_controller_state.py +7 -7
- wandelbots_api_client/models/robot_link_geometry.py +2 -2
- wandelbots_api_client/models/robot_state.py +2 -2
- wandelbots_api_client/models/robot_tcp.py +4 -4
- wandelbots_api_client/models/robot_tcps.py +1 -1
- wandelbots_api_client/models/rotation_angles.py +2 -2
- wandelbots_api_client/models/safety_configuration.py +5 -5
- wandelbots_api_client/models/safety_setup.py +4 -4
- wandelbots_api_client/models/safety_setup_safety_settings.py +2 -2
- wandelbots_api_client/models/safety_setup_safety_zone.py +4 -4
- wandelbots_api_client/models/safety_zone.py +3 -3
- wandelbots_api_client/models/safety_zone_limits.py +2 -2
- wandelbots_api_client/models/safety_zone_violation.py +1 -1
- wandelbots_api_client/models/service_status.py +2 -2
- wandelbots_api_client/models/service_status_status.py +3 -3
- wandelbots_api_client/models/set_io.py +2 -2
- wandelbots_api_client/models/set_playback_speed.py +2 -2
- wandelbots_api_client/models/single_joint_limit.py +2 -2
- wandelbots_api_client/models/singularity.py +2 -2
- wandelbots_api_client/models/sphere.py +1 -1
- wandelbots_api_client/models/sphere2.py +2 -2
- wandelbots_api_client/models/sphere3.py +2 -2
- wandelbots_api_client/models/standstill.py +1 -1
- wandelbots_api_client/models/standstill_standstill.py +3 -3
- wandelbots_api_client/models/start_movement_request.py +5 -5
- wandelbots_api_client/models/start_on_io.py +2 -2
- wandelbots_api_client/models/status.py +3 -3
- wandelbots_api_client/models/stop_response.py +3 -3
- wandelbots_api_client/models/stream_move_backward.py +1 -1
- wandelbots_api_client/models/stream_move_forward.py +1 -1
- wandelbots_api_client/models/stream_move_playback_speed.py +1 -1
- wandelbots_api_client/models/stream_move_response.py +3 -3
- wandelbots_api_client/models/stream_move_to_trajectory.py +1 -1
- wandelbots_api_client/models/stream_stop.py +1 -1
- wandelbots_api_client/models/tcp_pose.py +4 -4
- wandelbots_api_client/models/tcp_pose_request.py +4 -4
- wandelbots_api_client/models/tool_geometry.py +2 -2
- wandelbots_api_client/models/trajectory_sample.py +11 -11
- wandelbots_api_client/models/trigger_object.py +8 -8
- wandelbots_api_client/models/universalrobots_controller.py +2 -2
- wandelbots_api_client/models/update_nova_version_request.py +1 -1
- wandelbots_api_client/models/update_program_metadata_request.py +3 -3
- wandelbots_api_client/models/update_recipe_metadata_request.py +3 -3
- wandelbots_api_client/models/update_trigger_request.py +3 -3
- wandelbots_api_client/models/validation_error.py +3 -3
- wandelbots_api_client/models/validation_error2.py +3 -3
- wandelbots_api_client/models/vector3d.py +3 -3
- wandelbots_api_client/models/version_number.py +8 -8
- wandelbots_api_client/models/virtual_controller.py +5 -5
- wandelbots_api_client/models/virtual_controller_types.py +3 -0
- wandelbots_api_client/models/virtual_robot_configuration.py +2 -2
- wandelbots_api_client/models/yaskawa_controller.py +2 -2
- wandelbots_api_client/v2/__init__.py +1 -1
- wandelbots_api_client/v2/api/application_api.py +9 -9
- wandelbots_api_client/v2/api/bus_inputs_outputs_api.py +928 -79
- wandelbots_api_client/v2/api/cell_api.py +6 -6
- wandelbots_api_client/v2/api/controller_api.py +33 -29
- wandelbots_api_client/v2/api/controller_inputs_outputs_api.py +12 -10
- wandelbots_api_client/v2/api/jogging_api.py +6 -3
- wandelbots_api_client/v2/api/kinematics_api.py +12 -13
- wandelbots_api_client/v2/api/license_api.py +6 -6
- wandelbots_api_client/v2/api/motion_group_api.py +8 -6
- wandelbots_api_client/v2/api/motion_group_models_api.py +11 -47
- wandelbots_api_client/v2/api/store_collision_components_api.py +799 -25
- wandelbots_api_client/v2/api/store_collision_setups_api.py +262 -4
- wandelbots_api_client/v2/api/store_object_api.py +9 -9
- wandelbots_api_client/v2/api/trajectory_caching_api.py +12 -12
- wandelbots_api_client/v2/api/trajectory_execution_api.py +6 -3
- wandelbots_api_client/v2/api/trajectory_planning_api.py +15 -16
- wandelbots_api_client/v2/api/virtual_controller_api.py +51 -36
- wandelbots_api_client/v2/api/virtual_controller_behavior_api.py +18 -9
- wandelbots_api_client/v2/api/virtual_controller_inputs_outputs_api.py +3 -3
- wandelbots_api_client/v2/api_client.py +1 -1
- wandelbots_api_client/v2/configuration.py +1 -1
- wandelbots_api_client/v2/models/__init__.py +44 -26
- wandelbots_api_client/v2/models/abb_controller.py +6 -9
- wandelbots_api_client/v2/models/abb_controller_egm_server.py +2 -2
- wandelbots_api_client/v2/models/activate_license_request.py +1 -1
- wandelbots_api_client/v2/models/add_trajectory_error.py +3 -3
- wandelbots_api_client/v2/models/add_trajectory_error_data.py +56 -56
- wandelbots_api_client/v2/models/add_trajectory_request.py +3 -3
- wandelbots_api_client/v2/models/add_trajectory_response.py +2 -2
- wandelbots_api_client/v2/models/app.py +9 -9
- wandelbots_api_client/v2/models/behavior.py +1 -1
- wandelbots_api_client/v2/models/blending_auto.py +4 -3
- wandelbots_api_client/v2/models/blending_position.py +2 -2
- wandelbots_api_client/v2/models/boolean_value.py +4 -7
- wandelbots_api_client/v2/models/box.py +5 -5
- wandelbots_api_client/v2/models/{io_description2.py → bus_io_description.py} +14 -14
- wandelbots_api_client/v2/models/bus_io_modbus_client.py +104 -0
- wandelbots_api_client/v2/models/bus_io_modbus_server.py +115 -0
- wandelbots_api_client/v2/models/bus_io_modbus_tcp_client.py +106 -0
- wandelbots_api_client/v2/models/bus_io_modbus_tcp_server.py +104 -0
- wandelbots_api_client/v2/models/bus_io_modbus_virtual.py +98 -0
- wandelbots_api_client/v2/models/bus_io_profinet.py +6 -9
- wandelbots_api_client/v2/models/bus_io_profinet_default_route.py +2 -2
- wandelbots_api_client/v2/models/bus_io_profinet_ip_config.py +3 -3
- wandelbots_api_client/v2/models/bus_io_profinet_network.py +3 -3
- wandelbots_api_client/v2/models/bus_io_profinet_virtual.py +3 -6
- wandelbots_api_client/v2/models/bus_io_type.py +80 -8
- wandelbots_api_client/v2/models/bus_ios_state.py +2 -2
- wandelbots_api_client/v2/models/capsule.py +3 -3
- wandelbots_api_client/v2/models/cartesian_limits.py +4 -4
- wandelbots_api_client/v2/models/cell.py +5 -5
- wandelbots_api_client/v2/models/collider.py +3 -3
- wandelbots_api_client/v2/models/collision.py +6 -6
- wandelbots_api_client/v2/models/collision_contact.py +2 -2
- wandelbots_api_client/v2/models/collision_error.py +1 -1
- wandelbots_api_client/v2/models/collision_setup.py +4 -4
- wandelbots_api_client/v2/models/configuration_archive_status_creating.py +2 -2
- wandelbots_api_client/v2/models/configuration_archive_status_error.py +2 -2
- wandelbots_api_client/v2/models/configuration_archive_status_success.py +1 -1
- wandelbots_api_client/v2/models/configuration_resource.py +3 -3
- wandelbots_api_client/v2/models/container_environment_inner.py +2 -2
- wandelbots_api_client/v2/models/container_image.py +3 -3
- wandelbots_api_client/v2/models/container_image_secrets_inner.py +1 -1
- wandelbots_api_client/v2/models/container_resources.py +2 -2
- wandelbots_api_client/v2/models/container_storage.py +2 -2
- wandelbots_api_client/v2/models/controller_description.py +4 -4
- wandelbots_api_client/v2/models/convex_hull.py +2 -2
- wandelbots_api_client/v2/models/coordinate_system.py +6 -6
- wandelbots_api_client/v2/models/coordinate_system_data.py +5 -5
- wandelbots_api_client/v2/models/cubic_spline_parameter.py +2 -2
- wandelbots_api_client/v2/models/cycle_time.py +3 -2
- wandelbots_api_client/v2/models/cylinder.py +3 -3
- wandelbots_api_client/v2/models/dh_parameter.py +5 -5
- wandelbots_api_client/v2/models/error.py +2 -2
- wandelbots_api_client/v2/models/error_invalid_joint_count.py +3 -3
- wandelbots_api_client/v2/models/error_joint_limit_exceeded.py +4 -3
- wandelbots_api_client/v2/models/error_joint_position_collision.py +4 -4
- wandelbots_api_client/v2/models/error_max_iterations_exceeded.py +2 -2
- wandelbots_api_client/v2/models/execute.py +2 -2
- wandelbots_api_client/v2/models/execute_jogging_request.py +28 -0
- wandelbots_api_client/v2/models/execute_jogging_response.py +25 -0
- wandelbots_api_client/v2/models/execute_trajectory_request.py +28 -0
- wandelbots_api_client/v2/models/execute_trajectory_response.py +25 -0
- wandelbots_api_client/v2/models/external_joint_stream_datapoint.py +2 -2
- wandelbots_api_client/v2/models/external_joint_stream_request.py +1 -1
- wandelbots_api_client/v2/models/fanuc_controller.py +4 -7
- wandelbots_api_client/v2/models/feedback_collision.py +4 -4
- wandelbots_api_client/v2/models/feedback_joint_limit_exceeded.py +5 -4
- wandelbots_api_client/v2/models/feedback_out_of_workspace.py +2 -2
- wandelbots_api_client/v2/models/feedback_singularity.py +3 -3
- wandelbots_api_client/v2/models/flag.py +1 -1
- wandelbots_api_client/v2/models/float_value.py +4 -7
- wandelbots_api_client/v2/models/forward_kinematics422_response.py +1 -1
- wandelbots_api_client/v2/models/forward_kinematics_request.py +4 -4
- wandelbots_api_client/v2/models/forward_kinematics_response.py +1 -1
- wandelbots_api_client/v2/models/forward_kinematics_validation_error.py +5 -5
- wandelbots_api_client/v2/models/get_trajectory_response.py +3 -3
- wandelbots_api_client/v2/models/http_validation_error.py +1 -1
- wandelbots_api_client/v2/models/image_credentials.py +3 -3
- wandelbots_api_client/v2/models/{inconsitent_trajectory_size.py → inconsistent_trajectory_size_error.py} +7 -7
- wandelbots_api_client/v2/models/{inconsitent_trajectory_size_inconsistent_trajectory_size.py → inconsistent_trajectory_size_error_inconsistent_trajectory_size.py} +7 -7
- wandelbots_api_client/v2/models/initialize_jogging_request.py +5 -8
- wandelbots_api_client/v2/models/initialize_jogging_response.py +2 -2
- wandelbots_api_client/v2/models/initialize_movement_request.py +5 -8
- wandelbots_api_client/v2/models/initialize_movement_response.py +3 -3
- wandelbots_api_client/v2/models/integer_value.py +4 -7
- wandelbots_api_client/v2/models/{invalid_dof.py → invalid_dof_error.py} +7 -7
- wandelbots_api_client/v2/models/{invalid_dof_invalid_dof.py → invalid_dof_error_invalid_dof.py} +6 -6
- wandelbots_api_client/v2/models/inverse_kinematics422_response.py +1 -1
- wandelbots_api_client/v2/models/inverse_kinematics_request.py +6 -6
- wandelbots_api_client/v2/models/inverse_kinematics_response.py +1 -1
- wandelbots_api_client/v2/models/inverse_kinematics_validation_error.py +5 -5
- wandelbots_api_client/v2/models/io_boolean_value.py +5 -8
- wandelbots_api_client/v2/models/{io_description_min.py → io_boundary.py} +8 -8
- wandelbots_api_client/v2/models/io_description.py +11 -11
- wandelbots_api_client/v2/models/io_float_value.py +5 -8
- wandelbots_api_client/v2/models/io_integer_value.py +5 -8
- wandelbots_api_client/v2/models/jogging_details.py +2 -2
- wandelbots_api_client/v2/models/jogging_paused_by_user.py +1 -1
- wandelbots_api_client/v2/models/jogging_paused_near_collision.py +2 -2
- wandelbots_api_client/v2/models/jogging_paused_near_joint_limit.py +4 -3
- wandelbots_api_client/v2/models/jogging_paused_on_io.py +1 -1
- wandelbots_api_client/v2/models/jogging_running.py +1 -1
- wandelbots_api_client/v2/models/{joint_limit_exceeded.py → joint_limit_exceeded_error.py} +5 -5
- wandelbots_api_client/v2/models/joint_limits.py +4 -4
- wandelbots_api_client/v2/models/joint_trajectory.py +3 -3
- wandelbots_api_client/v2/models/joint_velocity_request.py +4 -7
- wandelbots_api_client/v2/models/joint_velocity_response.py +2 -2
- wandelbots_api_client/v2/models/kuka_controller.py +6 -9
- wandelbots_api_client/v2/models/kuka_controller_rsi_server.py +2 -2
- wandelbots_api_client/v2/models/license.py +10 -10
- wandelbots_api_client/v2/models/license_status.py +2 -2
- wandelbots_api_client/v2/models/limit_range.py +2 -2
- wandelbots_api_client/v2/models/limit_set.py +5 -5
- wandelbots_api_client/v2/models/limits_override.py +6 -6
- wandelbots_api_client/v2/models/list_trajectories_response.py +1 -1
- wandelbots_api_client/v2/models/midpoint_insertion_algorithm.py +2 -2
- wandelbots_api_client/v2/models/modbus_io.py +105 -0
- wandelbots_api_client/v2/models/modbus_io_area.py +40 -0
- wandelbots_api_client/v2/models/modbus_io_byte_order.py +40 -0
- wandelbots_api_client/v2/models/{http_validation_error2.py → modbus_io_data.py} +21 -26
- wandelbots_api_client/v2/models/modbus_io_type_enum.py +39 -0
- wandelbots_api_client/v2/models/motion_command.py +3 -3
- wandelbots_api_client/v2/models/motion_group_description.py +12 -11
- wandelbots_api_client/v2/models/motion_group_info.py +5 -4
- wandelbots_api_client/v2/models/motion_group_joints.py +4 -4
- wandelbots_api_client/v2/models/motion_group_setup.py +9 -8
- wandelbots_api_client/v2/models/motion_group_state.py +16 -15
- wandelbots_api_client/v2/models/motion_group_state_joint_limit_reached.py +1 -1
- wandelbots_api_client/v2/models/movement_error_response.py +2 -2
- wandelbots_api_client/v2/models/{nan_value.py → nan_value_error.py} +7 -7
- wandelbots_api_client/v2/models/{nan_value_nan_value.py → nan_value_error_nan_value.py} +4 -4
- wandelbots_api_client/v2/models/op_mode.py +1 -1
- wandelbots_api_client/v2/models/operation_limits.py +4 -4
- wandelbots_api_client/v2/models/path_cartesian_ptp.py +2 -2
- wandelbots_api_client/v2/models/path_circle.py +3 -3
- wandelbots_api_client/v2/models/path_cubic_spline.py +2 -2
- wandelbots_api_client/v2/models/path_joint_ptp.py +2 -2
- wandelbots_api_client/v2/models/path_line.py +2 -2
- wandelbots_api_client/v2/models/pause_jogging_request.py +3 -6
- wandelbots_api_client/v2/models/pause_jogging_response.py +2 -2
- wandelbots_api_client/v2/models/pause_movement_request.py +3 -6
- wandelbots_api_client/v2/models/pause_movement_response.py +2 -2
- wandelbots_api_client/v2/models/pause_on_io.py +3 -3
- wandelbots_api_client/v2/models/payload.py +4 -4
- wandelbots_api_client/v2/models/plan422_response.py +1 -1
- wandelbots_api_client/v2/models/plan_collision_free_failed_response.py +1 -1
- wandelbots_api_client/v2/models/plan_collision_free_request.py +4 -4
- wandelbots_api_client/v2/models/plan_collision_free_response.py +1 -1
- wandelbots_api_client/v2/models/plan_trajectory_failed_response.py +3 -3
- wandelbots_api_client/v2/models/plan_trajectory_request.py +3 -3
- wandelbots_api_client/v2/models/plan_trajectory_response.py +1 -1
- wandelbots_api_client/v2/models/plan_validation_error.py +5 -5
- wandelbots_api_client/v2/models/plane.py +1 -1
- wandelbots_api_client/v2/models/playback_speed_request.py +6 -8
- wandelbots_api_client/v2/models/playback_speed_response.py +2 -2
- wandelbots_api_client/v2/models/pose.py +2 -2
- wandelbots_api_client/v2/models/profinet_description.py +5 -5
- wandelbots_api_client/v2/models/profinet_input_output_config.py +3 -3
- wandelbots_api_client/v2/models/profinet_io.py +8 -8
- wandelbots_api_client/v2/models/profinet_io_data.py +7 -7
- wandelbots_api_client/v2/models/profinet_io_direction.py +1 -1
- wandelbots_api_client/v2/models/profinet_slot_description.py +4 -4
- wandelbots_api_client/v2/models/profinet_sub_slot_description.py +3 -3
- wandelbots_api_client/v2/models/program.py +6 -6
- wandelbots_api_client/v2/models/program_run.py +14 -12
- wandelbots_api_client/v2/models/program_start_request.py +1 -1
- wandelbots_api_client/v2/models/rectangle.py +3 -3
- wandelbots_api_client/v2/models/rectangular_capsule.py +4 -4
- wandelbots_api_client/v2/models/robot_controller.py +2 -2
- wandelbots_api_client/v2/models/robot_controller_state.py +11 -10
- wandelbots_api_client/v2/models/robot_tcp.py +5 -5
- wandelbots_api_client/v2/models/robot_tcp_data.py +4 -4
- wandelbots_api_client/v2/models/rrt_connect_algorithm.py +6 -6
- wandelbots_api_client/v2/models/service_status.py +3 -3
- wandelbots_api_client/v2/models/service_status_response.py +2 -2
- wandelbots_api_client/v2/models/service_status_status.py +3 -3
- wandelbots_api_client/v2/models/set_io.py +3 -3
- wandelbots_api_client/v2/models/sphere.py +2 -2
- wandelbots_api_client/v2/models/start_movement_request.py +11 -12
- wandelbots_api_client/v2/models/start_movement_response.py +2 -2
- wandelbots_api_client/v2/models/start_on_io.py +3 -3
- wandelbots_api_client/v2/models/stream_io_values_response.py +5 -4
- wandelbots_api_client/v2/models/tcp_offset.py +2 -2
- wandelbots_api_client/v2/models/{tcp_required.py → tcp_required_error.py} +4 -4
- wandelbots_api_client/v2/models/tcp_velocity_request.py +5 -8
- wandelbots_api_client/v2/models/tcp_velocity_response.py +2 -2
- wandelbots_api_client/v2/models/{torque_exceeded.py → torque_exceeded_error.py} +7 -7
- wandelbots_api_client/v2/models/{torque_exceeded_torque_exceeded.py → torque_exceeded_error_torque_exceeded.py} +6 -6
- wandelbots_api_client/v2/models/trajectory_data.py +5 -5
- wandelbots_api_client/v2/models/trajectory_details.py +4 -4
- wandelbots_api_client/v2/models/trajectory_ended.py +1 -1
- wandelbots_api_client/v2/models/trajectory_id.py +3 -3
- wandelbots_api_client/v2/models/trajectory_paused_by_user.py +1 -1
- wandelbots_api_client/v2/models/trajectory_paused_on_io.py +1 -1
- wandelbots_api_client/v2/models/trajectory_running.py +4 -3
- wandelbots_api_client/v2/models/trajectory_wait_for_io.py +1 -1
- wandelbots_api_client/v2/models/universalrobots_controller.py +4 -7
- wandelbots_api_client/v2/models/update_nova_version_request.py +1 -1
- wandelbots_api_client/v2/models/validation_error.py +4 -4
- wandelbots_api_client/v2/models/validation_error2.py +3 -3
- wandelbots_api_client/v2/models/virtual_controller.py +6 -9
- wandelbots_api_client/v2/models/virtual_controller_types.py +3 -0
- wandelbots_api_client/v2/models/virtual_robot_configuration.py +2 -2
- wandelbots_api_client/v2/models/wait_for_io_event_request.py +2 -2
- wandelbots_api_client/v2/models/yaskawa_controller.py +4 -7
- wandelbots_api_client/v2_pydantic/__init__.py +51 -0
- wandelbots_api_client/v2_pydantic/api/__init__.py +49 -0
- wandelbots_api_client/v2_pydantic/api/application_api.py +1822 -0
- wandelbots_api_client/v2_pydantic/api/bus_inputs_outputs_api.py +4652 -0
- wandelbots_api_client/v2_pydantic/api/cell_api.py +2025 -0
- wandelbots_api_client/v2_pydantic/api/controller_api.py +3758 -0
- wandelbots_api_client/v2_pydantic/api/controller_inputs_outputs_api.py +1408 -0
- wandelbots_api_client/v2_pydantic/api/jogging_api.py +126 -0
- wandelbots_api_client/v2_pydantic/api/kinematics_api.py +649 -0
- wandelbots_api_client/v2_pydantic/api/license_api.py +1074 -0
- wandelbots_api_client/v2_pydantic/api/motion_group_api.py +740 -0
- wandelbots_api_client/v2_pydantic/api/motion_group_models_api.py +570 -0
- wandelbots_api_client/v2_pydantic/api/program_api.py +1200 -0
- wandelbots_api_client/v2_pydantic/api/store_collision_components_api.py +4216 -0
- wandelbots_api_client/v2_pydantic/api/store_collision_setups_api.py +1435 -0
- wandelbots_api_client/v2_pydantic/api/store_object_api.py +1738 -0
- wandelbots_api_client/v2_pydantic/api/system_api.py +2454 -0
- wandelbots_api_client/v2_pydantic/api/trajectory_caching_api.py +1524 -0
- wandelbots_api_client/v2_pydantic/api/trajectory_execution_api.py +126 -0
- wandelbots_api_client/v2_pydantic/api/trajectory_planning_api.py +649 -0
- wandelbots_api_client/v2_pydantic/api/virtual_controller_api.py +4656 -0
- wandelbots_api_client/v2_pydantic/api/virtual_controller_behavior_api.py +1001 -0
- wandelbots_api_client/v2_pydantic/api/virtual_controller_inputs_outputs_api.py +1022 -0
- wandelbots_api_client/v2_pydantic/api_client.py +810 -0
- wandelbots_api_client/v2_pydantic/api_response.py +21 -0
- wandelbots_api_client/v2_pydantic/configuration.py +595 -0
- wandelbots_api_client/v2_pydantic/exceptions.py +216 -0
- wandelbots_api_client/v2_pydantic/models.py +4547 -0
- wandelbots_api_client/v2_pydantic/py.typed +0 -0
- wandelbots_api_client/v2_pydantic/rest.py +212 -0
- {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/METADATA +16 -15
- wandelbots_api_client-25.10.0.dev47.dist-info/RECORD +636 -0
- wandelbots_api_client-25.8.0.dev88.dist-info/RECORD +0 -597
- {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/WHEEL +0 -0
- {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/licenses/LICENSE +0 -0
- {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0 beta
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from furl import furl
|
|
16
|
+
import json
|
|
17
|
+
import humps
|
|
18
|
+
import re
|
|
19
|
+
import warnings
|
|
20
|
+
import websockets
|
|
21
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
22
|
+
from typing import Any, AsyncGenerator, Callable, Dict, List, Optional, Tuple, Union
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from urllib.parse import quote
|
|
25
|
+
|
|
26
|
+
from pydantic import Field, StrictStr
|
|
27
|
+
from typing import Optional
|
|
28
|
+
from typing_extensions import Annotated
|
|
29
|
+
from wandelbots_api_client.v2_pydantic.models import MotionGroupDescription
|
|
30
|
+
from wandelbots_api_client.v2_pydantic.models import MotionGroupState
|
|
31
|
+
|
|
32
|
+
from wandelbots_api_client.v2_pydantic.api_client import ApiClient, RequestSerialized
|
|
33
|
+
from wandelbots_api_client.v2_pydantic.api_response import ApiResponse
|
|
34
|
+
from wandelbots_api_client.v2_pydantic.rest import RESTResponseType
|
|
35
|
+
|
|
36
|
+
class MotionGroupApi:
|
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
+
Ref: https://openapi-generator.tech
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self, api_client=None) -> None:
|
|
44
|
+
if api_client is None:
|
|
45
|
+
api_client = ApiClient.get_default()
|
|
46
|
+
self.api_client = api_client
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
async def get_current_motion_group_state(
|
|
50
|
+
self,
|
|
51
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
52
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
53
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
54
|
+
response_coordinate_system: Annotated[Optional[StrictStr], Field(description="Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used. ")] = None,
|
|
55
|
+
_request_timeout: Union[
|
|
56
|
+
None,
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Tuple[
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
61
|
+
]
|
|
62
|
+
] = None,
|
|
63
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_content_type: Optional[StrictStr] = None,
|
|
65
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
|
+
) -> MotionGroupState:
|
|
68
|
+
"""State
|
|
69
|
+
|
|
70
|
+
Returns the current state of the selected motion group including the current joint position, velocity, pose, and more.
|
|
71
|
+
|
|
72
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
73
|
+
:type cell: str
|
|
74
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
75
|
+
:type controller: str
|
|
76
|
+
:param motion_group: The motion-group identifier. (required)
|
|
77
|
+
:type motion_group: str
|
|
78
|
+
:param response_coordinate_system: Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used.
|
|
79
|
+
:type response_coordinate_system: str
|
|
80
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
81
|
+
number provided, it will be total request
|
|
82
|
+
timeout. It can also be a pair (tuple) of
|
|
83
|
+
(connection, read) timeouts.
|
|
84
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
85
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
86
|
+
request; this effectively ignores the
|
|
87
|
+
authentication in the spec for a single request.
|
|
88
|
+
:type _request_auth: dict, optional
|
|
89
|
+
:param _content_type: force content-type for the request.
|
|
90
|
+
:type _content_type: str, Optional
|
|
91
|
+
:param _headers: set to override the headers for a single
|
|
92
|
+
request; this effectively ignores the headers
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _headers: dict, optional
|
|
95
|
+
:param _host_index: set to override the host_index for a single
|
|
96
|
+
request; this effectively ignores the host_index
|
|
97
|
+
in the spec for a single request.
|
|
98
|
+
:type _host_index: int, optional
|
|
99
|
+
:return: Returns the result object.
|
|
100
|
+
""" # noqa: E501
|
|
101
|
+
|
|
102
|
+
_param = self._get_current_motion_group_state_serialize(
|
|
103
|
+
cell=cell,
|
|
104
|
+
controller=controller,
|
|
105
|
+
motion_group=motion_group,
|
|
106
|
+
response_coordinate_system=response_coordinate_system,
|
|
107
|
+
_request_auth=_request_auth,
|
|
108
|
+
_content_type=_content_type,
|
|
109
|
+
_headers=_headers,
|
|
110
|
+
_host_index=_host_index
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
114
|
+
'200': "MotionGroupState",
|
|
115
|
+
'400': "Error",
|
|
116
|
+
'404': "Error",
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
response_data = await self.api_client.call_api(
|
|
121
|
+
*_param,
|
|
122
|
+
_request_timeout=_request_timeout
|
|
123
|
+
)
|
|
124
|
+
await response_data.read()
|
|
125
|
+
return self.api_client.response_deserialize(
|
|
126
|
+
response_data=response_data,
|
|
127
|
+
response_types_map=_response_types_map,
|
|
128
|
+
).data
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@validate_call
|
|
132
|
+
async def get_current_motion_group_state_with_http_info(
|
|
133
|
+
self,
|
|
134
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
135
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
136
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
137
|
+
response_coordinate_system: Annotated[Optional[StrictStr], Field(description="Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used. ")] = None,
|
|
138
|
+
_request_timeout: Union[
|
|
139
|
+
None,
|
|
140
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
141
|
+
Tuple[
|
|
142
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
143
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
144
|
+
]
|
|
145
|
+
] = None,
|
|
146
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
147
|
+
_content_type: Optional[StrictStr] = None,
|
|
148
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
149
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
150
|
+
) -> ApiResponse[MotionGroupState]:
|
|
151
|
+
"""State
|
|
152
|
+
|
|
153
|
+
Returns the current state of the selected motion group including the current joint position, velocity, pose, and more.
|
|
154
|
+
|
|
155
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
156
|
+
:type cell: str
|
|
157
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
158
|
+
:type controller: str
|
|
159
|
+
:param motion_group: The motion-group identifier. (required)
|
|
160
|
+
:type motion_group: str
|
|
161
|
+
:param response_coordinate_system: Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used.
|
|
162
|
+
:type response_coordinate_system: str
|
|
163
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
164
|
+
number provided, it will be total request
|
|
165
|
+
timeout. It can also be a pair (tuple) of
|
|
166
|
+
(connection, read) timeouts.
|
|
167
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
168
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
169
|
+
request; this effectively ignores the
|
|
170
|
+
authentication in the spec for a single request.
|
|
171
|
+
:type _request_auth: dict, optional
|
|
172
|
+
:param _content_type: force content-type for the request.
|
|
173
|
+
:type _content_type: str, Optional
|
|
174
|
+
:param _headers: set to override the headers for a single
|
|
175
|
+
request; this effectively ignores the headers
|
|
176
|
+
in the spec for a single request.
|
|
177
|
+
:type _headers: dict, optional
|
|
178
|
+
:param _host_index: set to override the host_index for a single
|
|
179
|
+
request; this effectively ignores the host_index
|
|
180
|
+
in the spec for a single request.
|
|
181
|
+
:type _host_index: int, optional
|
|
182
|
+
:return: Returns the result object.
|
|
183
|
+
""" # noqa: E501
|
|
184
|
+
|
|
185
|
+
_param = self._get_current_motion_group_state_serialize(
|
|
186
|
+
cell=cell,
|
|
187
|
+
controller=controller,
|
|
188
|
+
motion_group=motion_group,
|
|
189
|
+
response_coordinate_system=response_coordinate_system,
|
|
190
|
+
_request_auth=_request_auth,
|
|
191
|
+
_content_type=_content_type,
|
|
192
|
+
_headers=_headers,
|
|
193
|
+
_host_index=_host_index
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
197
|
+
'200': "MotionGroupState",
|
|
198
|
+
'400': "Error",
|
|
199
|
+
'404': "Error",
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
response_data = await self.api_client.call_api(
|
|
204
|
+
*_param,
|
|
205
|
+
_request_timeout=_request_timeout
|
|
206
|
+
)
|
|
207
|
+
await response_data.read()
|
|
208
|
+
return self.api_client.response_deserialize(
|
|
209
|
+
response_data=response_data,
|
|
210
|
+
response_types_map=_response_types_map,
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
@validate_call
|
|
215
|
+
async def get_current_motion_group_state_without_preload_content(
|
|
216
|
+
self,
|
|
217
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
218
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
219
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
220
|
+
response_coordinate_system: Annotated[Optional[StrictStr], Field(description="Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used. ")] = None,
|
|
221
|
+
_request_timeout: Union[
|
|
222
|
+
None,
|
|
223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
224
|
+
Tuple[
|
|
225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
227
|
+
]
|
|
228
|
+
] = None,
|
|
229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
230
|
+
_content_type: Optional[StrictStr] = None,
|
|
231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
233
|
+
) -> RESTResponseType:
|
|
234
|
+
"""State
|
|
235
|
+
|
|
236
|
+
Returns the current state of the selected motion group including the current joint position, velocity, pose, and more.
|
|
237
|
+
|
|
238
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
239
|
+
:type cell: str
|
|
240
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
241
|
+
:type controller: str
|
|
242
|
+
:param motion_group: The motion-group identifier. (required)
|
|
243
|
+
:type motion_group: str
|
|
244
|
+
:param response_coordinate_system: Unique identifier addressing a coordinate system to which the responses should be converted. If not set, world coordinate system is used.
|
|
245
|
+
:type response_coordinate_system: str
|
|
246
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
247
|
+
number provided, it will be total request
|
|
248
|
+
timeout. It can also be a pair (tuple) of
|
|
249
|
+
(connection, read) timeouts.
|
|
250
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
251
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
252
|
+
request; this effectively ignores the
|
|
253
|
+
authentication in the spec for a single request.
|
|
254
|
+
:type _request_auth: dict, optional
|
|
255
|
+
:param _content_type: force content-type for the request.
|
|
256
|
+
:type _content_type: str, Optional
|
|
257
|
+
:param _headers: set to override the headers for a single
|
|
258
|
+
request; this effectively ignores the headers
|
|
259
|
+
in the spec for a single request.
|
|
260
|
+
:type _headers: dict, optional
|
|
261
|
+
:param _host_index: set to override the host_index for a single
|
|
262
|
+
request; this effectively ignores the host_index
|
|
263
|
+
in the spec for a single request.
|
|
264
|
+
:type _host_index: int, optional
|
|
265
|
+
:return: Returns the result object.
|
|
266
|
+
""" # noqa: E501
|
|
267
|
+
|
|
268
|
+
_param = self._get_current_motion_group_state_serialize(
|
|
269
|
+
cell=cell,
|
|
270
|
+
controller=controller,
|
|
271
|
+
motion_group=motion_group,
|
|
272
|
+
response_coordinate_system=response_coordinate_system,
|
|
273
|
+
_request_auth=_request_auth,
|
|
274
|
+
_content_type=_content_type,
|
|
275
|
+
_headers=_headers,
|
|
276
|
+
_host_index=_host_index
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
280
|
+
'200': "MotionGroupState",
|
|
281
|
+
'400': "Error",
|
|
282
|
+
'404': "Error",
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
response_data = await self.api_client.call_api(
|
|
287
|
+
*_param,
|
|
288
|
+
_request_timeout=_request_timeout
|
|
289
|
+
)
|
|
290
|
+
return response_data.response
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
def _get_current_motion_group_state_serialize(
|
|
294
|
+
self,
|
|
295
|
+
cell,
|
|
296
|
+
controller,
|
|
297
|
+
motion_group,
|
|
298
|
+
response_coordinate_system,
|
|
299
|
+
_request_auth,
|
|
300
|
+
_content_type,
|
|
301
|
+
_headers,
|
|
302
|
+
_host_index,
|
|
303
|
+
) -> RequestSerialized:
|
|
304
|
+
|
|
305
|
+
_host = None
|
|
306
|
+
|
|
307
|
+
_collection_formats: Dict[str, str] = {
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
_path_params: Dict[str, str] = {}
|
|
311
|
+
_query_params: List[Tuple[str, str]] = []
|
|
312
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
313
|
+
_form_params: List[Tuple[str, str]] = []
|
|
314
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
315
|
+
_body_params: Optional[bytes] = None
|
|
316
|
+
|
|
317
|
+
# process the path parameters
|
|
318
|
+
if cell is not None:
|
|
319
|
+
_path_params['cell'] = cell
|
|
320
|
+
if controller is not None:
|
|
321
|
+
_path_params['controller'] = controller
|
|
322
|
+
if motion_group is not None:
|
|
323
|
+
_path_params['motion-group'] = motion_group
|
|
324
|
+
# process the query parameters
|
|
325
|
+
if response_coordinate_system is not None:
|
|
326
|
+
|
|
327
|
+
_query_params.append(('response_coordinate_system', response_coordinate_system))
|
|
328
|
+
|
|
329
|
+
# process the header parameters
|
|
330
|
+
# process the form parameters
|
|
331
|
+
# process the body parameter
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
# set the HTTP header `Accept`
|
|
335
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
336
|
+
[
|
|
337
|
+
'application/json'
|
|
338
|
+
]
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
# authentication setting
|
|
343
|
+
_auth_settings: List[str] = [
|
|
344
|
+
'BasicAuth',
|
|
345
|
+
'BearerAuth'
|
|
346
|
+
]
|
|
347
|
+
|
|
348
|
+
return self.api_client.param_serialize(
|
|
349
|
+
method='GET',
|
|
350
|
+
resource_path='/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state',
|
|
351
|
+
path_params=_path_params,
|
|
352
|
+
query_params=_query_params,
|
|
353
|
+
header_params=_header_params,
|
|
354
|
+
body=_body_params,
|
|
355
|
+
post_params=_form_params,
|
|
356
|
+
files=_files,
|
|
357
|
+
auth_settings=_auth_settings,
|
|
358
|
+
collection_formats=_collection_formats,
|
|
359
|
+
_host=_host,
|
|
360
|
+
_request_auth=_request_auth
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
@validate_call
|
|
366
|
+
async def get_motion_group_description(
|
|
367
|
+
self,
|
|
368
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
369
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
370
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
371
|
+
_request_timeout: Union[
|
|
372
|
+
None,
|
|
373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
+
Tuple[
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
+
]
|
|
378
|
+
] = None,
|
|
379
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
+
_content_type: Optional[StrictStr] = None,
|
|
381
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
383
|
+
) -> MotionGroupDescription:
|
|
384
|
+
"""Description
|
|
385
|
+
|
|
386
|
+
Get the set of parameters that describe the motion group and its configuration including safety zones, limits, etc. This data can change upon connection to the robot.
|
|
387
|
+
|
|
388
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
389
|
+
:type cell: str
|
|
390
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
391
|
+
:type controller: str
|
|
392
|
+
:param motion_group: The motion-group identifier. (required)
|
|
393
|
+
:type motion_group: str
|
|
394
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
395
|
+
number provided, it will be total request
|
|
396
|
+
timeout. It can also be a pair (tuple) of
|
|
397
|
+
(connection, read) timeouts.
|
|
398
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
399
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
400
|
+
request; this effectively ignores the
|
|
401
|
+
authentication in the spec for a single request.
|
|
402
|
+
:type _request_auth: dict, optional
|
|
403
|
+
:param _content_type: force content-type for the request.
|
|
404
|
+
:type _content_type: str, Optional
|
|
405
|
+
:param _headers: set to override the headers for a single
|
|
406
|
+
request; this effectively ignores the headers
|
|
407
|
+
in the spec for a single request.
|
|
408
|
+
:type _headers: dict, optional
|
|
409
|
+
:param _host_index: set to override the host_index for a single
|
|
410
|
+
request; this effectively ignores the host_index
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _host_index: int, optional
|
|
413
|
+
:return: Returns the result object.
|
|
414
|
+
""" # noqa: E501
|
|
415
|
+
|
|
416
|
+
_param = self._get_motion_group_description_serialize(
|
|
417
|
+
cell=cell,
|
|
418
|
+
controller=controller,
|
|
419
|
+
motion_group=motion_group,
|
|
420
|
+
_request_auth=_request_auth,
|
|
421
|
+
_content_type=_content_type,
|
|
422
|
+
_headers=_headers,
|
|
423
|
+
_host_index=_host_index
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
427
|
+
'200': "MotionGroupDescription",
|
|
428
|
+
'400': "Error",
|
|
429
|
+
'404': "Error",
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
response_data = await self.api_client.call_api(
|
|
434
|
+
*_param,
|
|
435
|
+
_request_timeout=_request_timeout
|
|
436
|
+
)
|
|
437
|
+
await response_data.read()
|
|
438
|
+
return self.api_client.response_deserialize(
|
|
439
|
+
response_data=response_data,
|
|
440
|
+
response_types_map=_response_types_map,
|
|
441
|
+
).data
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
@validate_call
|
|
445
|
+
async def get_motion_group_description_with_http_info(
|
|
446
|
+
self,
|
|
447
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
448
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
449
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
450
|
+
_request_timeout: Union[
|
|
451
|
+
None,
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
453
|
+
Tuple[
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
456
|
+
]
|
|
457
|
+
] = None,
|
|
458
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
459
|
+
_content_type: Optional[StrictStr] = None,
|
|
460
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
461
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
462
|
+
) -> ApiResponse[MotionGroupDescription]:
|
|
463
|
+
"""Description
|
|
464
|
+
|
|
465
|
+
Get the set of parameters that describe the motion group and its configuration including safety zones, limits, etc. This data can change upon connection to the robot.
|
|
466
|
+
|
|
467
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
468
|
+
:type cell: str
|
|
469
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
470
|
+
:type controller: str
|
|
471
|
+
:param motion_group: The motion-group identifier. (required)
|
|
472
|
+
:type motion_group: str
|
|
473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
474
|
+
number provided, it will be total request
|
|
475
|
+
timeout. It can also be a pair (tuple) of
|
|
476
|
+
(connection, read) timeouts.
|
|
477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
479
|
+
request; this effectively ignores the
|
|
480
|
+
authentication in the spec for a single request.
|
|
481
|
+
:type _request_auth: dict, optional
|
|
482
|
+
:param _content_type: force content-type for the request.
|
|
483
|
+
:type _content_type: str, Optional
|
|
484
|
+
:param _headers: set to override the headers for a single
|
|
485
|
+
request; this effectively ignores the headers
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _headers: dict, optional
|
|
488
|
+
:param _host_index: set to override the host_index for a single
|
|
489
|
+
request; this effectively ignores the host_index
|
|
490
|
+
in the spec for a single request.
|
|
491
|
+
:type _host_index: int, optional
|
|
492
|
+
:return: Returns the result object.
|
|
493
|
+
""" # noqa: E501
|
|
494
|
+
|
|
495
|
+
_param = self._get_motion_group_description_serialize(
|
|
496
|
+
cell=cell,
|
|
497
|
+
controller=controller,
|
|
498
|
+
motion_group=motion_group,
|
|
499
|
+
_request_auth=_request_auth,
|
|
500
|
+
_content_type=_content_type,
|
|
501
|
+
_headers=_headers,
|
|
502
|
+
_host_index=_host_index
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
+
'200': "MotionGroupDescription",
|
|
507
|
+
'400': "Error",
|
|
508
|
+
'404': "Error",
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
response_data = await self.api_client.call_api(
|
|
513
|
+
*_param,
|
|
514
|
+
_request_timeout=_request_timeout
|
|
515
|
+
)
|
|
516
|
+
await response_data.read()
|
|
517
|
+
return self.api_client.response_deserialize(
|
|
518
|
+
response_data=response_data,
|
|
519
|
+
response_types_map=_response_types_map,
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
@validate_call
|
|
524
|
+
async def get_motion_group_description_without_preload_content(
|
|
525
|
+
self,
|
|
526
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
527
|
+
controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")],
|
|
528
|
+
motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")],
|
|
529
|
+
_request_timeout: Union[
|
|
530
|
+
None,
|
|
531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
532
|
+
Tuple[
|
|
533
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
534
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
535
|
+
]
|
|
536
|
+
] = None,
|
|
537
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
538
|
+
_content_type: Optional[StrictStr] = None,
|
|
539
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
540
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
541
|
+
) -> RESTResponseType:
|
|
542
|
+
"""Description
|
|
543
|
+
|
|
544
|
+
Get the set of parameters that describe the motion group and its configuration including safety zones, limits, etc. This data can change upon connection to the robot.
|
|
545
|
+
|
|
546
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
547
|
+
:type cell: str
|
|
548
|
+
:param controller: Unique identifier to address a controller in the cell. (required)
|
|
549
|
+
:type controller: str
|
|
550
|
+
:param motion_group: The motion-group identifier. (required)
|
|
551
|
+
:type motion_group: str
|
|
552
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
553
|
+
number provided, it will be total request
|
|
554
|
+
timeout. It can also be a pair (tuple) of
|
|
555
|
+
(connection, read) timeouts.
|
|
556
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
557
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
558
|
+
request; this effectively ignores the
|
|
559
|
+
authentication in the spec for a single request.
|
|
560
|
+
:type _request_auth: dict, optional
|
|
561
|
+
:param _content_type: force content-type for the request.
|
|
562
|
+
:type _content_type: str, Optional
|
|
563
|
+
:param _headers: set to override the headers for a single
|
|
564
|
+
request; this effectively ignores the headers
|
|
565
|
+
in the spec for a single request.
|
|
566
|
+
:type _headers: dict, optional
|
|
567
|
+
:param _host_index: set to override the host_index for a single
|
|
568
|
+
request; this effectively ignores the host_index
|
|
569
|
+
in the spec for a single request.
|
|
570
|
+
:type _host_index: int, optional
|
|
571
|
+
:return: Returns the result object.
|
|
572
|
+
""" # noqa: E501
|
|
573
|
+
|
|
574
|
+
_param = self._get_motion_group_description_serialize(
|
|
575
|
+
cell=cell,
|
|
576
|
+
controller=controller,
|
|
577
|
+
motion_group=motion_group,
|
|
578
|
+
_request_auth=_request_auth,
|
|
579
|
+
_content_type=_content_type,
|
|
580
|
+
_headers=_headers,
|
|
581
|
+
_host_index=_host_index
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
585
|
+
'200': "MotionGroupDescription",
|
|
586
|
+
'400': "Error",
|
|
587
|
+
'404': "Error",
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
response_data = await self.api_client.call_api(
|
|
592
|
+
*_param,
|
|
593
|
+
_request_timeout=_request_timeout
|
|
594
|
+
)
|
|
595
|
+
return response_data.response
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
def _get_motion_group_description_serialize(
|
|
599
|
+
self,
|
|
600
|
+
cell,
|
|
601
|
+
controller,
|
|
602
|
+
motion_group,
|
|
603
|
+
_request_auth,
|
|
604
|
+
_content_type,
|
|
605
|
+
_headers,
|
|
606
|
+
_host_index,
|
|
607
|
+
) -> RequestSerialized:
|
|
608
|
+
|
|
609
|
+
_host = None
|
|
610
|
+
|
|
611
|
+
_collection_formats: Dict[str, str] = {
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
_path_params: Dict[str, str] = {}
|
|
615
|
+
_query_params: List[Tuple[str, str]] = []
|
|
616
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
617
|
+
_form_params: List[Tuple[str, str]] = []
|
|
618
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
619
|
+
_body_params: Optional[bytes] = None
|
|
620
|
+
|
|
621
|
+
# process the path parameters
|
|
622
|
+
if cell is not None:
|
|
623
|
+
_path_params['cell'] = cell
|
|
624
|
+
if controller is not None:
|
|
625
|
+
_path_params['controller'] = controller
|
|
626
|
+
if motion_group is not None:
|
|
627
|
+
_path_params['motion-group'] = motion_group
|
|
628
|
+
# process the query parameters
|
|
629
|
+
# process the header parameters
|
|
630
|
+
# process the form parameters
|
|
631
|
+
# process the body parameter
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
# set the HTTP header `Accept`
|
|
635
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
636
|
+
[
|
|
637
|
+
'application/json'
|
|
638
|
+
]
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
# authentication setting
|
|
643
|
+
_auth_settings: List[str] = [
|
|
644
|
+
'BasicAuth',
|
|
645
|
+
'BearerAuth'
|
|
646
|
+
]
|
|
647
|
+
|
|
648
|
+
return self.api_client.param_serialize(
|
|
649
|
+
method='GET',
|
|
650
|
+
resource_path='/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/description',
|
|
651
|
+
path_params=_path_params,
|
|
652
|
+
query_params=_query_params,
|
|
653
|
+
header_params=_header_params,
|
|
654
|
+
body=_body_params,
|
|
655
|
+
post_params=_form_params,
|
|
656
|
+
files=_files,
|
|
657
|
+
auth_settings=_auth_settings,
|
|
658
|
+
collection_formats=_collection_formats,
|
|
659
|
+
_host=_host,
|
|
660
|
+
_request_auth=_request_auth
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
@validate_call
|
|
666
|
+
async def stream_motion_group_state(self, cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")], controller: Annotated[StrictStr, Field(description="Unique identifier to address a controller in the cell.")], motion_group: Annotated[StrictStr, Field(description="The motion-group identifier.")], response_rate: Annotated[Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]], Field(description="Update rate for the response message in milliseconds (ms). Default is 200 ms. We recommend to use the step rate of the controller or a multiple of the step rate as NOVA updates the state in the controller's step rate as well. Minimal response rate is the step rate of controller.")] = None, response_coordinate_system: Annotated[Optional[StrictStr], Field(description="Unique identifier addressing a coordinate system to which the cartesian data of the responses should be converted. Default is the world coordinate system. ")] = None) -> AsyncGenerator[MotionGroupState, None]: # noqa: E501
|
|
667
|
+
"""Stream State # noqa: E501
|
|
668
|
+
|
|
669
|
+
<!-- theme: success --> > Websocket endpoint Receive updates of the motion group state. The stream will be closed from the server if the controller is disconnected. # noqa: E501
|
|
670
|
+
:param request: A StreamMotionGroupStateRequest
|
|
671
|
+
:info All responses from the server will be yielded
|
|
672
|
+
:type StreamMotionGroupStateRequest
|
|
673
|
+
"""
|
|
674
|
+
def format_path_parameters(path):
|
|
675
|
+
# Find all substrings that are enclosed in brackets
|
|
676
|
+
bracket_contents = re.findall(r'\{(.*?)\}', path)
|
|
677
|
+
|
|
678
|
+
# For each found substring, replace underscores with spaces
|
|
679
|
+
for content in bracket_contents:
|
|
680
|
+
content = "{" + content + "}"
|
|
681
|
+
modified_content = humps.dekebabize(content)
|
|
682
|
+
path = path.replace(content, modified_content)
|
|
683
|
+
|
|
684
|
+
return path
|
|
685
|
+
|
|
686
|
+
def append_parameter_connector(url_schema):
|
|
687
|
+
if not "?" in url_schema:
|
|
688
|
+
url_schema += "?"
|
|
689
|
+
else:
|
|
690
|
+
url_schema += "&"
|
|
691
|
+
return url_schema
|
|
692
|
+
|
|
693
|
+
path = format_path_parameters("/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state-stream")
|
|
694
|
+
path = path.format(cell=cell,controller=controller,motion_group=motion_group,)
|
|
695
|
+
|
|
696
|
+
headers = websockets.Headers()
|
|
697
|
+
tmp_host = self.api_client.configuration.host
|
|
698
|
+
if self.api_client.configuration.host.startswith("https://"):
|
|
699
|
+
# Basic Auth
|
|
700
|
+
if self.api_client.configuration.username:
|
|
701
|
+
tmp_host = self.api_client.configuration.host.replace("https://", "")
|
|
702
|
+
tmp_host = f"wss://{self.api_client.configuration.username}:{self.api_client.configuration.password}@{tmp_host}"
|
|
703
|
+
|
|
704
|
+
# OAuth2
|
|
705
|
+
elif self.api_client.configuration.access_token:
|
|
706
|
+
tmp_host = self.api_client.configuration.host.replace("https://", "")
|
|
707
|
+
tmp_host = f"wss://{tmp_host}"
|
|
708
|
+
headers = websockets.Headers([
|
|
709
|
+
("Authorization", f"Bearer {self.api_client.configuration.access_token}")
|
|
710
|
+
])
|
|
711
|
+
else:
|
|
712
|
+
tmp_host = tmp_host.replace("http://", "ws://")
|
|
713
|
+
|
|
714
|
+
url_schema = tmp_host + path
|
|
715
|
+
if locals().get("response_rate") is not None:
|
|
716
|
+
url_schema = append_parameter_connector(url_schema)
|
|
717
|
+
if isinstance(response_rate, list):
|
|
718
|
+
url_schema += "&".join(["response_rate=" + s for s in response_rate])
|
|
719
|
+
else:
|
|
720
|
+
url_schema += "response_rate="+str(response_rate)
|
|
721
|
+
if locals().get("response_coordinate_system") is not None:
|
|
722
|
+
url_schema = append_parameter_connector(url_schema)
|
|
723
|
+
if isinstance(response_coordinate_system, list):
|
|
724
|
+
url_schema += "&".join(["response_coordinate_system=" + s for s in response_coordinate_system])
|
|
725
|
+
else:
|
|
726
|
+
url_schema += "response_coordinate_system="+str(response_coordinate_system)
|
|
727
|
+
full_url = furl(url_schema)
|
|
728
|
+
|
|
729
|
+
async with websockets.connect(full_url.url, open_timeout=10, additional_headers=headers) as websocket:
|
|
730
|
+
try:
|
|
731
|
+
async for response in websocket:
|
|
732
|
+
response_data = json.loads(response)
|
|
733
|
+
if "result" not in response_data:
|
|
734
|
+
raise Exception(response_data)
|
|
735
|
+
yield MotionGroupState.model_validate(response_data["result"])
|
|
736
|
+
except websockets.exceptions.ConnectionClosed:
|
|
737
|
+
return
|
|
738
|
+
finally:
|
|
739
|
+
await websocket.close()
|
|
740
|
+
|