mirror of
https://github.com/EECS-467-W20-RRRobot-Project/RRRobot.git
synced 2025-08-22 00:02:46 +00:00
Removed extra main functions :)
This commit is contained in:
0
rrrobot_ws/src/rrrobot/scripts/rrrobot_run_no_build.sh
Normal file → Executable file
0
rrrobot_ws/src/rrrobot/scripts/rrrobot_run_no_build.sh
Normal file → Executable file
@@ -18,9 +18,8 @@ using std::endl;
|
||||
class ObjectSpawner
|
||||
{
|
||||
public:
|
||||
ObjectSpawner(/*ros::NodeHandle *nh_, */ const std::string &model_file = "/app/rrrobot_ws/src/gazebo_models/model_mappings.txt")
|
||||
: // nh(nh_),
|
||||
DEFAULT_SPAWN_POINT(1.21825, 5.474367, 0.937978),
|
||||
ObjectSpawner(const std::string &model_file = "/app/rrrobot_ws/src/gazebo_models/model_mappings.txt")
|
||||
: DEFAULT_SPAWN_POINT(1.21825, 5.474367, 0.937978),
|
||||
CONVEYOR_WIDTH(0.391404)
|
||||
{
|
||||
// DEFAULT_SPAWN_POINT.x = 0.2516105;
|
||||
@@ -101,120 +100,6 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
||||
ObjectSpawner spawner;
|
||||
|
||||
ros::spin();
|
||||
} // y range: anything (essentially)
|
||||
// z
|
||||
msg.pose.position.x = DEFAULT_SPAWN_POINT.x() /* + some random error */;
|
||||
msg.pose.position.y = DEFAULT_SPAWN_POINT.y();
|
||||
msg.pose.position.z = DEFAULT_SPAWN_POINT.z() + 1.0;
|
||||
|
||||
pub.publish(msg);
|
||||
ros::spinOnce();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
ros::init(argc, argv, "object_spawner");
|
||||
|
Reference in New Issue
Block a user