Answered step by step
Verified Expert Solution
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: Resetting the robot positions
Create a Python node that calls the resetpositions 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: Creating service and message files
Recall that we created a ROS Python node movetogoalpy in the lecture as an exercise.
Create a service in Python that does the task of the steeringangle function in this code. The service
requires float parameters representing the coordinates of two points and returns the steeringangle a float
value In the steeringangle function, instead of calling the function atangoalpose.y
self.pose.ygoalpose.xself.pose.x call your service to calculate the steeringangle. The steeringangle
function should return the result that the service provides.
Submit your modified movetogoalpy code, srv file, msg file, and service node in Python.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started