Coder Social home page Coder Social logo

navgoal_webgui's Introduction

navgoal_webgui

navgoal_webgui.mp4

A WebGUI for publishing 2D Nav Goal (geometry_msgs::PoseStamped)

This code is based on nav2djs

Install

git clone https://github.com/Decwest/navgoal_webgui.git
sudo apt update
sudo apt install -y ros-$ROS_DISTRO-roswww ros-$ROS_DISTRO-tf2-web-republisher

Launch

roslaunch navgoal_webgui webserver.launch

WebGUI URL

  • Browse in your local PC http://localhost:8085/navgoal_webgui/index.html

  • Browse in other PCs or tablets in the same network http://<your local PC's ip address>:8085/navgoal_webgui/index.html

    In Ubuntu, the ip address can be looked up as follows.

    hostname -I

Parameter

You can change the topic and tf names by modifiying parameters in the line 30 of index.html.

    //######################################################################################//
    //######################                  config                  ######################//
    //######################################################################################//
    var map_topic = '/map';
    var use_tf = true;
    var map_frame = '/map';
    var base_frame = '/base_link';
    var robot_pose = '/robot_pose';
    var topicName = '/move_base_simple/goal';
    //######################################################################################//
  • map_topic (default: '/map')

    • the name of subscribing map topic (type: nav_msgs/OccupancyGrid)
  • use_tf (default: true)

    • If true, the WebGUI obtains robot position by map_frame -> base_frame tf
      • map_frame (default: '/map')
      • base_frame (default: '/base_link')
    • If false, the WebGUI obtains robot position by robot_pose topic (type: geometry_msgs/Pose)
      • robot_pose (default: '/robot_pose')
  • topicName (default: '/move_base_simple/goal' (same as the default setting of RViz))

    • the name of publishing 2D nav goal topic (type: geometry_msgs/PoseStamped)

navgoal_webgui's People

Contributors

decwest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.