3 #include <ram_msgs/AdditiveManufacturingTrajectory.h> 4 #include <ram_utils/GetFillParameters.h> 7 #include <ram_utils/AddEntryExitStrategies.h> 10 ram_msgs::AdditiveManufacturingParams
params;
26 ram_utils::AddEntryExitStrategies srv;
28 bool success = entry_exit_strategies_client.
call(srv);
38 void updateParams(
const ram_msgs::AdditiveManufacturingParams::ConstPtr& msg)
53 bool getFillParams(ram_utils::GetFillParametersRequest &, ram_utils::GetFillParametersResponse &res)
60 int main(
int argc,
char** argv)
62 ros::init(argc, argv,
"fill_trajectory_parameters");
68 params.feed_rate = 2.0 / 60.0;
83 pub_trajectory = nh.
advertise<ram_msgs::AdditiveManufacturingTrajectory>(
"ram/trajectory", 5,
true);
86 entry_exit_strategies_client = nh.
serviceClient<ram_utils::AddEntryExitStrategies>(
87 "ram/information/add_entry_exit_strategies");
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
void publish(const boost::shared_ptr< M > &message) const
ros::Publisher pub_trajectory
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ram_msgs::AdditiveManufacturingParams params
std::unique_ptr< ros::NodeHandle > nh
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
void updateParams(const ram_msgs::AdditiveManufacturingParams::ConstPtr &msg)
ram_msgs::AdditiveManufacturingTrajectory trajectory
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
ros::ServiceClient entry_exit_strategies_client
int main(int argc, char **argv)
void tempTrajReceived(const ram_msgs::AdditiveManufacturingTrajectory::ConstPtr &msg)
std::mutex trajectory_mutex
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
bool getFillParams(ram_utils::GetFillParametersRequest &, ram_utils::GetFillParametersResponse &res)
void publishModifiedTrajectory()
ROSCPP_DECL void waitForShutdown()