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

jpiramirez's profile - activity

2022-03-30 07:43:05 -0500 received badge  Great Answer (source)
2019-12-11 04:30:22 -0500 received badge  Good Answer (source)
2017-02-22 08:54:34 -0500 received badge  Nice Answer (source)
2016-12-05 20:31:19 -0500 received badge  Necromancer (source)
2016-02-19 14:19:17 -0500 answered a question Programmatic way to stop roslaunch

My suggestion would be to rely on one or several nodes to take down the whole roslaunch script when they finish executing. Use the required="true" attribute inside a <node> tag, so whenever your node dies or finishes it takes down all of the other nodes in the launch file.

2014-03-30 23:22:44 -0500 received badge  Nice Answer (source)
2012-08-18 22:27:31 -0500 received badge  Famous Question (source)
2012-08-18 22:27:31 -0500 received badge  Popular Question (source)
2012-08-18 22:27:31 -0500 received badge  Notable Question (source)
2012-08-16 01:19:27 -0500 received badge  Notable Question (source)
2012-08-16 01:19:27 -0500 received badge  Popular Question (source)
2012-08-16 01:19:27 -0500 received badge  Famous Question (source)
2012-06-05 20:47:44 -0500 received badge  Teacher (source)
2012-06-04 08:43:09 -0500 received badge  Supporter (source)
2012-06-02 07:41:50 -0500 received badge  Student (source)
2012-06-01 13:24:55 -0500 asked a question sending sensor_msgs/CameraInfo with rosjava

Hello,

I'm attempting to send a sensor_msgs/CameraInfo message using rosjava. The message itself gets sent just fine, but I'd like to fill in every field of the message with my correct camera calibration information. I noticed there is a setK() method, as well as setP() and others to accomplish this task.

When I try to set those fields to some values, rostopic echo reports different ones.

In my code I have:

sensor_msgs.CameraInfo caminfomsg = caminfopub.newMessage();
double[] K = {160, 0, 160, 0, 160, 120, 0, 0, 1};
caminfomsg.setK(K);

But when I run it and take a look with rostopic this is what I get:

K: [4.4e-323, 5.337368564e-315, 0.0, 5.337368564e-315, 0.0, 5.337368564e-315, 5.33542582e-315, 0.0, 0.0]

Any suggestions?

2012-05-30 16:33:24 -0500 answered a question rosjava publisher and subscriber in the same node

I moved my development from an x86 machine to a 64-bit one, running Ubuntu Precise and ROS Fuerte. My logging messages inside the subscriber started showing up on the rxconsole, so this is solved.

2012-05-30 16:30:57 -0500 received badge  Editor (source)
2012-05-29 10:33:26 -0500 answered a question Launch ROSJava nodes using Java code

I think I understand what you try to do, but I feel it contradicts the design principles behind ROS. Ideally, you would launch a bunch of nodes using a roslaunch script or something similar. Your GUI would be better focused if it interacted with said nodes through their topics. The current rosjava uses a script that executes the org.ros.RosRun class with your node class as an argument. If you really wanted to integrate a GUI + node launching, maybe you could add every JAR file generated by gradle as a dependency to your project... But since the API and almost everything in rosjava is still volatile it may be harmful to hardcode things that way.

2012-05-28 19:31:38 -0500 asked a question rosjava publisher and subscriber in the same node

If I take a single node (a class that extends AbstractNodeMain) and I include both publishers and a subscriber, the subscriber does not seem to receive any information that I publish to its topic with rostopic.

I was trying to merge both the Listener and Talker examples into a single entity that publishes using the executeCancellableLoop and subscribes to a topic with the addMessageListener method. My goal is to write a robot driver that publishes sensor data at the same time that it listens for movement commands. Can this be done?

If I avoid adding the subscriber the publisher works fine, and viceversa. If I add both things, the publisher works fine but the subscriber doesn't read any data, although the topic appears in the output of rostopic list.

I am using ROS Fuerte with the Python roscore.