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

uzoayo's profile - activity

2016-04-07 02:04:22 -0500 received badge  Famous Question (source)
2015-11-13 11:48:36 -0500 received badge  Popular Question (source)
2015-11-13 11:48:36 -0500 received badge  Notable Question (source)
2015-08-02 00:47:47 -0500 asked a question bash: syntax error near unexpected token `(' from ROS Tutorial

Currently trying to follow the Gentle Intro to ROS tutorial. I'm attempting to complete chapter 3 and follow these comands

int main (int argc , char ∗∗ argv ) {
8 // Ini t i a l i z e the ROS system.
9 r o s : : i n i t ( argc , argv , " he l l o_r o s " ) ;
10
11 // Establ ish thi s program as a ROS node .
12 r o s : : NodeHandle nh ;
13
14 // Send some output as a log message .
15 ROS_INFO_STREAM( "Hel lo , ␣ROS! " ) ;

My actual commands in ubuntu are:

int main(int argc, char **argv){ros::init(argc, argv, "hello_ros");ros::NodeHandle nh;                                            ROS_INFO_STREAM("Hello, ROS!") ;}

Which is exactly what the tutorial says but my terminal keeps returning the error

bash: syntax error near unexpected token `('

Please Please help