ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to use cereal_port in ros

asked 2013-01-15 21:14:46 -0500

luxifu1989 gravatar image

updated 2013-01-15 22:14:43 -0500

KruseT gravatar image

Hello I use "sudo apt-get ros-electric-serial-communication" to install serial-communication in my computer. And I use the example code

#include <ros/ros.h>
#include <cereal_port/CerealPort.h>

  ....

But the code can't be compiled, the error is: cereal_port/CerealPort.h:no such file or directory.

Can anyone help me with my problem? Thank you.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2013-01-15 22:18:26 -0500

KruseT gravatar image

The error is to be fixed in your CMakeLists.txt file and manifest.xml.

As the Page here says: http://ros.org/wiki/cereal_port

"make sure you have the serial_communication stack installed and don't forget to add cereal_port as a dependency on your package"

So install ros-fuerte-serial-communication unless you already have, then add

<depend package="cereal_port" />

to your manifest.xml. That should do the trick.

edit flag offensive delete link more
0

answered 2013-01-17 15:30:10 -0500

luxifu1989 gravatar image

Thank you,Sir. It really works.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-15 21:14:46 -0500

Seen: 731 times

Last updated: Jan 17 '13