Ask Your Question

andreasw's profile - activity

2014-04-19 09:58:39 -0500 received badge  Famous Question (source)
2014-01-28 17:26:48 -0500 marked best answer Installing rosjava_messages fails missing class CircularBlockingDeque

Hi everyone,

I was trying to set up a new rosjava environment on Ubuntu 11.04 and ROS electric following the build guide. Building rosjava_messages fails as org.ros.concurrent.EventDispatcher.java (and others are missing) class org.ros.concurrent.CircularBlockingDequeue.

> Building > :rosjava_messages:compileJava > Resolving dependencies     
':rosjava_me:rosjava_messages:compileJava
:rosjava_messages:processResources UP-TO-DATE
:rosjava_messages:classes
:rosjava_messages:jar
:rosjava:compileJava       
/home/andreas/workspace/rosjava_core/rosjava/src/main/java/org/ros/concurrent/EventDispatcher.java:29: cannot find symbol
symbol  : class CircularBlockingDeque
location: class org.ros.concurrent.EventDispatcher<T> private final CircularBlockingDeque<SignalRunnable<T>> events;

Interestingly org.ros.concurrent.CircularBlockingQueue is there.

Could somebody please deploy CircularBlockingDequeue?

Thank you!

Best regards, Andreas

2014-01-28 17:26:44 -0500 marked best answer nxt_lejos Tutorial vs. rosjava

Hi,

I'm unable to reconstruct the nxt_lejos Getting Started Tutorial as "roslaunch proxy.launch" yields an error about missing rosjava_bootstrap run.py:

user@ubuntu:~/ros_workspace/lejos/learning_nxt_lejos$ roslaunch proxy.launch
... logging to /home/user/.ros/log/e479cc26-c074-11e1-8379-000c29dc495d/roslaunch-ubuntu-3394.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:42262/

SUMMARY
========

PARAMETERS
 * /rosversion
 * /connection
 * /rosdistro
 * /nxt_robot
 * /brick_name

NODES
  /
    nxt_lejos_proxy (rosjava_bootstrap/run.py)

auto-starting new master
process[master]: started with pid [3408]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to e479cc26-c074-11e1-8379-000c29dc495d
process[rosout-1]: started with pid [3421]
started core service [/rosout]
ERROR: cannot launch node of type [rosjava_bootstrap/run.py]: Cannot locate node of type [run.py] in package [rosjava_bootstrap]

The file run.py is missing <node pkg="rosjava_bootstrap" type="run.py" args="nxt_lejos_proxy org.lejos.ros.nodes.ROSProxy" name="nxt_lejos_proxy" output="screen">

which results from trying to perform run.py from rosjava_bootstrap as defined in proxy.launch:

<node pkg="rosjava_bootstrap" 
    type="run.py" 
    args="nxt_lejos_proxy org.lejos.ros.nodes.ROSProxy" 
    name="nxt_lejos_proxy" 
    output="screen">

As current rosjava_bootstrap lacks such a file, this obviously fails.

How is one supposed to reconstruct the Getting Started Tutorial with current rosjava_core?

Best regards, Andreas

2014-01-28 17:26:19 -0500 marked best answer How to use ROS to control mobile Lego Mindstorms robots? (was: ROS on Lego NXT over Wifi)

Hi,

has anybody successfully connected to a NXT using ROS (e.g. nxt_lejos or nxt_ros) over remotely?

Which hardware did you use? How much effort did you put into making it work?

Best regards,

Andreas

2014-01-28 17:26:08 -0500 marked best answer Building nxt_lejos fails finding rosjava.mk

Hi everybody,

I'm currently trying to connect Lego Mindstorms NXT to ROS via rosjava as described here, but the installation fails at nxt_lejos_lcp_proxy with

Makefile:1: /home/andreas/workspace/rosjava_core/rosjava_bootstrap/rosjava.mk: File or directory not found

I believe this is due to rosjava now using gradle instead of the previous rosmake driven build process, but unfortunately I've got no idea how to fix this. I don't want to revert back to an earlier version of rosjava.

Is it possible to use the current rosjava with nxt_lejos?

Best regards, Andreas

2014-01-28 17:25:47 -0500 marked best answer rosjava & Gazebo: Problem with sim time?

Hi,

I've ran into a problem trying to connect a rosjava node to gazebo running turtlesim. If /use_sim_time is true, rosjava crashes while trying to instantiate the logger:

Loading node class: de.se.rosjava.Main
May 20, 2012 1:05:38 PM org.ros.internal.node.client.Registrar <init>
INFO: MasterXmlRpcEndpoint URI: http://localhost:11311
May 20, 2012 1:05:38 PM org.ros.internal.node.client.Registrar onPublisherAdded
INFO: Registering publisher: Publisher<PublisherDefinition<PublisherIdentifier<NodeIdentifier</TurtleSimJava/Main, http://127.0.0.1:36053/>, TopicIdentifier</rosout>>, Topic<TopicIdentifier</rosout>, TopicDescription<rosgraph_msgs/Log, acffd30cd6b6de30f120938c17c593fb>>>>
May 20, 2012 1:05:39 PM org.ros.internal.node.client.Registrar callMaster
INFO: Response<Success, Registered [/TurtleSimJava/Main] as publisher of [/rosout], [http://ubuntu:45371/]>
May 20, 2012 1:05:39 PM org.ros.internal.node.topic.DefaultPublisher$1 onMasterRegistrationSuccess
INFO: Publisher registered: Publisher<PublisherDefinition<PublisherIdentifier<NodeIdentifier</TurtleSimJava/Main, http://127.0.0.1:36053/>, TopicIdentifier</rosout>>, Topic<TopicIdentifier</rosout>, TopicDescription<rosgraph_msgs/Log, acffd30cd6b6de30f120938c17c593fb>>>>
May 20, 2012 1:05:39 PM org.ros.internal.node.client.Registrar onSubscriberAdded
INFO: Registering subscriber: Subscriber<Topic<TopicIdentifier</clock>, TopicDescription<rosgraph_msgs/Clock, a9c97c1d230cfc112e270351a944ee47>>>
May 20, 2012 1:05:39 PM org.ros.internal.node.client.Registrar callMaster
INFO: Response<Success, Subscribed to [/clock], [http://ubuntu:52317/]>
May 20, 2012 1:05:39 PM org.ros.internal.node.topic.DefaultSubscriber$1 onMasterRegistrationSuccess
INFO: Subscriber registered: Subscriber<Topic<TopicIdentifier</clock>, TopicDescription<rosgraph_msgs/Clock, a9c97c1d230cfc112e270351a944ee47>>>
May 20, 2012 1:05:39 PM org.ros.internal.node.RosoutLogger info
INFO: 
>>> Starting...

INFO: Subscriber registered: Subscriber<Topic<TopicIdentifier</clock>, 
TopicDescription<rosgraph_msgs/Clock, a9c97c1d230cfc112e270351a944ee47>>> 
May 20, 2012 12:43:28 PM org.ros.internal.node.RosoutLogger info

Exception in thread "pool-1-thread-9" java.lang.NullPointerException at 
  com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) at 
  org.ros.time.ClockTopicTimeProvider.getCurrentTime(ClockTopicTimeProvider.java:58) at 
  org.ros.internal.node.DefaultNode.getCurrentTime(DefaultNode.java:377) at 
  org.ros.internal.node.RosoutLogger.publish(RosoutLogger.java:58) at
  org.ros.internal.node.RosoutLogger.info(RosoutLogger.java:134) at 
  de.se.rosjava.Main.onStart(Main.java:28) at 
  org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:511) at 
  org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:508) at 
  org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:117) at 
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at 
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at 
  java.lang.Thread.run(Thread.java:679) ^C

If /use_sim_time is set to false, the node stops at ">>> Starting..." and seems to wait indefinitely (at least >= 10 min).

Did I miss something regarding rosjava and simulation / simulated time?

Thanks in advance!

Best regards, Andreas

P.S: The node causing this behaviour is

public class Main extends AbstractNodeMain {  
  Log log;  
  private Publisher<geometry_msgs.Twist> publisher;  

  @Override
  public void onStart(ConnectedNode connectedNode) {
    log = connectedNode.getLog();
    log.info("\n>>> Starting...\n");       

    publisher = connectedNode.newPublisher("cmd_vel", geometry_msgs.Twist._TYPE);        
    publisher.publish(createForwardTwist(1.0));
  }
  //...
}
2014-01-28 17:25:25 -0500 marked best answer Installing rosjava android_core is missing compressed_visualization_transport_msgs

I'm trying to install android_core as described here, but

1) '/home/andreas/workspace/android_core/android_core$ ./gradlew debug'

What went wrong: Execution failed for task ':android_acm_serial:updateProject'. A problem occurred starting command 'android'.

2) 'android_core/android_acm_serial$ gradle debug' fails at building android_honeycomb_mr2

[javac] /home/andreas/workspace/android_core/android_honeycomb_mr2/ src/org/ros/android/view/visualization/layer/CompressedBitmapLayer.java:42:

package compressed_visualization_transport_msgs does not exist

3) Building /home/andreas/workspace/google (as proposed here) runs successfully, while rosmake'ing it fails on several dependencies (I though rosmake --rosdep-install should take care of this; could it be my rosmake is broken? how do I test rosmake anyway?)

After installing lse_xsens_mti, cereal port, hector_mapping and hector_imu_attitude_to_tf manually (i.e. checkout each package and run rosmake for it) '/home/andreas/workspace/google$ rosmake' ran without failures.

Unfortunately, 'android_core/android_acm_serial$ gradle debug' still claims that 'package compressed_visualization_transport_msgs does not exist' as above.

Looking at 'rospack --list-names', there are

  • (the manually installed) lse_xsens_mti, cereal_port, hector_mapping, hector_imu_attitude_to_tf
  • rosjava, rosjava_tutorial_services, rosjava_messages, rosjava_bootstrap, rosjava_geometry, rosjava_actionlib, rosjava_actionlib_tutorial, rosjava_tutorial_pubsub,
  • polling_input_stream
  • compressed_visualization_transport_msgs
  • compressed_visualization_transport
  • google_handheld_slam
  • hokuyo
  • android_tutorial_image_transport, android_tutorial_camera, android_acm_serial, android_tutorial_hokuyo, android_tutorial_teleop, android_tutorial_pubsub, android_gingerbread, android_honeycomb_mr2
  • compressed_image_transport
  • ...

So what did I miss to build android_core?

Thanks in advance!

Best regards, Andreas

@Gemini: It was something about my android setup but unrelated to ROS. Sorry I can't remember how I've solved it.

2014-01-28 17:25:24 -0500 marked best answer Run ROS on an Android Smartphone?

Hi,

is it possible to run the whole ROS infrastructure on a (modern) android smartphone? Searching the web just yielded tons of pages about android talking to a ROS host..

I've got some LEGO Mindstorms at hand and want to use these with rosjava (and lejos) to develop mobile robotics applications, USB and Bluetooth restrict their range to uselessness.

Thank you in advance!

Best regards, Andreas

2014-01-28 17:25:14 -0500 marked best answer rosjava and eclipse projects

Hi all,

why do rosjava projects with generated eclipse files (./gradlew foo:eclipse) require a rosjava project and why does this require several "apache_xmlrpc_*" projects?

Is it possible to use a rojava eclipse project without these dependencies?

Best regards, Andreas

2013-09-18 05:20:05 -0500 received badge  Taxonomist
2013-06-20 04:43:20 -0500 received badge  Great Question (source)
2013-03-11 14:25:24 -0500 marked best answer Building rosjava fails at task ':apache_xmlrpc_common:compileJava'

Hi,

I'm currently setting up an Ubuntu 11.10 with ROS Electric to use rosjava. The build tools are ant 1.8, maven 2.2 and rosws.

Installing rosjava as described link:here unfortunately fails at building the task ':apache_xmlrpc_common:compileJava' with error message:

Building > :apache_xmlrpc_common:compileJava > Resolving dependencies ':apache:apache_xmlrpc_common:compileJava FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':apache_xmlrpc_common:compileJava'. java.lang.NullPointerException (no error message)

I've got no clue how to fix this; is there anything I missed?

Thanks in advance!

Best regards, Andreas

2013-03-10 23:09:17 -0500 received badge  Good Question (source)
2013-01-27 18:47:14 -0500 received badge  Famous Question (source)
2012-12-06 22:52:46 -0500 received badge  Nice Question (source)
2012-11-29 03:07:40 -0500 received badge  Notable Question (source)
2012-10-18 08:15:00 -0500 received badge  Famous Question (source)
2012-10-18 08:15:00 -0500 received badge  Notable Question (source)
2012-10-18 08:15:00 -0500 received badge  Popular Question (source)
2012-10-12 05:27:31 -0500 received badge  Popular Question (source)
2012-10-12 05:27:31 -0500 received badge  Notable Question (source)
2012-10-06 06:47:33 -0500 received badge  Student (source)
2012-09-16 15:34:47 -0500 received badge  Notable Question (source)
2012-09-16 15:34:47 -0500 received badge  Famous Question (source)
2012-09-02 01:13:20 -0500 received badge  Famous Question (source)
2012-08-28 07:44:18 -0500 commented question Installing rosjava_messages fails missing class CircularBlockingDeque

Damons answer - which I can't comment on Chrome 20.0.1132.47 right now - was correct. Updating rosjava ("rosws remove rosjava_core" etc.) fixed this.

2012-08-28 07:42:29 -0500 received badge  Popular Question (source)
2012-08-28 07:42:26 -0500 received badge  Popular Question (source)
2012-08-28 07:42:26 -0500 received badge  Notable Question (source)
2012-08-28 07:42:26 -0500 received badge  Famous Question (source)