Find Jobs
Hire Freelancers

edit this matlab code: max $50

$30-250 USD

Κλειστή
Αναρτήθηκε περίπου 6 χρόνια πριν

$30-250 USD

Πληρωμή κατά την παράδοση
%% this code is suppose to is be able to detect an obstacle, stop in front of obstacle, go pass by the obstacle if ismember([login to view URL], rostopic('list')) laser_sub = rossubscriber('/scan'); end if ismember([login to view URL], rostopic('list')) velocity_pub = rospublisher([login to view URL],'geometry_msgs/Twist'); % velocity_sub = rossubscriber('cmd_vel', 'geometry_msgs/Twist'); end velocity_msg = rosmessage(velocity_pub); % Set some parameters that will be used in the processing loop. % You can modify these values for different behavior. spinVelocity = 0.6; % Angular velocity (rad/s) forwardVelocity = 0.2; % Linear velocity (m/s) backwardVelocity = -0.6; % Linear velocity (reverse) (m/s) distanceThreshold = .6; % Distance threshold (m) for turning % Run a loop to move the robot forward and compute the closest obstacles %to % the robot. When an obstacle is within the limits of the %distanceThreshold, % the robot turns. This loop stops after 20 seconds of run time. % CTRL+C (or Control+C on the Mac) also stops this loop. tic; while toc < 20 % Collect information from laser scan scan_data = receive(laser_sub,1); plot(scan_data); data = readCartesian(scan_data); x = data(:,1); y = data(:,2); % Compute distance of the closest obstacle dist = sqrt(x.^2 + y.^2); minDist = min(dist); % Command robot action scan_data = receive(laser_sub); if minDist < distanceThreshold % If close to obstacle, back up slightly and spin velocity_msg.Linear.X = backwardVelocity; velocity_msg.Angular.Z = spinVelocity; velocity_msg.Linear.X=forwardVelocity; velocity_msg.Angular.Z = -spinVelocity; velocity_msg.Linear.X=forwardVelocity; else % Continue on forward path velocity_msg.Linear.X = forwardVelocity; velocity_msg.Angular.Z = 0; end send(velocity_pub, velocity_msg); end % let TurtleBot stop before disconnect from it velocity_msg.Angular.Z = 0.0; velocity_msg.Linear.X = 0.0; send(velocity_pub, velocity_msg);
Ταυτότητα εργασίας: 16706875

Σχετικά με την εργασία

9 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 6 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
9 freelancers δίνουν μια μέση προσφορά $86 USD για αυτή τη δουλειά
Avatar Χρήστη
A proposal has not yet been provided
$155 USD σε 5 ημέρες
5,0 (66 αξιολογήσεις)
7,1
7,1
Avatar Χρήστη
Hi. My name is Uzair. I am in final semester of my masters in Electrical Engineering. I am doing my thesis in biomedical signal processing and Machine learning. I have more than 3 years of experience in MATLAB specially in Machine learning and signal processing. Regards
$55 USD σε 3 ημέρες
4,9 (45 αξιολογήσεις)
5,7
5,7
Avatar Χρήστη
I have high proficiency in Matlab , SPSS Statistics, Simulation, Mathematics, Python,Algorithm, C programming, Machine learning and Statistics analysis. Once you share the project, I will have a look & confirm if I can do it. I’m honest, creative and a unique person to carry out your tasks given to me. Leaving your project on our hand is a privileged; we'll make sure that the project is done in a perfect way and do our best until you satisfied. I would love to discuss this project with you and meet your exact requirements. I am confident I can provide you with top notch materials that will fit your needs. I'm proud my work on being professional, of the highest quality and always delivered on time. you can hire me dirctly through this link https://www.freelancer.com/u/olaideejiwole
$60 USD σε 1 ημέρα
4,9 (21 αξιολογήσεις)
5,1
5,1
Avatar Χρήστη
I realized that this code is subscribing to ros laser scan msg I have very good experience in matlab and ros and I am sure I can help you
$30 USD σε 3 ημέρες
5,0 (1 αξιολόγηση)
1,5
1,5
Avatar Χρήστη
Hey I am an expert electrical engineer. I have done several projects with matlab. So please ping me up with more details so that we can get this done asap.
$55 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hi, I am Omar. I have been working with MATLAB for more than two years now with many projects in a variety of different fields, for sure control of small mobile robots was one of them, I can help you solve this error. Waiting for your message!
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Dearborn, United States
0,0
0
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Νοε 14, 2017

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.