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

NullX4's profile - activity

2022-02-01 22:23:31 -0500 received badge  Famous Question (source)
2017-11-14 22:28:33 -0500 received badge  Student (source)
2017-02-20 13:13:03 -0500 received badge  Famous Question (source)
2015-02-11 03:34:32 -0500 received badge  Famous Question (source)
2015-01-27 16:05:53 -0500 received badge  Popular Question (source)
2015-01-27 16:05:53 -0500 received badge  Notable Question (source)
2014-08-15 10:37:20 -0500 received badge  Popular Question (source)
2014-08-15 10:37:20 -0500 received badge  Notable Question (source)
2014-07-23 00:46:27 -0500 received badge  Famous Question (source)
2014-06-04 20:40:29 -0500 received badge  Notable Question (source)
2014-03-21 10:01:54 -0500 asked a question Bumpers and p2os

Hi, I have discovered that p2os does not provide bumpers access, is there any way to do it by myself?

Thanks in advance.

2014-03-17 06:06:45 -0500 received badge  Notable Question (source)
2014-03-15 01:18:31 -0500 asked a question never mind

Never mind

2014-03-15 01:11:57 -0500 commented answer Getting sonar and bumper data p2os

So what can I do to access to that data?

2014-03-15 01:11:00 -0500 received badge  Popular Question (source)
2014-03-12 05:41:56 -0500 received badge  Enthusiast
2014-03-11 07:06:29 -0500 commented answer Getting sonar and bumper data p2os

Thank you very much, but what about the bumpers?

2014-03-08 01:49:36 -0500 asked a question Getting sonar and bumper data p2os

Hi, I just wanted to know if there is some example on getting sonar and bumper data from a pioneer3dx using p2os, I can't find anything. I thought it was like getting pose data but now I think it's nothing like that. Can you help me?

It seems like p2os does not offer access to bumper data, but is it possible in any way?

Thanks in advance.

2014-03-08 00:57:44 -0500 asked a question ParameterTree rosjava

Hi, I'm trying to do a simple test to use a parameter tree in my code.

I have the following:

package org.ros.rosjava_tutorial_pubsub;

import org.ros.concurrent.CancellableLoop;
import org.ros.namespace.GraphName;
import org.ros.node.AbstractNodeMain;
import org.ros.node.ConnectedNode;
import org.ros.node.NodeMain;
import org.ros.node.topic.Publisher;
import org.ros.node.parameter.ParameterTree;

public class test extends AbstractNodeMain {
@Override
public GraphName getDefaultNodeName() {
    return GraphName.of("rosjava_tutorial_pubsub/test");
}

@Override
public void onStart(final ConnectedNode connectedNode) {
    final Publisher<geometry_msgs.Twist> publisher = connectedNode
            .newPublisher("/cmd_vel", geometry_msgs.Twist._TYPE);


    connectedNode.executeCancellableLoop(new CancellableLoop() {
        ParameterTree params = connectedNode.newParameterTree();
        params.set("rosjava_tutorial_pubsub/test/time", 50);
        int max=params.getInteger("rosjava_tutorial_pubsub/test/time");
        int contador=0;
        @Override
        protected void loop() throws InterruptedException {
            geometry_msgs.Twist cmd_msg = publisher.newMessage();
            if (contador<max) cmd_msg.getLinear().setX(0.5); // m/s
            else cmd_msg.getLinear().setX(0);
            publisher.publish(cmd_msg);
            Thread.sleep(100);
            contador++;
        }
    });
}
}

And the compiler says:

/home/user-linux/ros_ws/src/rosjava_foo/dude/src/main/java/org/ros/rosjava_tutorial_pubsub/test.java:26: <identifier> expected
        params.set("rosjava_tutorial_pubsub/test/time", 50);
                  ^
/home/user-linux/ros_ws/src/rosjava_foo/dude/src/main/java/org/ros/rosjava_tutorial_pubsub/test.java:26: illegal start of type
            params.set("rosjava_tutorial_pubsub/test/time", 50);
                       ^
/home/user-linux/ros_ws/src/rosjava_foo/dude/src/main/java/org/ros/rosjava_tutorial_pubsub/test.java:26: illegal start of type
            params.set("rosjava_tutorial_pubsub/test/time", 50);

I don't know what else to do. Any suggestions?

Thank you very much for your time.

2014-03-08 00:53:22 -0500 received badge  Supporter (source)
2014-03-08 00:53:16 -0500 received badge  Scholar (source)
2014-03-08 00:53:12 -0500 commented answer Problems installing p2os on hydro

Thanks, it worked!

2014-03-08 00:52:41 -0500 received badge  Popular Question (source)
2014-02-02 10:44:46 -0500 received badge  Editor (source)
2014-02-02 03:48:13 -0500 asked a question Problems installing p2os on hydro

Hi, I'm new at ROS and I'm trying to install p2os so I can just move my Pioneer. While following the setup tutorial (htt.p://wiki.ros.org/p2os-vanderbilt/Tutorials/Setup), at this step "cd src && git clone htt.p://www.hmt-git.com/p2os.git" i got this message "error: Failed connect to www.hmt-git.com:80 ; Connection refused while accessing htt.p://www.hmt-git.com/p2os.git/info/refs". Any suggestions?

Thanks for reading.