Page 1 of 1
Customized message definition for RosInterface
Posted: 02 Aug 2016, 19:30
by hypnosfeel
Hello,
Does anyone know about how to add a customized ros message to RosInterface package?
Cheers.
Re: Customized message definition for RosInterface
Posted: 02 Aug 2016, 20:11
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
Re: Customized message definition for RosInterface
Posted: 04 Aug 2016, 07:04
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
Re: Customized message definition for RosInterface
Posted: 04 Aug 2016, 10:39
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.
Re: Customized message definition for RosInterface
Posted: 05 Aug 2016, 12:32
by coppelia
What line did you add to the file programming/ros_packages/v_repExtRosInterface/meta/messages.txt?
Cheers