Customized message definition for RosInterface

Typically: "How do I... ", "How can I... " questions
Post Reply
hypnosfeel
Posts: 22
Joined: 03 Mar 2014, 16:05

Customized message definition for RosInterface

Post by hypnosfeel »

Hello,

Does anyone know about how to add a customized ros message to RosInterface package?

Cheers.

Billie1123

Re: Customized message definition for RosInterface

Post by Billie1123 »

Hello,

quoting coppelia in this post:
coppelia wrote: If you need a new message to be supported, simply edit the file programming/ros_packages/v_repExtRosInterface/meta/messages.txt and recompile the package v_repExtRosInterface.

To compile the RosInterface package, take a look at this tutorial

Regards

hypnosfeel
Posts: 22
Joined: 03 Mar 2014, 16:05

Re: Customized message definition for RosInterface

Post by hypnosfeel »

Billie1123 wrote:Hello,

quoting coppelia in this post:
coppelia wrote: If you need a new message to be supported, simply edit the file programming/ros_packages/v_repExtRosInterface/meta/messages.txt and recompile the package v_repExtRosInterface.

To compile the RosInterface package, take a look at this tutorial

Regards
Hello,

Thank you for your reply. But it doesn't work in my case.

see output of compiling below:

Code: Select all

Traceback (most recent call last):
  File "/home/robot/catkin_ws/src/v_repExtRosInterface/tools/generate_ros_stuff.py", line 722, in <module>
    main(len(argv), argv)
  File "/home/robot/catkin_ws/src/v_repExtRosInterface/tools/generate_ros_stuff.py", line 654, in main
    msg_fields[msg] = get_msg_fields(msg)
  File "/home/robot/catkin_ws/src/v_repExtRosInterface/tools/generate_ros_stuff.py", line 118, in get_msg_fields
    return get_fields(lines)
  File "/home/robot/catkin_ws/src/v_repExtRosInterface/tools/generate_ros_stuff.py", line 106, in get_fields
    t = TypeSpec(tokens[0])
  File "/home/robot/catkin_ws/src/v_repExtRosInterface/tools/generate_ros_stuff.py", line 56, in __init__
    raise ValueError('bad type: %s' % s)
ValueError: bad type: ps_msg_header
make[2]: *** [generated/adv.cpp] Error 1
make[2]: *** Deleting file `generated/adv.cpp'
make[1]: *** [CMakeFiles/v_repExtRosInterface.dir/all] Error 2
make: *** [all] Error 2
Does anyone know how to resolve this?

Cheers

Billie1123

Re: Customized message definition for RosInterface

Post by Billie1123 »

Humm... did you specify the full message name? I.e: yourPackage/yourMessage.

The error is about a missing '/' somewhere, but I do not know python and I am not sure about what "generate_ros_stuff.py" does.

Let's see if the admins know what that error means.

Regards.

coppelia
Site Admin
Posts: 10504
Joined: 14 Dec 2012, 00:25

Re: Customized message definition for RosInterface

Post by coppelia »

What line did you add to the file programming/ros_packages/v_repExtRosInterface/meta/messages.txt?

Cheers

Post Reply