Hello! I am using an Arduino uno wifi rev3, ros noetic and ubuntu 20. When I try start my ros node on the arduino with "rosrun rosserial_python serial_node.py tcp" command (after a roscore), it says "[INFO] [1512416583.799159]: ROS Serial Python Node Fork_server is: False [INFO] [1512416583.816673]: Waiting for socket connections on port 11411 waiting for socket connection".
The arduino is able to create a rosnode via serial connection and is connecting to the internet successfully. Does anybody have any idea? the code is:
Hello! I am using an Arduino uno wifi rev3, ros noetic and ubuntu 20. When I try start my ros node on the arduino with "rosrun rosserial_python serial_node.py tcp" command (after a roscore), it says "[INFO] [1512416583.799159]: ROS Serial Python Node Fork_server is: False [INFO] [1512416583.816673]: Waiting for socket connections on port 11411 waiting for socket connection". The arduino is able to create a rosnode via serial connection and is connecting to the internet successfully. Does anybody have any idea? the code is:
include
include
include <std_msgs/Float32.h>
//#define USE_USBCON
ros::NodeHandle nh;
std_msgs::Float32 str_msg; ros::Publisher chatter("chatter", &str_msg);
int temp;
void setup() { //Serial.begin(9600); nh.initNode(); nh.advertise(chatter); delay(10000);
}
void loop() { temp = 2; str_msg.data = temp; chatter.publish( &str_msg ); nh.spinOnce(); delay(200); }