[ros-users] ROS-NXT: Receive data from sensors

Eric Perko wisesage5001 at gmail.com
Sun Sep 5 16:23:32 UTC 2010


Juan,

'roscd nxt_msgs' should get you into that folder if your ROS system is setup
properly and that folder exists. Also, check your $ROS_PACKAGE_PATH variable
and ensure that it contains a parent directory of the nxt stack or the nxt
stack. If not, you may need to make sure to run '. ~/nxtros/setup.sh' in
your current shell or add that line to your .bashrc.

As far as it finding the message for the motors but not the sensors, what is
the specific type of the motor topic ('rostopic list -v' will be helpful
here)? It's possible the motors are a standard ROS message while the sensors
are specific to the NXT stack.

Hope that helps.
- Eric

2010/9/5 Juan Antonio Breña Moral <bren at juanantonio.info>

>  Hi Alex,
>
> but it is a bit rare, because I followed the instructions in the tutorial
> and ROS found the information about the motors but it doesn't find
> information about that NXT sensor.
>
> I have 2 questions:
>
> where is the folder nxt_msgs?
> what variables should I add in my shell?
>
> Cheers
>
> RobotNV escribió:
>
> > *domotica at domotica-laptop:~$ rostopic echo touch_sensor*
>
> *ERROR: Cannot load message class for [nxt_msgs/Contact]. Are your
> messages built?*
>
>
>  Juan, I think ROS can't find NXT-specific messages.  You either need to
> be in nxt folder or add env variables to your shell.
>
>  Alex
>
> On Sep 5, 2010, at 6:54 AM, Juan Antonio Breña Moral <
> bren at juanantonio.info> wrote:
>
>   Hi,
>
> I was doing the first lesson in the tutorial but I had a problem when I
> tried to receive data from sensors, but it is rare, but I receive data from
> motors
>
> I create a description file about the robot robot:
>
> *nxt_robot:
>     - type: touch
>       frame_id: r_touch_link
>       name: touch_sensor
>       port: PORT_1
>       desired_frequency: 10.0*
>
> when I launch the robot, ROS create an object about that sensor:
>
> *core service [/rosout] foundprocess[nxt_ros-1]: started with pid
> [7305]process[joint_state_publisher-2]: started with pid [7306]
> [INFO] 1283693800.901565: Creating touch with name touch_sensor on PORT_1*
>
> but when I type rostopic echo touch_sensor I receive the following message:
>
> *domotica at domotica-laptop:~$ rostopic echo touch_sensor
> ERROR: Cannot load message class for [nxt_msgs/Contact]. Are your messages
> built?*
>
> What happen?
>
> Cheers
>
> --
>
> Juan Antonio Breña Moralwww.juanantonio.infowww.roboticaenlaescuela.es
>
> Este mensaje (incluyendo los archivos adjuntos) es confidencial y reservado. Si Vd. lo ha recibido por error, por favor notifíquelo al emisor del mismo vía e-mail y borre el mensaje de su sistema. Cualquier uso no autorizado o divulgaciín de su contenido, ya sea en todo o en parte, está totalmente prohibido. Tenga en cuenta que los e-mails son susceptibles de ser modificados.El remitente no se hará responsable de la incorrecta o incompleta transmisión de la información contenida en esta comunicación, ni por ningún retraso en la recepción o daño a sus sistemas. el remitente no garantiza que esta comunicación se ha realizado en su integridad ni que la misma no contiene virus, intercepciones o interferencias. Este e-mail ha sido escaneado mediante la utilización de Antivirus.
>
> El tratamiento de los datos de carácter personal, así como el envío de boletines o comunicaciones realizadas por medios electrónicos, son conforme a la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal (B.O.E. de 14 de diciembre de 1999) y a la Ley 34/2002, de 11 de julio, de Servicios de la Sociedad de Información y de Comercio Electrónico (B.O.E. de 12 de julio de 2002). El tratamiento desautorizado de datos de caracter personal puede suponer una infracción de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de carácter personal. Si usted no es el destinatario que figura arriba, o la persona responsable de su entrega al mismo, deberá de abstenerse de examinar o utilizar su contenido, realizar copias o entregarlo a persona distinta. Para obtener información sobre la política de privacidad o para el ejercicio de
>  derechos de acceso, rectificación, cancelación y oposición, puede dirigirse a este correo electrónico, indicando en el asunto "Protección de Datos".
>
> This message (including any attachments) is confidential and may be privileged. If you have received it by mistake, please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. The sender shall not be liable for the improper or incomplete transmission of the information contained in this communication, nor for any delay in its receipt or damage to your system. The sender does not guarantee that the integrity of this communication has been maintained or that this communication is free from viruses, interceptions, or interference. This email has been scanned using Antivirus
>
>
>
>
>  _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
> ------------------------------
>
> _______________________________________________
> ros-users mailing listros-users at code.ros.orghttps://code.ros.org/mailman/listinfo/ros-users
>
>
>
> --
>
> Juan Antonio Breña Moralwww.juanantonio.infowww.roboticaenlaescuela.es
>
> Este mensaje (incluyendo los archivos adjuntos) es confidencial y reservado. Si Vd. lo ha recibido por error, por favor notifíquelo al emisor del mismo vía e-mail y borre el mensaje de su sistema. Cualquier uso no autorizado o divulgaciín de su contenido, ya sea en todo o en parte, está totalmente prohibido. Tenga en cuenta que los e-mails son susceptibles de ser modificados.El remitente no se hará responsable de la incorrecta o incompleta transmisión de la información contenida en esta comunicación, ni por ningún retraso en la recepción o daño a sus sistemas. el remitente no garantiza que esta comunicación se ha realizado en su integridad ni que la misma no contiene virus, intercepciones o interferencias. Este e-mail ha sido escaneado mediante la utilización de Antivirus.
>
> El tratamiento de los datos de carácter personal, así como el envío de boletines o comunicaciones realizadas por medios electrónicos, son conforme a la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal (B.O.E. de 14 de diciembre de 1999) y a la Ley 34/2002, de 11 de julio, de Servicios de la Sociedad de Información y de Comercio Electrónico (B.O.E. de 12 de julio de 2002). El tratamiento desautorizado de datos de caracter personal puede suponer una infracción de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de carácter personal. Si usted no es el destinatario que figura arriba, o la persona responsable de su entrega al mismo, deberá de abstenerse de examinar o utilizar su contenido, realizar copias o entregarlo a persona distinta. Para obtener información sobre la política de privacidad o para el ejercicio de derechos de acceso, rectificación, cancelación y oposición, puede dirigirse a este correo el
> ectrónico, indicando en el asunto "Protección de Datos".
>
> This message (including any attachments) is confidential and may be privileged. If you have received it by mistake, please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. The sender shall not be liable for the improper or incomplete transmission of the information contained in this communication, nor for any delay in its receipt or damage to your system. The sender does not guarantee that the integrity of this communication has been maintained or that this communication is free from viruses, interceptions, or interference. This email has been scanned using Antivirus
>
>
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100905/c3291c2e/attachment-0003.html>


More information about the ros-users mailing list