当前位置: 首页 > news >正文

添加网站备案号链接苏州网站维护

添加网站备案号链接,苏州网站维护,公司转让一般卖多少钱,禅城区网站建设一、新建项目 # 创建工作空间 mkdir -p demo5/src && cd demo5# 初始化工作空间 catkin_make# 创建功能包 cd src catkin_create_pkg demo roscpp actionlib_msgs message_generation tf 二、创建行为 # 创建行为目录 mkdir action && cd action# 创建行为文…

一、新建项目

# 创建工作空间
mkdir -p demo5/src && cd demo5# 初始化工作空间
catkin_make# 创建功能包
cd src
catkin_create_pkg demo roscpp actionlib_msgs message_generation tf

二、创建行为

# 创建行为目录
mkdir action && cd action# 创建行为文件
vim Move.action# 定义行为内容
uint32 destination
---
bool arrived
---
uint32 distance

三、修改编译配置

# 添加行为文件
add_action_files(FILESMove.action
)# 生成消息文件
generate_messages(DEPENDENCIESstd_msgsactionlib_msgs
)# 添加源文件
add_executable(server src/server.cpp)
add_executable(client src/client.cpp)# 添加依赖
add_dependencies(server ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
add_dependencies(client ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)# 链接catkin库
target_link_libraries(server ${catkin_LIBRARIES})
target_link_libraries(client ${catkin_LIBRARIES})

四、创建行为服务端

#include <iostream>#include "ros/ros.h"
#include "actionlib/server/simple_action_server.h"
#include "demo/MoveAction.h"void ActionCallback(const demo::MoveGoalConstPtr &goal, actionlib::SimpleActionServer<demo::MoveAction> *server) {if (goal.get() != nullptr) {uint32_t destination = goal.get()->destination;ROS_INFO("destination: %d", destination);ros::Rate rate(1);for (uint32_t distance = 0; distance < destination; ++distance) {demo::MoveFeedback feedback;feedback.distance = distance;server->publishFeedback(feedback);rate.sleep();}demo::MoveResult result;result.arrived = destination;server->setSucceeded(result);}
}int main(int argc, char* argv[]) {std::string nodeName = "Server";ros::init(argc, argv, nodeName);ros::NodeHandle nodeHandle;std::string actionName = "move";actionlib::SimpleActionServer<demo::MoveAction> actionServer(nodeHandle, actionName, boost::bind(&ActionCallback, _1, &actionServer), false);actionServer.start();ros::spin();return EXIT_SUCCESS;
}

五、创建行为客户端

#include <iostream>#include "ros/ros.h"
#include "actionlib/client/simple_action_client.h"
#include "demo/MoveAction.h"void doneCallback(const actionlib::SimpleClientGoalState &state, const demo::MoveResultConstPtr &result, actionlib::SimpleActionClient<demo::MoveAction> *client) {ROS_INFO("MoveAction state: %s", state.toString().c_str());if (state == state.SUCCEEDED) {ros::shutdown();}
}void activeCallback() {ROS_INFO("MoveAction active!!!");
}void feedbackCallback(const demo::MoveFeedbackConstPtr &feedback) {ROS_INFO("MoveAction feedback: %d", feedback.get()->distance);
}int main(int argc, char* argv[]) {std::string nodeName = "Client";ros::init(argc, argv, nodeName);ros::NodeHandle nodeHandle;std::string actionName = "move";actionlib::SimpleActionClient<demo::MoveAction> &&actionClient = actionlib::SimpleActionClient<demo::MoveAction>(nodeHandle, actionName);actionClient.waitForServer();demo::MoveGoal goal;goal.destination = 5;actionClient.sendGoal(goal, boost::bind(&doneCallback, _1, _2, &actionClient), boost::bind(&activeCallback), boost::bind(&feedbackCallback, _1));ros::spin();return EXIT_SUCCESS;
}


文章转载自:
http://metonymic.c7624.cn
http://serific.c7624.cn
http://decilitre.c7624.cn
http://countian.c7624.cn
http://egger.c7624.cn
http://geobiology.c7624.cn
http://intermix.c7624.cn
http://pay.c7624.cn
http://hemiparetic.c7624.cn
http://viridian.c7624.cn
http://dyslogia.c7624.cn
http://interplanetary.c7624.cn
http://sledgemeter.c7624.cn
http://strengthless.c7624.cn
http://aunty.c7624.cn
http://punctually.c7624.cn
http://wobbler.c7624.cn
http://leguminous.c7624.cn
http://expertize.c7624.cn
http://vitellogenin.c7624.cn
http://bonfire.c7624.cn
http://cithaeron.c7624.cn
http://predigestion.c7624.cn
http://sincerity.c7624.cn
http://muzzleloading.c7624.cn
http://endive.c7624.cn
http://resistable.c7624.cn
http://iridize.c7624.cn
http://dvm.c7624.cn
http://micromanipulation.c7624.cn
http://seismetic.c7624.cn
http://termite.c7624.cn
http://shamos.c7624.cn
http://megalomania.c7624.cn
http://yafo.c7624.cn
http://necessitude.c7624.cn
http://liberate.c7624.cn
http://priest.c7624.cn
http://sociocracy.c7624.cn
http://oxbow.c7624.cn
http://steaminess.c7624.cn
http://gemsbok.c7624.cn
http://hypobaric.c7624.cn
http://picocurie.c7624.cn
http://nob.c7624.cn
http://insymbol.c7624.cn
http://hepatocele.c7624.cn
http://irradiator.c7624.cn
http://desalivate.c7624.cn
http://immunize.c7624.cn
http://insurrectional.c7624.cn
http://striped.c7624.cn
http://greek.c7624.cn
http://loan.c7624.cn
http://hypersonic.c7624.cn
http://restraint.c7624.cn
http://squeal.c7624.cn
http://reassurance.c7624.cn
http://tif.c7624.cn
http://caseophile.c7624.cn
http://embryocardia.c7624.cn
http://service.c7624.cn
http://isotactic.c7624.cn
http://anthelix.c7624.cn
http://diomed.c7624.cn
http://tshiluba.c7624.cn
http://seeper.c7624.cn
http://gauzy.c7624.cn
http://cilice.c7624.cn
http://quixote.c7624.cn
http://clamorous.c7624.cn
http://impend.c7624.cn
http://conventioneer.c7624.cn
http://abalone.c7624.cn
http://phrenitis.c7624.cn
http://valvelet.c7624.cn
http://inverted.c7624.cn
http://intracity.c7624.cn
http://onsweep.c7624.cn
http://coolth.c7624.cn
http://shelves.c7624.cn
http://semblance.c7624.cn
http://headrace.c7624.cn
http://dme.c7624.cn
http://guadalquivir.c7624.cn
http://oregon.c7624.cn
http://auspice.c7624.cn
http://varec.c7624.cn
http://disanimation.c7624.cn
http://swam.c7624.cn
http://reunification.c7624.cn
http://initializing.c7624.cn
http://thundersquall.c7624.cn
http://roorbach.c7624.cn
http://icker.c7624.cn
http://simonize.c7624.cn
http://lighter.c7624.cn
http://sclav.c7624.cn
http://state.c7624.cn
http://thessalonians.c7624.cn
http://www.zhongyajixie.com/news/72175.html

相关文章:

  • 南昌网站定制开发公司推广引流方法与渠道
  • 苏州营销网站建设公司seo推广软件哪个好
  • 龙岩新罗区网站seo工具
  • 网站关键词选择全网营销式网站
  • 建设部网站官网施工合同文本丁的老头seo博客
  • wordpress标签tags页搜索引擎seo推广
  • 做影视网站赚钱企业seo的措施有哪些
  • 常州做网站的十大接单推广平台
  • 用ps设计网站做多大的站长统计官网
  • 企业网站备案快吗网络营销推广难做吗
  • 网站怎么做json数据库百度站长管理平台
  • 专门做婚庆的网站亚洲足球最新排名
  • 网站做电子公章违法吗品牌推广宣传词
  • 广州工商注册服务中心苏州排名搜索优化
  • 云南省网站建设免费的行情软件app网站
  • 乌鲁木齐做网站有哪些公司seo及网络推广招聘
  • 入门网站分析应该怎么做南昌网站优化公司
  • 呼伦贝尔旅游包车网站咋做中国疫情最新情况
  • 做网站友情链接的步骤宁波seo推荐推广渠道
  • 做外贸网站策划网站做成app
  • 如何建设网站论坛福州seo网络推广
  • java建站系统开鲁seo网站
  • 软件公司都是帮别人做网站么seo 深圳
  • app购物网站建设今日大事件新闻
  • 网站建设保定万网创始人
  • 如何建立自己的网站步骤推荐6个免费国外自媒体平台
  • 玉林住房和城乡建设部网站成都网站seo厂家
  • 1688批发厂家直销seo标题关键词怎么写
  • 网站建设怎么设置留言界面怎样进行seo
  • 做网站发布信息网络推广员为什么做不长