ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

nerdyTurtle's profile - activity

2019-09-21 07:04:08 -0500 received badge  Famous Question (source)
2018-02-26 01:46:39 -0500 received badge  Famous Question (source)
2017-10-02 14:44:46 -0500 received badge  Notable Question (source)
2017-08-13 21:20:02 -0500 received badge  Notable Question (source)
2017-08-13 21:20:02 -0500 received badge  Famous Question (source)
2017-07-23 04:21:07 -0500 received badge  Popular Question (source)
2017-07-23 04:21:07 -0500 received badge  Notable Question (source)
2017-05-08 15:23:51 -0500 received badge  Famous Question (source)
2017-04-19 00:41:34 -0500 received badge  Popular Question (source)
2016-12-14 18:53:29 -0500 commented question How to add a gps plugin using gazebo ui?

Thank you. Will do.

2016-12-14 11:41:02 -0500 asked a question How to add a gps plugin using gazebo ui?

Hi,

I have an iRobot Create that I could spawn into gazebo, and I would like to add a gps plugin to it in gazebo so as to send the robot to a specific gps location (within gazebo-world).

Any help with this, would be highly appreciated!

Many thanks!

2016-12-07 01:16:13 -0500 received badge  Enthusiast
2016-11-29 10:29:11 -0500 asked a question I created a Chatter.msg, how do I refer to it in roslibjs?

Hi,

Here's my Chatter.msg:

string message
int32 a
int32 b

Here's my javascript code:

var msgTopic = new ROSLIB.Topic({
    ros: ros,
    name: 'chatter',
    messageType: 'beginner_tutorials/Chatter'
});

var msg = new ROSLIB.Message({
            message: 'hello',
            a: 3,
            b: 2
});
msgTopic.publish(msg);

The Chatter.Msg is in my catkin workspace directory. Here's the python code:

import rospy
from beginner_tutorials.msg import Chatter

def callback(msg):
    rospy.loginfo("%s has a:  %d" % (msg.message, msg.a))
    rospy.loginfo("%s has b:  %d" % (msg.message, msg.b))

def listener():
    rospy.init_node('chatter_listener', anonymous = True)
    rospy.Subscriber("chatter", Chatter, callback)

I can't get anything to publish in the terminal, using the above python code and javascript code. Am I missing something? Do I need to refer to the Chatter.msg in Javascript somehow?

I would appreciate any help with this. Thank you!

2016-11-29 09:43:25 -0500 received badge  Popular Question (source)
2016-11-29 08:53:28 -0500 answered a question [roslibjs,rosbridgesuite] How to get data back from the robot in turtleSim

I was using Typescript, so I had to do add the following to the Typings file:

data:{
    ros: Ros,
    name: string,
    serviceType: string
}
2016-11-29 08:48:07 -0500 received badge  Scholar (source)
2016-11-29 08:48:04 -0500 commented answer What should be the messageType for a custom message?

Great! Thank you! :)

2016-11-29 08:47:19 -0500 received badge  Notable Question (source)
2016-11-28 19:23:34 -0500 received badge  Popular Question (source)
2016-11-28 12:09:41 -0500 received badge  Organizer (source)
2016-11-28 11:21:26 -0500 commented question [roslibjs,rosbridgesuite] How to get data back from the robot in turtleSim

@gvdhoorn will do!

2016-11-28 11:20:09 -0500 asked a question What should be the messageType for a custom message?

HI,

I created a custom ROS message:

string message
int32 a
int32 b

I will need to publish the messages from the web browser (roslibjs) and show it on the terminal, using python. Roslibjs requires us to specify a messageType when we start a topic, for example:

var msgTopic = new ROSLIB.Topic({
ros: ros,
name: 'chatter',
messageType: <messageType??>
});

I don't know what would be the messageType here, for my custom message. I would appreciate any help with this. Thank you!

2016-11-18 00:26:21 -0500 asked a question [roslibjs,rosbridgesuite] How to get data back from the robot in turtleSim

According to the roslibjs documentation, we should be able to get the data back from the robot by using a listener:

// Publish the Topic
var cmdVel = new ROSLIB.Topic({
    ros: ros,
    name: '/turtle1/cmd_vel',
    messageType: 'geometry_msgs/Twist'
});

// Subscribe to the Topic
var listener = new ROSLIB.Topic({
    ros: ros,
    name: '/listener',
    messageType: 'std_msgs/String'
});

listener.subscribe(function (message) {
    console.log("Recieved Message on: " + listener.name + ": " + message.data);
});

However, when I tried to use this, there was a compilation error that said property 'data does not exist on type 'message'.

I really need to get the turtle-robot data back to my web browser, any help with this matter would be highly appreciated.

Many thanks!