当前位置:   article > 正文

qt如何添加组件ros_ros3djs的Vue组件

vue ros

qt如何添加组件ros

vue-ros3djs (vue-ros3djs)

Vue components for ros3djs with some extra functionality:

ros3djs的 Vue组件具有一些额外的功能:

  • Get pose of right click / long press

    右键单击/长按姿势

  • tween.js integration for smooth transitions

    tween.js集成可实现平稳过渡

安装 (Install)

npm install --save vue-ros3djs

组件 (Components)

Includes the following components:

包括以下组件:

  • Ros3dArrow

    Ros3d箭头

  • Ros3dAxes

    Ros3dAxes

  • Ros3dGrid

    Ros3dGrid

  • Ros3dInteractiveMarkerClient

    Ros3dInteractiveMarkerClient

  • Ros3dLaserScan

    Ros3dLaserScan

  • Ros3dMarkerClient

    Ros3dMarkerClient

  • Ros3dOccupancyGridClient

    Ros3dOccupancyGridClient

  • Ros3dPath

    Ros3dPath

  • Ros3dPointCloud2

    Ros3dPointCloud2

  • Ros3dPoseArrow

    Ros3dPoseArrow

  • Ros3dSceneNode

    Ros3dSceneNode

  • Ros3dViewer

    Ros3dViewer

用法 (Usage)

  1. <template>
  2. <ros3d-viewer :ros="ros" v-if="connected">
  3. <ros3d-axes />
  4. <ros3d-grid />
  5. <ros3d-laser-scan topic="/laserscan">
  6. </ros3d-viewer>
  7. </template>
  8. <script>
  9. import ROSLIB from 'roslib';
  10. import { Ros3dViewer, Ros3dGrid, Ros3dAxes, Ros3dLaserScan } from 'vue-ros3djs';
  11. export default {
  12. name: 'VueRos3djsDemo',
  13. components: {
  14. Ros3dViewer,
  15. Ros3dGrid,
  16. Ros3dAxes,
  17. Ros3dLaserScan
  18. },
  19. data: () => ({
  20. ros: null,
  21. connected: false
  22. }),
  23. mounted() {
  24. this.ros = new ROSLIB.Ros({
  25. url : 'ws://localhost:9090'
  26. });
  27. this.ros.on('connection', () => {
  28. this.connected = true;
  29. });
  30. }
  31. }
  32. </script>

翻译自: https://vuejsexamples.com/vue-components-for-ros3djs/

qt如何添加组件ros

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/107807
推荐阅读
相关标签
  

闽ICP备14008679号