Hello,
Does anyone know about how to add a customized ros message to RosInterface package?
Cheers.
Customized message definition for RosInterface
Re: Customized message definition for RosInterface
Hello,
quoting coppelia in this post:
To compile the RosInterface package, take a look at this tutorial
Regards
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
-
- Posts: 22
- Joined: 03 Mar 2014, 16:05
Re: Customized message definition for RosInterface
Hello,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
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
Cheers
Re: Customized message definition for RosInterface
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.
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.
Re: Customized message definition for RosInterface
What line did you add to the file programming/ros_packages/v_repExtRosInterface/meta/messages.txt?
Cheers
Cheers