GithubHelp home page GithubHelp logo

Comments (3)

jihoonl avatar jihoonl commented on July 22, 2024

Test code to generate uuid message

import uuid_msgs.msg
import unique_id
import rospy

rospy.init_node('test_uuid')
uuid = unique_id.fromRandom()
pub = rospy.Publisher('/test_uniqueid', uuid_msgs.msg.UniqueID, latch=True)
pub.publish(unique_id.toMsg(uuid))

from rosbridge_suite.

jihoonl avatar jihoonl commented on July 22, 2024

Test javascript code

  9   // Connecting to ROS
 10   // -----------------
 11   var ros = new ROSLIB.Ros();
 12 
 13   // If there is an error on the backend, an 'error' emit will be emitted.
 14   ros.on('error', function(error) {
 15     console.log(error);
 16   });
 17 
 18   // Find out exactly when we made a connection.
 19   ros.on('connection', function() {
 20     console.log('Connection made!');
 21 
 22     var unique_sub= new ROSLIB.Topic({
 23       ros : ros,
 24       name : '/test_uniqueid',
 25       messageType : 'uuid_msgs/UniqueID'
 26     });
 27 
 28     unique_sub.subscribe(function(message) { // subscribe() ´Â µÇÁö¸¸ Á¤»óÀûÀÎ return ÀÌ ¿ÀÁö´Â ¾ÊÀ½
 29       console.log('Here');
 30   //    service_list.unsubscribe();
 31     });
 32   });
 33 
 34   // Create a connection to the rosbridge WebSocket server.
 35   ros.connect('ws://localhost:9090'); //98
 36 

from rosbridge_suite.

jihoonl avatar jihoonl commented on July 22, 2024

The patch has been merged.

from rosbridge_suite.

Related Issues (20)

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.