RethinkRobotics-opensource / rosnodejs

Client library for writing ROS nodes in JavaScript with nodejs

Home Page:http://wiki.ros.org/rosnodejs/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nh.getPublishedTopics() is not a function

ding511265378 opened this issue · comments

I want to get the topics that is being sent, should I use this function(getPublishedTopics() )?
But it reminds me that is not a function. What is wrong with my usage

const rosnodejs = require('rosnodejs');
rosnode.js.initNode('my_node');
const nh = rosnodejs.nh;
console.log(nh.getPublishedTopics());

I want to get the topics that is being sent, should I use this function(getPublishedTopics() )?
But it reminds me that is not a function. What is wrong with my usage
const rosnodejs = require('rosnodejs');
rosnode.js.initNode('my_node');
const nh = rosnodejs.nh;
console.log(nh.getPublishedTopics());

resolved

I want to get the topics that is being sent, should I use this function(getPublishedTopics() )?
But it reminds me that is not a function. What is wrong with my usage
const rosnodejs = require('rosnodejs');
rosnode.js.initNode('my_node');
const nh = rosnodejs.nh;
console.log(nh.getPublishedTopics());

I want to get the topics that is being sent, should I use this function(getPublishedTopics() )?
But it reminds me that is not a function. What is wrong with my usage
const rosnodejs = require('rosnodejs');
rosnode.js.initNode('my_node');
const nh = rosnodejs.nh;
console.log(nh.getPublishedTopics());