Question: Submission: Your source code - entire your package folder ( exclude other folders besides root src ) Example Folder Structures homework _ ws src package
Submission:
Your source code entire your package folder exclude other folders besides root src
Example Folder Structures
homeworkws
src
package
package
Screen recording video of how everything runs and show some example input
Submission format: format violation will cause some point penalty
Filename : hwyourname.zip
Details
Create simple calculator base on ROS Services and Topic based communication
Requirement:
The calculator will have type of operation,
Plus
Minus
Divide
Multiply
Create a Node that allow user to input their name send numbers and operator as input through terminal Both Service Client and Publisher will be in one single script
Example Input:
ros run calculatordemo calculatorclient "Shawn"
Service Client:
Send numbers, current system time and operator
Publisher:
Send username through username topic
Create a Node that holds the core logic of the calculator operation listed above. Both Service Server and Subscriber will be in one single script
Example Output:
ShawnCurrent Time: ::Displaied Decimal: : Received a Input that sent at :: The calculation result is:
Service Server:
Receive:
The number input, senders system time, operator
Return:
Current system time
Subscriber:
Receive username
Create a ros parameters called decimal that controls how many decimal will be printed in the output Think about where do you need to put it
Example Input ros param set calculatordemo decimal
this will make
Example Input ros param set calculatordemo decimal
this will make
Hints:
You will need to create your custom service message
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
