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

网站开发要计入无形资产吗一个网站的制作特点

网站开发要计入无形资产吗,一个网站的制作特点,网站开发 零基础,用户要承担暖气费的税吗以下代码实现了#xff1a;Interactive Marker通过topic一直发送其状态#xff0c;而不只是交互时才发送。 几个要点#xff1a; 通过定时器rospy.Timer实现PublishInteractiveMarkerServer feedback.pose的类型是geometry_msgs/Pose#xff0c;而不是geometry_msgs/PoseS…以下代码实现了Interactive Marker通过topic一直发送其状态而不只是交互时才发送。 几个要点 通过定时器rospy.Timer实现PublishInteractiveMarkerServer feedback.pose的类型是geometry_msgs/Pose而不是geometry_msgs/PoseStamped #!/usr/bin/env pythonimport rospy import copyfrom interactive_markers.interactive_marker_server import * from visualization_msgs.msg import * from geometry_msgs.msg import Point from geometry_msgs.msg import Poseclass ObstaclePublisher:def __init__(self, obs_init_position: list):# self.server Noneself.server InteractiveMarkerServer(obstacle_controls)position Point(obs_init_position[0], obs_init_position[1], obs_init_position[2])# include orientation# self.make6DofMarker(False, InteractiveMarkerControl.MOVE_ROTATE_3D, position, True)# without orientationself.make6DofMarker(False, InteractiveMarkerControl.MOVE_3D, position, False)self.ps Pose()self.ps.position position# a topic to publish obstacles pose all the timeself.pub rospy.Publisher(/obstacle_pose, Pose, queue_size1)rospy.Timer(rospy.Duration(0.02), self.publish_obs_pose)rospy.loginfo(Publishing pose of the obstacle at topic: str(self.pub.name))self.server.applyChanges()def processFeedback(self, feedback):rospy.loginfo(You are operating the obstacle.)self.ps feedback.poseself.server.applyChanges()def makeBox(self, msg):marker Marker()marker.type Marker.SPHEREmarker.scale.x msg.scale * 0.2marker.scale.y msg.scale * 0.2marker.scale.z msg.scale * 0.2marker.color.r 0.8marker.color.g 0.1marker.color.b 0.1marker.color.a 1.0return markerdef makeBoxControl(self, msg):control InteractiveMarkerControl()control.always_visible Truecontrol.markers.append(self.makeBox(msg))msg.controls.append(control)return control###################################################################### Marker Creationdef normalizeQuaternion(self, quaternion_msg):norm quaternion_msg.x**2 quaternion_msg.y**2 quaternion_msg.z**2 quaternion_msg.w**2s norm ** (-0.5)quaternion_msg.x * squaternion_msg.y * squaternion_msg.z * squaternion_msg.w * sdef make6DofMarker(self, fixed, interaction_mode, position, show_6dofFalse):int_marker InteractiveMarker()int_marker.header.frame_id worldint_marker.pose.position positionint_marker.scale 1int_marker.name Obstacleint_marker.description Obstacle# insert a obstacleself.makeBoxControl(int_marker)int_marker.controls[0].interaction_mode interaction_modeif show_6dof:control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 1control.orientation.y 0control.orientation.z 0self.normalizeQuaternion(control.orientation)control.name rotate_xcontrol.interaction_mode InteractiveMarkerControl.ROTATE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 1control.orientation.y 0control.orientation.z 0self.normalizeQuaternion(control.orientation)control.name move_xcontrol.interaction_mode InteractiveMarkerControl.MOVE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 0control.orientation.y 1control.orientation.z 0self.normalizeQuaternion(control.orientation)control.name rotate_zcontrol.interaction_mode InteractiveMarkerControl.ROTATE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 0control.orientation.y 1control.orientation.z 0self.normalizeQuaternion(control.orientation)control.name move_zcontrol.interaction_mode InteractiveMarkerControl.MOVE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 0control.orientation.y 0control.orientation.z 1self.normalizeQuaternion(control.orientation)control.name rotate_ycontrol.interaction_mode InteractiveMarkerControl.ROTATE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)control InteractiveMarkerControl()control.orientation.w 1control.orientation.x 0control.orientation.y 0control.orientation.z 1self.normalizeQuaternion(control.orientation)control.name move_ycontrol.interaction_mode InteractiveMarkerControl.MOVE_AXISif fixed:control.orientation_mode InteractiveMarkerControl.FIXEDint_marker.controls.append(control)self.server.insert(int_marker, self.processFeedback)def publish_obs_pose(self, *args):self.pub.publish(self.ps)if __name__ __main__:rospy.init_node(obstacle_controls)op ObstaclePublisher([0.6, 0.6, 0.6])rospy.spin()
http://www.hkea.cn/news/14473011/

相关文章:

  • 手机数据线东莞网站建设技术支持做外销网站服务器好吗
  • 网站哪些页面会做静态化怎么联系网站管理员
  • 怎样在门户网站做网络推广深圳注册公司需要什么条件
  • 合肥专业网站建设公司公司申请域名
  • 网站被降权表现婚庆网站制作
  • 西安网站建设公司云网潍坊手机模板建站
  • 校园网站建设报告建筑网上接活平台
  • 公司网页制作选择软件seo营销培训
  • 小语种网站建设及推广网站建设公司的前景
  • 西安易扬众和网站建设网络公司logo
  • 河南郑州网站设计公司哪个网站做高中的题好
  • 网站建设方为客户提供使用说明书学做网站论坛vip账户
  • 江苏有哪些做网站建设的公司wordpress表单文件上传
  • .net网站做优化广州深圳
  • 财经资讯网站该怎么做推广网站结构分类
  • 做网站要的软件商务网站建设策划书的格式
  • 越秀五屏网站建设通州区网站快速排名方案
  • 企业网站如何优化排名网站优化 价格查询
  • 建立个人网站的步骤有哪些企业网络采购平台
  • 网站品牌词优化怎么做Python能开发WordPress
  • 建设一个购物网站需要什么手机建筑设计app
  • 饥荒网站这么做福州seo建站
  • 长沙建长沙建网站公司网页模板psd
  • 东莞网站建设的方案常用的北京文化馆设计公司
  • 宜都市网站建设上海网站推广有哪些
  • 高端网站建设公司联系电话潍坊做网页的公司
  • 中国网站建设集团模仿大型门户网站做ppt
  • 有没有淄博张店做兼职工作的网站北京免费建站网络营销
  • 网站治做啊app简网站开发平台
  • 泉州网站建设方案详细合肥网站优化哪家好