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

rosjava_core not compiling with messsage error

asked 2012-04-13 06:40:46 -0600

dfseifer gravatar image

I am trying to build rosjava_core using the command:

./gradlew install

and getting the following error output (only the seeming relevant error included):

:rosjava_bootstrap:jar

:rosjava_messages:generateSources

Exception in thread "main" java.util.NoSuchElementException: No message definition available for: move_arm_msgs/MoveArmGoal at org.ros.internal.message.MessageDefinitionProviderChain.get(MessageDefinitionProviderChain.java:51) at org.ros.internal.message.DefaultMessageFactory.newFromType(DefaultMessageFactory.java:38) at org.ros.internal.message.MessageFieldType.getDefaultValue(MessageFieldType.java:41) at org.ros.internal.message.ScalarField.newValue(ScalarField.java:36) at org.ros.internal.message.MessageContext.addValueField(MessageContext.java:83) at org.ros.internal.message.MessageContextFactory$1.scalar(MessageContextFactory.java:55) at org.ros.internal.message.MessageDefinitionParser.parseField(MessageDefinitionParser.java:165) at org.ros.internal.message.MessageDefinitionParser.parse(MessageDefinitionParser.java:104) at org.ros.internal.message.MessageContextFactory.newFromMessageDeclaration(MessageContextFactory.java:73) at org.ros.internal.message.MessageInterfaceBuilder.build(MessageInterfaceBuilder.java:114) at org.ros.internal.message.GenerateInterfaces.writeServiceInterfaces(GenerateInterfaces.java:135) at org.ros.internal.message.GenerateInterfaces.generate(GenerateInterfaces.java:152) at org.ros.internal.message.GenerateInterfaces.main(GenerateInterfaces.java:170)

It should be noted that MoveArmGoal.java does exist in rosjava_messages. Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-15 06:04:11 -0600

dfseifer gravatar image

OK, I figured out the problem. I had some code written for diamondback that had references to deprecated messages in my workspace. Creating a clean workspace, with only the electric stacks and none of my own code fixed the problem.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-13 06:40:46 -0600

Seen: 190 times

Last updated: Apr 15 '12