Question: Write code to identify if people are standing in a line and if people are standing in a circle. This should be a standalone node

Write code to identify if people are standing in a line and if people are standing in a circle. This should be a standalone node that takes in a People message (like from the leg_(d)etector node) and updates the name string to prepend the person name with the group name (i.e., person_(1) would become circle_(1)_(p)erson_(1) or line_(1)_(p)erson_(1)). This new topic should be published on a topic: ()/(robo)(t_(0))/(d)etected_(g)roups please

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 Programming Questions!