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