Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void track(const geometry_msgs::PoseStamped::ConstPtr& msg)
  2. {
  3. glob=*msg;
  4. if (glob.pose.position.x<19 && glob.pose.position.x>0 && glob.pose.position.y<19 && glob.pose.position.y>0 && glob.pose.position.z<2.5){
  5. isoutside=0;
  6. }
  7. else if(glob.pose.position.x>19 || glob.pose.position.x<0 || glob.pose.position.y>19 || glob.pose.position.y<0 || glob.pose.position.z>2.5)
  8. {
  9. isoutside=1;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement