[JdeRobot] [introrob_py] AttributeError: 'module' object has no attribute 'CMDVelData'

Alberto Martin almartinflorido at gmail.com
Sun Jun 7 16:09:15 CEST 2015


Hi Oscar,

Can you show me the content of the __init__.py file in
/usr/lib/python2.7/jderobot? Its content should equal the attached file.

regards

On Thu, Jun 4, 2015 at 5:10 PM, JoseMaria Cañas Plaza <
josemaria.plaza en gmail.com> wrote:

> Hi Oscar,
>
> the introrob.py [2] and uav_viewer [1] components have been reviewed,
> uploaded to the JdeRobot git and even a new debian package generated with
> introrob.py included. You can now test them with your ongoing mavlinkserver.
>
> Cheers,
>
> JoseMaria
> [1]
> https://github.com/RoboticsURJC/JdeRobot/tree/master/src/testing/components/uav_viewer
> [2]
> https://github.com/RoboticsURJC/JdeRobot/tree/master/src/stable/components/introrob_py
>
> On Wed, May 13, 2015 at 7:12 PM, Oscar Garcia <
> oscar.robotica en linaresdigital.com> wrote:
>
>>  El 13/05/15 a las 18:27, Alberto Martin escribió:
>>
>> the python interfaces should be in /usr/lib/python2.7/jderobot and
>> declared in /usr/lib/python2.7/jderobot/__init__.py. You can follow the
>> next instructions [1]. If you compile and install JdeRobot (github) the
>> interfaces will be copied to the correct directory.
>>
>>
>>
>> Thanks for the tip.
>>
>> I did all that steps previously. Here is more info (showing correct
>> configuration):
>>
>>  redstar en oczstar:~/Documentos/uav/introrob_py$ python main.py --Ice.Config=introrob_virtual.cfg
>> Traceback (most recent call last):
>>   File "main.py", line 33, in <module>
>>     sensor = Sensor();
>>   File "/home/redstar/Documentos/uav/introrob_py/sensors/sensor.py", line 30, in __init__
>>     self.cmd=jderobot.CMDVelData()
>> AttributeError: 'module' object has no attribute 'CMDVelData'
>> redstar en oczstar:~/Documentos/uav/introrob_py$ tail /usr/lib/python2.7/jderobot/__init__.py
>> import remoteCloud_ice
>> import remoteConfig_ice
>> import encoders_ice
>> import body_ice
>> import bodymovements_ice
>>
>> # Submodules:
>> import ardroneextra_ice
>> import cmdvel_ice
>> import navdata_ice
>> redstar en oczstar:~/Documentos/uav/introrob_py$ ls /usr/lib/python2.7/jderobot/
>> ardroneextra_ice.py   common_ice.py       __init__.py           naofollowball_ice.py   ptencoders_ice.py     sonars_ice.py
>> bodyencoders_ice.py   containers_ice.py   jcm_ice.py            naomotions_ice.py      ptmotors_ice.py       varcolor_ice.py
>> body_ice.py           datetime_ice.py     jointmotor_ice.py     navdata_ice.py         recorder_ice.py       wiimote_ice.py
>> bodymotors_ice.py     encoders_ice.py     kinectleds_ice.py     pointcloud_ice.py      remoteCloud_ice.py
>> bodymovements_ice.py  exceptions_ice.py   laser_ice.py          pose3dencoders_ice.py  remoteConfig_ice.py
>> camera_ice.py         genericData_ice.py  motors_ice.py         pose3d_ice.py          replayControl_ice.py
>> cmdvel_ice.py         image_ice.py        namingService_ice.py  pose3dmotors_ice.py    RoboCompJointMotor
>>
>>
>>
>>
>>  Actually introrob_py only supports the ardrone quadcopter (version 1
>> and 2) and the simulated ardrone for gazebo 5.
>>
>>
>>
>>
>> Sorry, I partially disagree. We are working in extend introrob_py's
>> (great) functionality and usability to another " JdeRobot-Air" projects
>> like Bix3 (Jose Antonio) and Phantom FX-61 (mine).
>>
>> As you can see there is at least one new component (pymavlink or
>> BixServer, python based) that is compatible with introrob_py:
>> http://jderobot.org/Jafernandez#Developing_Bix3_driver_.28bixServer.29
>>
>> Next one will be mine, mavlinkserver (C++ based), when I could test it
>> with my component (I'll try to install virtual machine provided in your
>> link to save time).
>>
>> Thanks again.
>>
>> _______________________________________________
>> Jde-developers mailing list
>> Jde-developers en gsyc.es
>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>>
>>
>
>
> --
> Universidad Rey Juan Carlos
> http://gsyc.urjc.es/jmplaza
>
> _______________________________________________
> Jde-developers mailing list
> Jde-developers en gsyc.es
> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20150607/69ce9524/attachment.htm 
------------ próxima parte ------------
# Generated by slice2py - DO NOT EDIT!
#

import Ice
Ice.updateModule("jderobot")

# Modules:
import laser_ice
import naomotions_ice
import recorder_ice
import sonars_ice
import bodymovements_ice
import bodymotors_ice
import naofollowball_ice
import pose3dmotors_ice
import referee_ice
import datetime_ice
import exceptions_ice
import navdata_ice
import common_ice
import ptmotors_ice
import camera_ice
import body_ice
import kinectleds_ice
import cmdvel_ice
import wiimote_ice
import bodyencoders_ice
import replayControl_ice
import jcm_ice
import encoders_ice
import image_ice
import ptencoders_ice
import motors_ice
import remoteConfig_ice
import remoteCloud_ice
import pointcloud_ice
import containers_ice
import genericData_ice
import namingService_ice
import ardroneextra_ice
import pose3dencoders_ice
import varcolor_ice
import pose3d_ice

# Submodules:


More information about the Jde-developers mailing list