Home | Tutorials | Wiki | Issues
Ask Your Question
1

Can't find atlas_msgs pack after 2.3 update.

asked 2013-04-09 10:54:34 -0600

Luis Filipe Rossi gravatar image

Hello,

After updating drcsim to version 2.3 it won't compile anymore my ROS application as it cannot find the package atlas_msgs anymore. How should i proceed?

Best regards,

LR

edit retag flag offensive close merge delete

Comments

I'm seeing this trying to write a python module; I have nightly build and can't find atlas_msgs or osrf_msgs

dcconner gravatar imagedcconner ( 2013-04-10 10:27:48 -0600 )edit

I have verified this with the 2.3 deb and a source build. The command rosmsg package osrf_msgs shows osrf_msgs/JointCommands, but it won't import into python. EDIT: see answer below.

scpeters gravatar imagescpeters ( 2013-04-10 11:00:42 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-04-10 13:40:00 -0600

hsu gravatar image

one alternative is to do one of below:

>> import roslib; roslib.load_manifest('atlas_msgs')

or

>> import roslib; roslib.load_manifest('any_ros_package_that_depends_on_atlas_msgs')

before

>> import atlas_msgs
edit flag offensive delete link more

Comments

Well, I am using C++ and no python. Any help on that?

Luis Filipe Rossi gravatar imageLuis Filipe Rossi ( 2013-04-10 15:04:25 -0600 )edit
0

answered 2013-04-10 18:47:46 -0600

gerkey gravatar image

A C++-specific answer that mirror the Python answer:

roscreate-pkg mypackage atlas_msgs

Inside mypackage, this C++ file will compile fine:

#include <atlas_msgs/AtlasCommand.h>
int
main(void)
{
  atlas_msgs::AtlasCommand ac;
  return 0;
}
edit flag offensive delete link more
0

answered 2013-04-10 11:17:39 -0600

scpeters gravatar image

Try following the steps in the Atlas Control with Python tutorial

Create a ros package with dependencies on atlas_msgs:

roscreate-pkg tutorial_atlas_control atlas_msgs

Then load the manifest at the start of your python program:


#!/usr/bin/env python
import roslib; roslib.load_manifest('tutorial_atlas_control')
import rospy
import atlas_msgs
edit flag offensive delete link more

Comments

WHen i tryed "roscreate-pkg mypackage atlasmsgs" before it could not find atas_msgs. I am goint to try again and if it does not work i will come back here...

Luis Filipe Rossi gravatar imageLuis Filipe Rossi ( 2013-04-10 19:18:43 -0600 )edit

You probably didn't source the drcsim setup file. Do that first, to establish your ROS environment: source /usr/share/drcsim/setup.sh.

gerkey gravatar imagegerkey ( 2013-04-11 10:55:48 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-09 10:54:34 -0600

Seen: 252 times

Last updated: Apr 10 '13