Python path generation

Posted yesterday

Worldwide

Summary

I have an existing Python program that generates robot application trajectories from contours detected by a camera. The program receives recipe parameters from a PLC, including: -filling direction and spacing; -offset around holes; -offset from the exterior edge; -other robot application parameters. The current program works correctly in most situations. The problem occurs in narrow passages between: -two holes; -a hole and the exterior contour. When the available passage is too narrow compared with the offsets requested by the PLC recipe, the two offset trajectories overlap or leave insufficient space. The program then attempts to merge them into one centered trajectory, but in certain geometries the merge can be: -off-center; -disconnected from the surrounding trajectories; -connected to the wrong trajectory; -shaped with small square or zigzag links; -replaced by an incorrect diagonal connector; -partially missing. For example, if the PLC requests an 8 mm offset on both sides but the physical passage is only 10 mm wide, both requested offsets cannot fit. In that situation, the program should locally ignore the requested offsets and create one trajectory centered in the passage. The important requirement is that the existing logic must remain unchanged everywhere it already works. Only narrow passages below a defined threshold, currently approximately 10 mm, should use the special merge logic. The expected behavior is: -Detect the real local width using the original contours, independently of the PLC offsets. -Identify only the portion of the passage that is below the width threshold. -Remove only the conflicting offset trajectories in that local portion. -Generate one trajectory exactly centered between the two boundaries. -Connect that centered trajectory to the correct surrounding trajectories. -Avoid unnecessary intermediate points, square links, long diagonals and incorrect global stitching. -Apply the same logic to hole-to-hole and hole-to-exterior-contour passages. -Preserve the current PLC recipe handling, trajectory ordering and robot export format. The program uses Python, Shapely, NumPy, scikit-image skeletonization and Matplotlib. I can provide the complete program, PCD test files, PLC recipe files, screenshots of incorrect results and repeatable test cases.

  • Less than 30 hrs/week
    Hourly
  • < 1 month
    Duration
  • Intermediate
    Experience Level
  • $20.00

    -

    $40.00

    Hourly
  • Remote Job
  • One-time project
    Project Type

Contract-to-hire opportunity

This lets talent know that this job could become full time.
Learn more
Skills and Expertise
Mandatory skills
Python
Python Script
NumPy
Activity on this job
  • Proposals:50+
  • Last viewed by client:yesterday
  • Interviewing:
    1
  • Invites sent:
    0
  • Unanswered invites:
    0
About the client
Member since Jul 22, 2026
  • Canada
    6:17 PM

Explore similar jobs on Upwork

n8n
Zapier
Web Development
JavaScript
CSS
Web Design
Webflow
Automation
HTML
Python
C++
Forex Trading
API
Machine Learning
Cryptocurrency
Node.js
Bot Development
Artificial Intelligence
Bitcoin

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo