Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move towards a someone stored in the database #37

Open
tomkimsour opened this issue Feb 20, 2023 · 0 comments
Open

Move towards a someone stored in the database #37

tomkimsour opened this issue Feb 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request Restaurant

Comments

@tomkimsour
Copy link
Member

During restaurant, the robot scans for waving hands, stores the different position and then needs to move close to one of them to take an order.

void aMoveTowardsHuman(string params, bool* run)
{
string humanName;
if (params.empty())
{
/*
robobreizh::database::VisionModel vm;
robobreizh::Person personPerson = vm.selectLastPerson();
geometry_msgs::Point personPoint = {person.pos_x,person.pos_y,person.pos_z};
ros::NodeHandle nh;
nh.subscribe("/amcl_pose",geometry_msgs::PoseWithCovarianceStamped);
geometry_msgs::PoseWithCovarianceStamped robotPose = ros::topic::waitForMessage("/amcl_pose",nh);
int targetAngle = dialog::generic::getAngleABC(personPoint, robotPose.position, robotPose);
navigation::generic::moveTowardsPosition(targetPose,t(float)argetAngle);
ROS_INFO("aMoveTowardsHuman - moving towards human");
*/
}
else if (params == "human")
{
}
else
{
if (params == "GPSR")
{
GPSRActionsModel gpsrActionsDb;
humanName = gpsrActionsDb.getSpecificItemFromCurrentAction(GPSRActionItemName::person);
}
else
humanName = params;
ROS_INFO("aMoveTowardsHuman - Moving towards specific Human called %s", humanName.c_str());
}
RoboBreizhManagerUtils::setPNPConditionStatus("NavOK");
RoboBreizhManagerUtils::pubVizBoxChallengeStep(1);
}

@tomkimsour tomkimsour self-assigned this Feb 20, 2023
@tomkimsour tomkimsour added the enhancement New feature or request label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Restaurant
Projects
None yet
Development

No branches or pull requests

1 participant