Skip to main content

ARM5_TOOL_CONFIG

Constant ARM5_TOOL_CONFIG 

Source
pub const ARM5_TOOL_CONFIG: &str = "# A five-axis arm in tool space: the default config of the urdf-arm machine (config/common.toml, then config/arm.toml)\n# with the URDF urdf/five-axis.urdf (the six-axis example without the flange\'s roll; the flange points down at zero\n# joints), kinematics.tool_space on with the tool\'s axes x, y, z, rx, ry: its place and where it points, its turn about\n# where it points following from the joints. A cycle of straight lines with one tilt of the tool. Generic proportions:\n# every value of the arm is an [estimate], as in arm.toml.\n# Run it with: sim-cli run urdf-arm --config crates/machine-joint-kit/config/arm5-tool.toml --cycle\n\n# What every machine of this crate shares (config/common.toml); the machine\'s own part follows [profile] below.\nformat_version = 1\n# Obstacles the machine must not touch, as for every machine (see docs/config-reference.md): a list of\n# { name, centre_m, size_m } boxes, or [[obstacles]] tables. None by default.\nobstacles = []\n\n# Parts by name from the catalogue in catalog/, as for every machine (see docs/config-reference.md). \"\" names none:\n# the numbers in this file are used as written.\n[parts]\nmotor = \"\"\nmotor_supply = \"400v\"\ngearbox = \"\"\ndrive = \"\"\nbelt = \"\"\naxis = \"\"\n\n# One switch per effect.\n# Motor options: the holding brake (its inertia and weight) and the encoder (\"\" keeps drive.encoder_counts_per_rev;\n# \"AS22DQC\", \"AM22DQC\", for a 1FT2 also the 26-bit \"AS26DQC\", \"AM26DQC\").\nmotor_brake = false\nmotor_encoder = \"\"\n[effects]\ngravity = true\npayload = true\n# The arms\' payload swings on a pivot at the flange (arm.payload_swing_*): two joints no motor drives. Off here; read\n# by the arms only.\npayload_swing = false\n# Gearbox, coupling, screw or rack twist and stretch under load: motor and load are two bodies per joint. Off, the\n# machine is the rigid reference model, in which the motor turns with the joint times the ratio.\njoint_elasticity = true\n# Friction in the joint: bearings, guides, the screw nut\'s preload.\njoint_friction = true\nmotor_friction = true\ngearbox_backlash = true\ngearbox_efficiency = true\n# The ball screw\'s efficiency from its lead angle and its balls\' friction (screw.friction_coefficient, THK\'s\n# formula) in place of screw.efficiency, a catalogue\'s figure that holds the nut\'s preload drag, which drags apart.\n# Off in the shipped configs: their sizing was done with screw.efficiency.\nscrew_lead_efficiency = false\n# The screw\'s axial stiffness follows its nut: the shaft between the fixed bearing and the nut, E A / a (held at both\n# ends a (L - a) / (E A L)), with the nut a from the bearing at its travel (screw.fixed_bearing_at_m), in place of the\n# far end\'s for the whole stroke.\nscrew_stiffness_with_position = true\n# The efficiency\'s loss as a friction in the gearbox\'s mesh: in proportion to the torque it passes, against the\n# motion at any speed, and sticking at rest inside its band (a gear holding a load stands for anything between the\n# torque that lowers it and the one that lifts it). Off: the loss fades in below 0.5 W, a gear at rest has none.\ngearbox_mesh_friction = true\ntorque_ripple = true\nhard_stops = true\nholding_brake = true\n# The holding brakes engage brake.engage_delay_s after they are asked to hold (the torque off) and release\n# brake.release_delay_s after they are asked to let go; a hanging axis sags while its brake engages. Off by default, so\n# that earlier results stay as they were.\nbrake_delay = false\nvelocity_feedforward = true\ntorque_feedforward = true\nencoder_resolution = true\nvelocity_filter = true\ntorque_filter = true\nnotch_filter = false\ntorque_limit = true\n# The drive gives no more than its maximum output current, ratings.drive_max_current_a: the torque setpoint is held to\n# the torque of that current where it is below the motor\'s limit. Without the rating nothing is held.\ndrive_current_limit = true\n# Off here (14 November 2026): the drive\'s overload over time by its thermal image (ratings.drive_base_load_current_a,\n# drive_overload_time_constant_s, drive_max_current_time_s) and the motor\'s three thermal nodes\n# (motor.winding_resistance_share, winding_time_constant_s). On: field weakening of the d-q motor model\n# (motor.pole_pairs, d_inductance_h).\nfield_weakening = true\ndrive_overload = false\nmotor_thermal_nodes = false\ncorner_blending = false\ninput_shaping = false\nback_emf = true\nvoltage_limit = true\nwinding_heating = true\npart_heating = false\nthermal_feedback = false\n# The cycle analysis measures its pass with the windings (winding_heating) and, with thermal_feedback, the parts at the\n# rises they settle at on the cycle, iterated from cold to a fixed point, not from cold. Nothing to do where nothing\n# warms back on the run.\nthermal_warm_start = true\ntorque_saturation = true\ndrive_delay = true\ndc_link = true\nshared_dc_link = false\nregenerative_supply = false\nfieldbus_delay = false\nfieldbus_jitter = false\nsensor_noise = false\nshaper_follows_pose = false\n# Obstacles are rigid: touching one stops the machine and takes the drives off. Without obstacles it changes nothing.\ncrash = false\n\n# With effects.part_heating: each gearbox (with the screw or rack behind it) warms with its loss. [estimate] as for the\n# delta picker\'s planetary gearboxes.\n# The frame or stand under the machine gives way on springs ([base]): it sways under the motors\' reactions and the\n# moving masses and takes the tool with it. Off in the shipped configs: the stiffnesses are [estimate]s.\nbase_compliance = false\n# With base_compliance, two-way: the machine feels its base\'s sway (its motors see it and hold against it) and\n# the base\'s energy is in the budget. Off: one-way, the base sways under the machine.\nbase_reaction = false\nbraking_resistor_heating = true\n# The drive runs the position setpoint on between profile cycles from the last setpoints (pos + v t + a t^2 / 2),\n# as its speed feedforward runs on: a SINAMICS drive\'s fine interpolation, which a position loop at the speed loop\'s\n# cycle (DSC) needs once the profile cycle is longer than the position cycle. Changes nothing while they are equal.\nfine_interpolation = true\n# Friction feedforward (S120 p3820-p3839): with drive.friction_feedforward_model = \"machine\" the friction of the\n# machine\'s own model at the planned speed, else the characteristic drive.friction_feedforward_* (0 N m here: none\n# recorded, so on as in the joint configs\' common file, and changing nothing).\nfriction_feedforward = true\n# The gearbox\'s no-load running torque at its input, over speed and its lubricant\'s temperature (gearbox.no_load_*):\n# gearbox.efficiency then holds at gearbox.efficiency_torque_nm and falls at part load. Off here: on in the delta\n# pickers D2 and D3, whose sizing was redone with them.\ngearbox_drag = false\n# The gearbox\'s flanks take the load over a band beyond the backlash, with a hysteresis (gearbox.lost_motion_band_rad,\n# hysteresis_rad).\ngearbox_lost_motion = false\n# A strain wave gear\'s three-segment stiffness, K1 to T1, K2 to T2, K3 beyond (gearbox.stiffness_*). Off in the shipped\n# configs.\ngearbox_stiffness_curve = false\n# Motor electrical and thermal model (14 November 2026). On here: field weakening above (the d-q voltage limit), the\n# stator\'s iron loss heating the motor (motor.stall_current_a) and the braking resistor\'s temperature\n# (ratings.braking_resistor_time_constant_s, braking_resistor_rated_rise_k; with dc_link only). Off: the magnets\' flux\n# over temperature (motor.magnet_temperature_coefficient_1_k).\niron_loss = true\n# The URDF arms\' links bend, each in its first Euler-Bernoulli mode in the plane its joint turns it in ([link_bending]):\n# the tool rings with them. Not on the slides and the table, which have no links. Off in the shipped configs: the\n# sections are [estimate]s.\nlink_bending = false\n# The links\' bending acts back on the joints (with link_bending): joints, gearboxes and links one coupled system, the\n# bending\'s energy in the machine\'s. Off in the shipped configs.\nlink_bending_reaction = false\n# A parallelogram rod\'s axial stiffness in series with the gearbox of the joint it carries. Off as shipped.\nbar_elasticity = false\n# The forearm a parallelogram\'s rod turns rocks on the rod\'s spring as a joint of its own. Off as shipped.\nbar_rocking = false\n# The position loop closes on a load-side scale (S120 direct measuring system, drive.load_encoder_step) instead of\n# the motor encoder, which stays for the speed loop.\nload_encoder = false\nmagnet_temperature = false\n# The motor shaft\'s seals and bearings break away above their sliding level along a Stribeck curve\n# (motor.friction_breakaway_nm, friction_stribeck_rad_s).\nmotor_stiction = false\n# A slide\'s guides hold a load at rest within their breakaway force without creeping and turn over a presliding travel\n# at a reversal: a presliding friction state (slide.presliding_stiffness_n_m, friction_breakaway_n, friction_stribeck_m_s)\n# in place of the smoothed Coulomb step. Read by the slides only (screw, rack, linear motor, the SCARA\'s screw).\nslide_presliding = false\n# The drives watch their following error, their standstill and their torque limit ([drive] fault_reaction and the\n# keys after it); one that trips stops all, each by its fault reaction. Off by default, so that earlier results\n# stay as they were.\ndrive_monitoring = false\n[thermal]\ngearbox_resistance_k_w = 1.5\ngearbox_time_constant_s = 1200.0\ngearbox_max_rise_k = 50.0\n\n# With effects.thermal_feedback (see mech::ThermalFeedback). [estimate] as for the other machines; the belt\'s\n# coefficient is read but not used, as these machines have no belt.\n[thermal_feedback]\nambient_c = 20.0\nreference_c = 20.0\nviscosity_slope_k = 4000.0\ngearbox_viscous_loss_share = 0.5\nbelt_stiffness_coefficient_1_k = 3.0e-4\n# With effects.thermal_feedback [estimate]: the motor shaft\'s seal friction (motor.friction_coulomb_nm and\n# friction_breakaway_nm) follows the gearbox\'s lubricant, (nu / nu_ref) to this power: a lip seal on its oil film.\nseal_viscosity_exponent = 0.33\n\n[profile]\ncycle_s = 1.0e-3\nfieldbus_delay_cycles = 1\nfieldbus_jitter_cycles = 1\nsetpoint_interval_s = 10.0e-3\nblend_time_s = 0.05\nshaper_frequency_hz = 25.0\nshaper_damping = 0.03\nshaper2_frequency_hz = 0.0\nshaper2_damping = 0.03\ntorque_reserve = 0.8\n# Read but not used: no belt.\ntension_reserve = 0.8\ntension_margin_n = 0.0\n# The share of every limit the time-optimal plan may use, on top of the reserves above (1: all; 0.9 plans at 90 %).\ntime_optimal_margin = 1.0\npath_tolerance_m = 0.0\nmin_clearance_m = 0.0\n\n# Serial six-axis arm: bodies, joints, masses and inertias from a URDF file, here the example in urdf/six-axis.urdf\n# (6 kg payload, 1.4 m reach), each joint driven by the same motor through a strain wave gear.\n#   [estimate]   all but the motor and drive (as the delta picker\'s).\n# The tool pose is the six joint angles, rad. With kinematics.tool_space it is the flange\'s x, y, z (m) and its\n# orientation as a rotation vector (rad) instead: see config/arm-tool.toml.\n# How far a planned path may leave a corner between two lines to round it instead of stopping there (as a CNC\'s\n# G642 or a robot\'s zone): the corner curve starts and ends 16/3 of it from a right-angled corner. 0: stop.\ncorner_tolerance_m = 0.0\n# How the cycle\'s segments are timed: \"axis_limits\" (the S-curves within the axis limits above) or \"time_optimal\"\n# (each segment as fast as the motors, the gearbox and belt ratings and the jerk limits allow, rest to rest).\ncycle_timing = \"axis_limits\"\ndeceleration_ratio = 1.0\n# The shape of moves (see docs/config-reference.md): \"s-curve\" (seven segments), \"sin2\" (Bestehorn), \"poly345\" or\n# \"poly4567\" (VDI 2143); a [[cycle.segment]] may name its own with shape = \"...\". Braking within deceleration_ratio of\n# the acceleration limits (1: as fast as speeding up). vertical_axis: the axis that lifts against gravity (\"z\", \"-z\"\n# where up is its minus direction, \"\" for none), which has up_acceleration_ratio of its acceleration limit upwards.\nshape = \"s-curve\"\nshaper_axes = []\nshaper_ei_tolerance = 0.05\nshaper_modes = []\n# With effects.input_shaping: the shaper (\"zv\", \"zvd\", \"zvdd\", \"ei\", \"ei2\" the two-hump EI), the vibration the EI\n# shapers allow, the axes the first and the second shaper act on ([] for all), and further modes, each convolved:\n# { frequency_hz = 40.0, damping = 0.02, type = \"ei\", axes = [\"z\"] } (type and axes may be left out).\nshaper_type = \"zvd\"\n# The curve a trajectory runs through its poses: \"c2\" (a cubic spline, the acceleration continuous) or \"hermite\" (the\n# slopes of the neighbours, as before 14 November 2026).\ntrajectory_spline = \"c2\"\nup_acceleration_ratio = 1.0\nvertical_axis = \"\"\n\n[sim]\ndt_s = 62.5e-6\n# Two sub-steps of the integrator, not the belt machines\' four: the stiffest mode, the wrist on its gear, is near\n# 530 Hz, which RK4 resolves at 31 us. Measured on the default cycle: no verdict differs from 8 sub-steps by more than\n# 0.05 % (motor peak), at half the computing time.\nsubsteps = 2\n\n[arm]\n# A path to a URDF file (no xacro), or \"builtin:six-axis\" / \"builtin:scara\".\nurdf_file = \"builtin:five-axis\"\ngear_ratios = [120.0, 120.0, 120.0, 80.0, 80.0]\npayload_kg = 6.0\n# From the URDF\'s flange frame.\npayload_offset_m = [0.05, 0.0, 0.0]\n# About its centre in the flange frame: xx, yy, zz, xy, xz, yz. [estimate] a 6 kg box of 0.1 m along the flange\'s x\n# (the tool\'s axis), 0.2 m along y and 0.15 m along z: m (0.2^2 + 0.15^2) / 12 = 0.03125, m (0.1^2 + 0.15^2) / 12 =\n# 0.01625, m (0.1^2 + 0.2^2) / 12 = 0.025.\npayload_inertia_kgm2 = [0.03125, 0.01625, 0.025, 0.0, 0.0, 0.0]\n# The URDF\'s joints as sums of the motors\' joints, one row per URDF joint (a parallelogram: see config/palletiser.toml);\n# [] for one motor per joint.\njoint_coupling = []\n# The parallelogram\'s bars (or any rigid piece the URDF leaves out) as bodies of their own: bar i pinned on the link of\n# the URDF joint bars_on[i] (1-based) at bars_pin_m[3i..3i+3] of its frame (empty: its origin), staying parallel to the\n# link of bars_turns_with[i] and so turning with it (empty: with the link it is pinned on, a rigid piece of that link),\n# mass bars_mass_kg[i], its centre bars_com_m[3i..3i+3] from the pin and its inertia about its centre\n# bars_inertia_kgm2[6i..6i+6] (xx, yy, zz, xy, xz, yz; the array may stay empty: 0), both in the frame of the link it\n# turns with. Empty: no bars (the URDF\'s links as they are).\nbars_on = []\nbars_turns_with = []\nbars_pin_m = []\nbars_mass_kg = []\nbars_com_m = []\nbars_inertia_kgm2 = []\n# With effects.bar_elasticity: each bar\'s axial stiffness (0: rigid) and the motor joint (1-based, 0: none) whose turn\n# it carries on the lever of its pin\'s distance from its link\'s joint. Empty: none.\nbars_axial_stiffness_n_m = []\nbars_carries = []\n# With effects.bar_rocking: each bar\'s axial damper (N s/m), on the rocking with the lever\'s square. Empty: none.\nbars_axial_damping_n_s_m = []\n# A planar four-bar the URDF leaves out (`four_bar_*`): the follower\'s pivot on the link of URDF joint four_bar_ground_on\n# (1-based; 0: none) at four_bar_ground_pin_m of its frame, the crank point on the link of four_bar_crank_on at\n# four_bar_crank_pin_m, in the plane square to four_bar_normal (the ground\'s frame); the coupler (crank point to the\n# loop\'s point) and the follower (pivot to it) four_bar_lengths_m long, four_bar_masses_kg heavy (uniform rods), the\n# loop\'s point on the side four_bar_branch (+1: normal x (crank - pivot)) of the line from the pivot to the crank.\nfour_bar_ground_on = 0\nfour_bar_ground_pin_m = [0.0, 0.0, 0.0]\nfour_bar_crank_on = 0\nfour_bar_crank_pin_m = [0.0, 0.0, 0.0]\nfour_bar_normal = [0.0, 0.0, 1.0]\nfour_bar_lengths_m = [0.0, 0.0]\nfour_bar_masses_kg = [0.0, 0.0]\nfour_bar_branch = 1.0\n# With effects.payload_swing: the payload hangs on a pivot at the flange, its centre payload_offset_m from it, about two\n# axes across that line, with this spring and damper per axis. [estimate] a carton in a soft gripper.\npayload_swing_stiffness_nm_rad = 20.0\npayload_swing_damping_nm_s_rad = 0.5\n\n# Off (as shipped): the axes are the joints, [axis.j1] to [axis.j6]. On: the axes are the flange\'s x, y, z (m) and its\n# orientation rx, ry, rz (rad: the rotation from the base frame as axis times angle), [axis.x] to [axis.rz], each piece\n# of a path a straight line of the tool with its orientation held (or turned about a fixed axis). The joints by damped\n# least squares, followed from home_joints along the line to the target: the solution stays on the home\'s branch\n# (shoulder, elbow, wrist). The home: the flange 0.99 m out, 0.83 m up, pointing down (ry = pi/2), wrist bent.\n[kinematics]\ntool_space = true\n# The home: the flange 0.99 m out, 0.83 m up, pointing down (the wrist bent back by its 0.6 rad of the arms\' tilt).\nhome_joints = [0.0, 0.4, 0.2, 0.0, -0.6]\n# The tool\'s axes in tool space, of x, y, z, rx, ry, rz: as many as joints (one fewer on a redundant arm).\ntool_axes = [\"x\", \"y\", \"z\", \"rx\", \"ry\"]\n# What a redundant arm (a joint more than tool axes) spends its spare joint on, in tool space: \"home\" keeps the\n# joints nearest home_joints, \"joint_limits\" nearest the middles of their ranges (each offset as a share of its\n# range), off their stops.\nredundancy = \"home\"\n\n# In tool space: the range of x, y, z (m) and rx, ry, rz (rad, the turn from the flange\'s orientation at zero joints,\n# which on this URDF points down), here up to 0.6 rad of tilt each way;\n# poses in it out of reach, beyond a joint\'s stop or with the flange turned near half a turn from its orientation at\n# zero joints (where the rotation vector jumps) are refused, and those where the condition number of the Jacobian (its\n# turn rows times the flange\'s distance from joint 2 at the home, 0.86 m) is above max_condition_number: near the\n# stretched arm or the wrist\'s axes 4 and 6 in line. [estimate]\n[workspace]\ntool_min = [0.5, -0.6, 0.3, -0.6, -0.6]\ntool_max = [1.2, 0.6, 1.1, 0.6, 0.6]\nmax_condition_number = 30.0\n\n# The tool\'s limits in tool space. [estimate] below what the motors\' rated 314 rad/s allows with every axis at its\n# limit at once at the middle of the ranges (0.9 m/s and 1.5 rad/s: 1 m/s and 2 rad/s asked 373 rad/s of motor 2).\n[axis.x]\nmax_velocity_m_s = 0.9\nmax_acceleration_m_s2 = 4.0\nmax_jerk_m_s3 = 80.0\n\n[axis.y]\nmax_velocity_m_s = 0.9\nmax_acceleration_m_s2 = 4.0\nmax_jerk_m_s3 = 80.0\n\n[axis.z]\nmax_velocity_m_s = 0.9\nmax_acceleration_m_s2 = 4.0\nmax_jerk_m_s3 = 80.0\n\n[axis.rx]\nmax_velocity_rad_s = 1.5\nmax_acceleration_rad_s2 = 8.0\nmax_jerk_rad_s3 = 150.0\n\n[axis.ry]\nmax_velocity_rad_s = 1.5\nmax_acceleration_rad_s2 = 8.0\nmax_jerk_rad_s3 = 150.0\n\n# Each joint\'s bearings and stops. [estimate]\n# The joints\' limits ([estimate]: about 2000 r/min of the motors at the highest speeds).\n[axis.j1]\nmax_velocity_rad_s = 2.0\nmax_acceleration_rad_s2 = 6.0\nmax_jerk_rad_s3 = 100.0\n\n[axis.j2]\nmax_velocity_rad_s = 2.0\nmax_acceleration_rad_s2 = 6.0\nmax_jerk_rad_s3 = 100.0\n\n[axis.j3]\nmax_velocity_rad_s = 2.0\nmax_acceleration_rad_s2 = 8.0\nmax_jerk_rad_s3 = 120.0\n\n[axis.j4]\nmax_velocity_rad_s = 3.0\nmax_acceleration_rad_s2 = 15.0\nmax_jerk_rad_s3 = 300.0\n\n[axis.j5]\nmax_velocity_rad_s = 3.0\nmax_acceleration_rad_s2 = 15.0\nmax_jerk_rad_s3 = 300.0\n\n[joint]\nfriction_coulomb_nm = 1.0\nfriction_viscous_nm_s_rad = 0.5\nfriction_smoothing_rad_s = 0.01\n# Where the URDF gives no limits (a continuous joint), and for the table.\nmin_angle_deg = -360.0\nmax_angle_deg = 360.0\nstop_stiffness_nm_rad = 100000.0\nstop_damping_nm_s_rad = 50.0\n\n# [estimate] a strain wave gear of size 32, its ratio per joint from arm.gear_ratios.\n[gearbox]\nratio = 120.0\nefficiency = 0.75\nbacklash_rad = 0.0\nstiffness_nm_rad = 67000.0\ndamping_nm_s_rad = 30.0\ninertia_at_input_kgm2 = 1.4e-4\n\n# The life of each joint\'s strain wave gear (transmission::StrainWave). [estimate] size 32.\n# The torque at which `efficiency` holds: the strain wave gear\'s rated torque, as Harmonic Drive gives its efficiency\n# ([estimate] as strain_wave.rated_torque_nm).\nefficiency_torque_nm = 137.0\nhysteresis_rad = 2.909e-4\n# With effects.gearbox_lost_motion: no backlash and no band (the flexspline\'s teeth are in mesh preloaded);\n# [catalogue] the hysteresis loss, Harmonic Drive\'s Table 44 (size 32, ratio 50 and up): 2.9e-4 rad (1 arcmin).\nlost_motion_band_rad = 0.0\nno_load_speed_rpm = 2000.0\n# With effects.gearbox_drag: the no-load running torque at the input at no_load_speed_rpm and 20 degC. [catalogue] read\n# off Harmonic Drive\'s chart (CSF/CSG engineering data, \"No Load Running Torque\", housed unit, grease SK-1A/SK-2,\n# ratio 100, size 32, 2000 r/min, 20 degC): about 50 N cm, to about 20 %. The chart\'s fall from 20 to 40 degC (a\n# factor of about 0.54 for size 32) is what Palmgren\'s law with thermal_feedback.viscosity_slope_k gives (0.56).\nno_load_torque_nm = 0.5\nstiffness_k2_nm_rad = 110000.0\nstiffness_k3_nm_rad = 120000.0\n# With effects.gearbox_stiffness_curve: [catalogue] Harmonic Drive\'s Table 43 (ratio 80 and up, size 32): K1 is\n# stiffness_nm_rad up to T1, K2 up to T2, K3 beyond.\nstiffness_t1_nm = 29.0\nstiffness_t2_nm = 108.0\n[strain_wave]\nrated_torque_nm = 137.0\nrated_input_speed_rpm = 2000.0\nrated_life_h = 10000.0\n\n[motor]\n# [catalogue] 1FK2105-4AF, D 32: rotor 1.7 kg cm2 (as on the delta picker, as is everything in [motor] and [drive])\nrotor_inertia_kgm2 = 1.7e-4\n# [estimate]\nfriction_coulomb_nm = 0.05\nfriction_viscous_nm_s_rad = 2.0e-4\nfriction_smoothing_rad_s = 0.5\nripple_fraction = 0.02\nripple_order = 24.0\ncogging_nm = 0.02\ncogging_order = 24.0\n# [catalogue] static torque 5 N m over stall current 4.65 A\ntorque_constant_nm_a = 1.07527\n# [estimate] Siemens publishes neither for the 1FK2.\nresistance_ohm = 2.0\ninductance_h = 0.010\n# With effects.field_weakening [estimate]: pole pairs (not published for the 1FK2; the 1FK7 have 4) and the d-axis\n# inductance, as the winding has it, here that of the q axis above (surface magnets).\npole_pairs = 4.0\nd_inductance_h = 0.01\n# With effects.motor_thermal_nodes [estimate]: the winding\'s share of the thermal resistance to the surroundings (the\n# rest is the stator and housing\'s), and its time constant against the housing.\nwinding_resistance_share = 0.3\nwinding_time_constant_s = 60.0\n# [catalogue] rated current 4.35 A at 400 V; thermal time constant 37 min; 15 N m at the maximum current of 18 A.\nrated_current_a = 4.35\nthermal_time_constant_s = 2220.0\nrated_temperature_rise_k = 100.0\nstart_temperature_rise_k = 0.0\nmax_current_a = 18.0\ntorque_constant_at_max_current_nm_a = 0.83333\n# [estimate]\nbrake_torque_nm = 8.0\n\n# One drive per motor, all with the same settings. Cycle times must be whole multiples of sim.dt_s.\n# With effects.motor_stiction [estimate]: the shaft\'s breakaway torque, 1.5 times its Coulomb level (lip seals and\n# bearings break away at about 1.3 to 2 times their running torque), and the speed over which it falls to that level.\nfriction_breakaway_nm = 0.075\nfriction_stribeck_rad_s = 2.0\n# With effects.magnet_temperature [estimate]: NdFeB loses about 0.12 % of its remanence per kelvin.\n# [bounds] -0.0013 ... -0.0009\nmagnet_temperature_coefficient_1_k = -0.0012\n# [catalogue] 1FK2105-4AF: static torque 5 N m at the stall current 4.65 A (motors_s210.csv), as a motor named in\n# [parts] brings it. With effects.iron_loss the copper loss at it brings the winding to its rated\n# rise, and the iron loss at the rated speed is the rest of that loss at the rated current; the S1 check (\"motor-s1\")\n# starts at kt times it.\nstall_current_a = 4.65\n[drive]\ncurrent_cycle_s = 62.5e-6\nvelocity_cycle_s = 125.0e-6\nposition_cycle_s = 1.0e-3\ncurrent_delay_cycles = 1\nvelocity_delay_cycles = 1\nkv_1_s = 50.0\n# [estimate] scaled from the delta picker\'s 0.25 by the inertia at the motors.\nvelocity_kp_nm_s_rad = 0.15\nvelocity_tn_s = 0.03\nvelocity_feedforward_factor = 1.0\ntorque_feedforward_factor = 1.0\ncurrent_kp_v_a = 40.0\ncurrent_tn_s = 5.0e-3\n# [catalogue] a 400 V line: 540 V DC link\nbus_voltage_v = 540.0\n# The back-EMF per speed of the one winding; 0: the torque constant. A catalogue motor by name sets its printed one.\nback_emf_constant_v_s_rad = 0.0\n# [catalogue] 1FK2105-4AF at 400 V: 15 N m maximum, 4.6 N m rated at 3000 r/min\npeak_torque_nm = 15.0\nrated_torque_nm = 4.6\nrated_speed_rad_s = 314.159\n# sqrt(3/2) * 540 V / 1.07527 N m/A\nno_load_speed_rad_s = 615.07\n# [estimate] a 22-bit encoder\nencoder_counts_per_rev = 4194304.0\nvelocity_filter_s = 0.1e-3\ntorque_filter_s = 0.1e-3\nnotch_frequency_hz = 60.0\nnotch_bandwidth_hz = 20.0\nencoder_noise_counts = 4.0\ncurrent_noise_a = 0.01\nnoise_seed = 1\n# Off: each axis brakes into a resistor of its own (an S210); on: one S120 Braking Module for all.\nbraking_module = false\n\n# The wrist\'s joints 4 and 5 have smaller motors and gears than the arm\'s 1 to 3, as a real arm has (their own tables over\n# the shared ones above, catalog::motor_config). [catalogue] 1FK2104-5AF, 2.4 N m static, 7.5 N m maximum, rotor 0.56\n# kg cm2, on an S210 6SL3210-5HE10-8UF0 (2.3 A rated, 7.6 A maximum): the catalogue\'s motor and drive. [estimate] a\n# strain wave gear of size 20, its brake and the velocity gain scaled by the inertia at the motor (0.15 x 0.97 / 3.1\n# kg cm2 with the gear\'s input).\n# With effects.friction_feedforward: the friction characteristic, torque over speed at rising speeds, linear between\n# the points from 0 and held beyond the last (S120 p3820-p3839). [estimate] none recorded: no feedforward.\nfriction_feedforward_speed_rad_s = [10.0]\nfriction_feedforward_torque_nm = [0.0]\n# With effects.friction_feedforward: \"characteristic\" adds the characteristic above; \"machine\" adds in its place the\n# friction of the machine\'s own model at the planned speed (guides, motor shaft, gearbox drag, joints).\nfriction_feedforward_model = \"characteristic\"\n# With effects.load_encoder: the step of the load-side scales, in the tool axes\' units (m, rad). 1 um: a glass scale.\nload_encoder_step = 1.0e-6\n# [estimate] The highest speed the motor may turn at (its datasheet\'s maximum speed); here the no-load speed, where the\n# torque-speed curve ends. The time-optimal plan turns the motor up to it along that curve; the verdict motor-speed\n# judges the cycle\'s peak speed against it. A motor by name sets the catalogue\'s.\nmax_speed_rad_s = 615.07\n# The position setpoint passes a first-order lag of this time constant before the position loop compares it, so that\n# it arrives with the motor the speed feedforward moves (S120 p2536 balancing). 0: off, as commissioned by default.\nprecontrol_balance_s = 0.0\n# The winding\'s voltage limit the six-step wave\'s fundamental, 2 sqrt 3 / pi (4 / pi for a stepper) of the\n# sinusoidal one (harmonics and their loss not modelled). Off, as a drive comes.\novermodulation = false\n# Torque feedforward: \"rigid\", the rigid model\'s inverse dynamics (inertia, gravity, speed terms), or \"inertia\", one\n# moment of inertia per motor (the rigid model\'s at the start pose) times its acceleration setpoint, as a drive\'s\n# speed/torque precontrol with the load inertia set (S120 p1498): no gravity, no coupling.\ntorque_feedforward_model = \"rigid\"\nblocked_speed_rad_s = 12.57\nblocked_time_s = 3.0\n# effects.drive_monitoring: how a drive stops when the drives trip. \"off1\" ramps the speed setpoint down in off1_ramp_s\n# from the rated speed (S120 p1121), \"off3\" in off3_ramp_s (p1135), \"sto\" takes the torque off at once (the motor\n# coasts), \"current_limit\" brakes at the torque limit; at standstill, below pulse_off_speed_rad_s (p1226), the pulses\n# go off. [estimate] OFF3 in 0.1 s, as commissioned for a fast stop; OFF1 1 s.\nfault_reaction = \"off3\"\n# What trips it, at the motor (rad): the following error beyond its window (p2546); at standstill, after\n# standstill_time_s of a resting setpoint, beyond the standstill window (p2542, p2543); held at the torque limit below\n# blocked_speed_rad_s for blocked_time_s (F07900: p2175, p2177 3 s); the torque further from the model\'s expected\n# torque than torque_band times the peak torque (0: off), as a robot controller detects a collision. [estimate]\nfollowing_error_window_rad = 1.0\noff1_ramp_s = 1.0\noff3_ramp_s = 0.1\n# A category 1 stop (sim-cli run --stop-category 1, sim-cli stop) takes the torque off after this time at the latest,\n# as SS1\'s timer (p9652) does. [estimate] as commissioned: five times the OFF3 ramp.\nss1_time_s = 0.5\npulse_off_speed_rad_s = 2.09\nstandstill_time_s = 1.0\nstandstill_window_rad = 0.1\ntorque_band = 0.0\n[parts.4]\nmotor = \"1FK2104-5AF\"\ndrive = \"6SL3210-5HE10-8UF0\"\n\n[parts.5]\nmotor = \"1FK2104-5AF\"\ndrive = \"6SL3210-5HE10-8UF0\"\n\n[motor.4]\nbrake_torque_nm = 3.2\n\n[motor.5]\nbrake_torque_nm = 3.2\n\n[drive.4]\nvelocity_kp_nm_s_rad = 0.05\n\n[drive.5]\nvelocity_kp_nm_s_rad = 0.05\n\n[gearbox.4]\nratio = 80.0\nstiffness_nm_rad = 25000.0\ninertia_at_input_kgm2 = 4.1e-5\n\n[gearbox.5]\nratio = 80.0\nstiffness_nm_rad = 25000.0\ninertia_at_input_kgm2 = 4.1e-5\n\n[strain_wave.4]\nrated_torque_nm = 40.0\n\n[strain_wave.5]\nrated_torque_nm = 40.0\n\n[ratings.4]\ngearbox_rated_torque_nm = 49.0\ngearbox_max_torque_nm = 76.0\n\n[ratings.5]\ngearbox_rated_torque_nm = 49.0\ngearbox_max_torque_nm = 76.0\n\n[ratings]\n# In tool space, m. The gears\' twist under the arm\'s weight, which the motors\' encoders do not see, is part of it: 2.6\n# mrad at joint 2 reaching out (177 N m over 67000 N m/rad), 2.2 mm at the flange 0.86 m away; with joint 3\'s and the\n# payload the six-axis cycle\'s flange rests 2.4 mm off the encoders\' pose. [estimate] 5 mm. The flange\'s orientation (rx,\n# ry, rz) apart, in rad: the same twist, 3.2 mrad on the cycle. [estimate] 5 mrad.\nsettling_tolerance_m = 0.005\nsettling_tolerance_rad = 0.005\n# [estimate] size 32: limit for the average torque, repeated peak torque.\ngearbox_rated_torque_nm = 216.0\ngearbox_max_torque_nm = 333.0\ngearbox_max_input_speed_rpm = 7000.0\n# The DC link of the S210 converter. [estimate] as for the delta picker.\ndc_link_capacitance_uf = 66.0\nbraking_threshold_v = 770.0\n# [catalogue] internal braking resistor and trip level of the S210 (catalog/siemens/braking_s210.csv)\nbraking_resistor_continuous_w = 100.0\nbraking_resistor_peak_w = 5700.0\ndc_link_overvoltage_v = 820.0\ndc_link_discharge_time_constant_s = 130.0\n# [catalogue] S120 Active Line Module 6SL3130-7TE21-6AA4, for effects.regenerative_supply; its efficiency [estimate].\nline_module_rated_power_w = 16000.0\nline_module_max_power_w = 35000.0\nline_module_efficiency = 0.98\nrequired_life_h = 20000.0\nbearing_reliability_percent = 90.0\n# [catalogue] S210 converter 6SL3210-5HE11-5UF0: 5 A rated, 19 A maximum\ndrive_rated_current_a = 5.0\ndrive_max_current_a = 19.0\n# With effects.drive_overload [estimate]: the base load current the drive falls back to when its thermal image trips\n# (0.85 of the rated current, as the S120 Motor Modules up to 30 A have it; a drive by name sets it), the time constant\n# of the image, and how long the drive gives its maximum current from the rated load.\ndrive_base_load_current_a = 4.25\ndrive_overload_time_constant_s = 10.0\ndrive_max_current_time_s = 0.25\n\n# In tool space: x, y, z (m), rx, ry (rad, the tilt from pointing down).\nbraking_resistor_rated_rise_k = 200.0\n# With effects.braking_resistor_heating [estimate]: the braking resistor\'s time constant and its rise at its continuous\n# power. Siemens gives duty cycles (catalog/siemens/braking_s120.csv: peak power 1 s in 68 s), not these.\n# [bounds] time constant 20 ... 300 s, rise 100 ... 300 K\nbraking_resistor_time_constant_s = 60.0\n# With effects.drive_overload [estimate]: the chips\' share of the power unit\'s rise and their time constant, the fast\n# node of the two-node image (the slow one is the heat sink\'s above). Siemens publishes neither.\n# [bounds] share 0 ... 0.5, time constant 0.1 ... 5 s\ndrive_chip_share = 0.3\ndrive_chip_time_constant_s = 1.0\n[start]\npose = [0.9, -0.3, 0.7, 0.0, 0.0]\n\n# A pick and place of straight lines: down 150 mm, up, 600 mm across, down tilting the tool 0.3 rad about x, up\n# pointing down again, back.\n[[cycle.segment]]\ntarget = [0.9, -0.3, 0.55, 0.0, 0.0]\ndwell_s = 0.1\npayload = false\n\n[[cycle.segment]]\ntarget = [0.9, -0.3, 0.7, 0.0, 0.0]\ndwell_s = 0.0\npayload = true\n\n[[cycle.segment]]\ntarget = [0.9, 0.3, 0.7, 0.0, 0.0]\ndwell_s = 0.0\npayload = true\n\n[[cycle.segment]]\ntarget = [0.9, 0.3, 0.55, 0.3, 0.0]\ndwell_s = 0.1\npayload = true\n\n[[cycle.segment]]\ntarget = [0.9, 0.3, 0.7, 0.0, 0.0]\ndwell_s = 0.0\npayload = false\n\n[[cycle.segment]]\ntarget = [0.9, -0.3, 0.7, 0.0, 0.0]\ndwell_s = 0.0\npayload = false\n\n# effects.brake_delay: how long the holding brakes take to engage once asked to hold, and to release once asked to let\n# go. [estimate] the Siemens motor data in catalog/ gives no brake times; a servo motor\'s spring-applied brake closes in\n# some 10 to 60 ms and opens in some 30 to 150 ms.\n[brake]\nengage_delay_s = 0.03\nrelease_delay_s = 0.06\n\n# Low and high bound of the values that are estimates (see docs/config-reference.md): error bands, sensitivity.\n[bounds]\nbrake.engage_delay_s = [0.01, 0.06]\nbrake.release_delay_s = [0.03, 0.15]\nmotor.pole_pairs = [3.0, 5.0]\nmotor.d_inductance_h = [0.008, 0.012]\nmotor.winding_resistance_share = [0.2, 0.5]\nmotor.winding_time_constant_s = [20.0, 120.0]\nratings.drive_base_load_current_a = [4.0, 4.5]\nratings.drive_overload_time_constant_s = [2.0, 60.0]\nratings.drive_max_current_time_s = [0.1, 1.0]\njoint.friction_coulomb_nm = [0.5, 2.0]\njoint.friction_viscous_nm_s_rad = [0.25, 1.0]\ngearbox.efficiency = [0.65, 0.85]\ngearbox.stiffness_nm_rad = [50000.0, 80000.0]\ngearbox.damping_nm_s_rad = [15.0, 60.0]\ngearbox.inertia_at_input_kgm2 = [1.0e-4, 1.8e-4]\ngearbox.backlash_rad = [0.0, 2.909e-4]\nmotor.friction_coulomb_nm = [0.025, 0.1]\nmotor.friction_viscous_nm_s_rad = [1.0e-4, 4.0e-4]\nmotor.ripple_fraction = [0.01, 0.04]\nmotor.cogging_nm = [0.01, 0.04]\nmotor.resistance_ohm = [1.5, 3.0]\nmotor.inductance_h = [0.008, 0.012]\nstrain_wave.rated_torque_nm = [120.0, 150.0]\nthermal.gearbox_resistance_k_w = [0.8, 3.0]\nthermal.gearbox_time_constant_s = [600.0, 2400.0]\nratings.dc_link_discharge_time_constant_s = [30.0, 300.0]\nratings.line_module_efficiency = [0.95, 0.99]\nthermal_feedback.ambient_c = [10.0, 40.0]\nthermal_feedback.viscosity_slope_k = [3470.0, 4730.0]\nthermal_feedback.gearbox_viscous_loss_share = [0.25, 0.75]\narm.payload_swing_stiffness_nm_rad = [10.0, 40.0]\narm.payload_swing_damping_nm_s_rad = [0.2, 1.0]\nbase.damping_ratio_rx = [0.01, 0.05]\nbase.damping_ratio_ry = [0.01, 0.05]\nbase.damping_ratio_rz = [0.01, 0.05]\nbase.inertia_x_kgm2 = [36.0, 96.0]\nbase.inertia_y_kgm2 = [36.0, 96.0]\nbase.inertia_z_kgm2 = [6.0, 16.0]\nbase.mass_kg = [150.0, 400.0]\nbase.tilt_stiffness_x_nm_rad = [6.0e5, 3.75e6]\nbase.tilt_stiffness_y_nm_rad = [6.0e5, 3.75e6]\nbase.tilt_stiffness_z_nm_rad = [2.52e5, 1.575e6]\ngearbox.no_load_torque_nm = [0.4, 0.6]\nlink_bending.damping_ratio = [0.01, 0.05]\nlink_bending.youngs_modulus_pa = [6.5e10, 7.2e10]\nlink_bending.shear_modulus_pa = [2.4e10, 2.7e10]\nmotor.friction_breakaway_nm = [0.05, 0.1]\nmotor.friction_stribeck_rad_s = [0.5, 10.0]\nmotor.magnet_temperature_coefficient_1_k = [-0.0013, -0.0009]\nratings.braking_resistor_rated_rise_k = [100.0, 300.0]\nratings.braking_resistor_time_constant_s = [20.0, 300.0]\nratings.drive_chip_share = [0.0, 0.5]\nratings.drive_chip_time_constant_s = [0.1, 5.0]\nthermal_feedback.seal_viscosity_exponent = [0.0, 0.5]\n\n[base]\ndamping_ratio_rx = 0.02\ndamping_ratio_ry = 0.02\ndamping_ratio_rz = 0.02\ndamping_ratio_x = 0.02\ndamping_ratio_y = 0.02\ndamping_ratio_z = 0.02\ninertia_x_kgm2 = 60.0\ninertia_y_kgm2 = 60.0\ninertia_z_kgm2 = 10.0\n# Everything that sways with it, the machine on it included: its natural frequency is sqrt(k / M) / 2 pi.\nmass_kg = 250.0\n# Where it tilts about, in the tool pose\'s frame (x, y, z), m.\npivot_m = [0.0, 0.0, 0.0]\n# 0: rigid in that direction (no state).\nstiffness_x_n_m = 0.0\nstiffness_y_n_m = 0.0\nstiffness_z_n_m = 0.0\ntilt_stiffness_x_nm_rad = 1.5e6\ntilt_stiffness_y_nm_rad = 1.5e6\ntilt_stiffness_z_nm_rad = 6.3e5\n\n[link_bending]\ndamping_ratio = 0.02\nouter_diameter_m = [0.0, 0.14, 0.12, 0.1, 0.0]  # [estimate] one per joint of this URDF\nwall_m = [0.0, 0.008, 0.008, 0.006, 0.0]  # [estimate]\nyoungs_modulus_pa = 7.0e10\n# [estimate] The directions each link deflects in: \"in_plane\" (the plane its joint turns it in), \"out_of_plane\"\n# (across it), \"torsion\" (twisted about its length, by shear_modulus_pa, cast aluminium).\ndirections = [\"in_plane\"]\nshear_modulus_pa = 2.6e10\n";
Expand description

The five-axis and the seven-axis (redundant) example arms in tool space (urdf/five-axis.urdf, urdf/seven-axis.urdf), for --config with the urdf-arm machine.