ROS Application

asked 2014-12-12 06:57:44 -0500

m_ramshad gravatar image

I am new to ROS and i have successfully got through the following rosserial_arduino tutorial to blink an led connected to arduino,

http://wiki.ros.org/rosserial_arduino...

I used the three terminal command provided to blink or trigger the led,

roscore rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0 rostopic pub toggle_led std_msgs/Empty --once

But i want to write a program/application on my PC to trigger the program running on the arduino, I dont know how to do that, I need help. I also tried to right my own publishing program to the topic "toggle_led". But stucked at some where middle while creating and building a new ros package??

edit retag flag offensive close merge delete

Comments

What were you trying to do exactly when you got stuck, i.e. which commands did you execute and what command didnt work out as expected? were you following a tutorial?

dornhege gravatar image dornhege  ( 2014-12-12 07:12:13 -0500 )edit

I followed the this tutorial and i was able to execute the talker but not the listener, http://wiki.ros.org/ROS/Tutorials/Wri... , I followed the similar way to create and build my new pakge called "test_app" under the dir ~/catkin_ws/src, but i cudn't rosrun "test_

m_ramshad gravatar image m_ramshad  ( 2014-12-12 08:06:50 -0500 )edit