Listener integration in GUI

asked 2017-03-06 13:25:53 -0500

matl gravatar image

Dear all,

I'd like to integrate some kind of listener into the GUI of fermi/cartesian path planner to push the "Execute Cartesian Path" trough an external event. ( https://github.com/ros-industrial-con... )

Therefore I created a function which is called "chatterCallback". This function executes the same functions like pushing the button: void PathPlanningWidget::chatterCallback() { PathPlanningWidget::sendCartTrajectoryParamsFromUI(); PathPlanningWidget::parseWayPointBtn_slot(); }

Before that I inserted the code for listening to an topic. Manually checking the terminal I can read the data of "rostopic echo /mytopic". This, I'd like to read out: ``` int argc; char** argv; ros::init(argc, argv, "listener"); ros::NodeHandle n; ros::Subscriber sub = n.subscribe("mytopic", 1000, chatterCallback()); ros::spin();

```

I got most of the information from here: http://wiki.ros.org/ROS/Tutorials/Wri... but anyways, it is not working. Can you help me to solve this issue?

Best regards

edit retag flag offensive close merge delete