Removed extra main functions :)

This commit is contained in:
Derek Witcpalek
2020-04-19 21:27:17 -04:00
parent acf401deb2
commit 35adc72950
2 changed files with 2 additions and 117 deletions

0
rrrobot_ws/src/rrrobot/scripts/rrrobot_run_no_build.sh Normal file → Executable file
View File

View File

@@ -18,9 +18,8 @@ using std::endl;
class ObjectSpawner class ObjectSpawner
{ {
public: public:
ObjectSpawner(/*ros::NodeHandle *nh_, */ const std::string &model_file = "/app/rrrobot_ws/src/gazebo_models/model_mappings.txt") ObjectSpawner(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),
DEFAULT_SPAWN_POINT(1.21825, 5.474367, 0.937978),
CONVEYOR_WIDTH(0.391404) CONVEYOR_WIDTH(0.391404)
{ {
// DEFAULT_SPAWN_POINT.x = 0.2516105; // 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) int main(int argc, char **argv)
{ {
ros::init(argc, argv, "object_spawner"); ros::init(argc, argv, "object_spawner");