Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASK - 2 : Resetting the robot positions Create a Python node that calls the / reset _ positions service of ROS Stage in order

TASK-2: Resetting the robot positions
Create a Python node that calls the /reset_positions service of ROS Stage in order to return the robots back
to their initial positions when step A is accomplished for both robots, run this node in the terminal to
demonstrate the result.
C. TASK-3: Creating service and message files
Recall that we created a ROS Python node movetogoal2.py in the lecture as an exercise.
Create a service (in Python) that does the task of the steering_angle function in this code. The service
requires 4 float parameters representing the coordinates of two points and returns the steering_angle (a float
value). In the steering_angle function, instead of calling the function atan2(goal_pose.y-
2self.pose.y,goal_pose.x-self.pose.x), call your service to calculate the steering_angle. The steering_angle
function should return the result that the service provides.
Submit your modified movetogoal2.py code, srv file, msg file, and service node in Python.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago