Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!