ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2018-08-08 01:27:55 -0500 | marked best answer | Use an external HDMI display to show the output Hi all!! I would like to execute the rosrun command on my laptop and showing the turtlesim window on a external HDMI display by default, but I don't know how to do it. Is there any archive where I have to change the code for doing that? I say the turtlesim as an example, I want to do the same in my project. Thank you. |
2018-05-14 03:47:06 -0500 | received badge | ● Taxonomist |
2017-07-17 11:54:19 -0500 | received badge | ● Notable Question (source) |
2017-06-20 08:48:34 -0500 | received badge | ● Famous Question (source) |
2017-06-11 22:02:57 -0500 | received badge | ● Popular Question (source) |
2017-06-11 07:26:39 -0500 | asked a question | Use an external HDMI display to show the output Use an external HDMI display to show the output Hi all!! I would like to execute the rosrun command on my laptop and sh |
2016-05-23 03:14:53 -0500 | received badge | ● Famous Question (source) |
2016-05-23 03:14:53 -0500 | received badge | ● Notable Question (source) |
2016-02-16 21:33:03 -0500 | received badge | ● Notable Question (source) |
2016-02-05 11:27:28 -0500 | received badge | ● Famous Question (source) |
2016-01-28 07:36:09 -0500 | received badge | ● Famous Question (source) |
2015-11-23 19:05:53 -0500 | received badge | ● Famous Question (source) |
2015-10-30 04:48:38 -0500 | received badge | ● Famous Question (source) |
2015-10-12 11:17:00 -0500 | received badge | ● Student (source) |
2015-10-01 00:27:15 -0500 | received badge | ● Notable Question (source) |
2015-10-01 00:27:15 -0500 | received badge | ● Popular Question (source) |
2015-08-25 10:34:54 -0500 | received badge | ● Notable Question (source) |
2015-08-25 08:02:30 -0500 | commented question | error catkin_make .msg files i remove it when i copied the code here but in the real code it is. |
2015-08-25 05:16:25 -0500 | received badge | ● Popular Question (source) |
2015-08-24 13:49:16 -0500 | asked a question | error catkin_make .msg files Hi all!! I try to create a .msg files to send a value to a program. I follow the tutorials to create the msg file and .msg files, but when i run ' catkin_make' i get the following error: FIRST EDIT The first opening < i remove by accident. I am using Indigo distro to control servos using an Arduino board. The message file is: And the CmakeLists.txt is: Thanks if somebody know what is happening. |
2015-08-20 05:38:29 -0500 | asked a question | error in rosrun rosserial_python window Hi all! When i run rosrun rosserial_pyton serial_node.py /dev/ttyACM0 in a terminal it works well, but when i run rostopic pub in other terminal window i get the following error: emilio@emilio-N61Vg:~/catkin_ws$ rosrun rosserial_python serial_node.py /dev/ttyACM0 [INFO] [WallTime: 1440066369.914559] ROS Serial Python Node [INFO] [WallTime: 1440066369.920107] Connecting to /dev/ttyACM0 at 57600 baud [INFO] [WallTime: 1440066372.763812] Note: publish buffer size is 280 bytes [INFO] [WallTime: 1440066372.764439] Setup publisher on angulo [geometry_msgs/Vector3] [INFO] [WallTime: 1440066372.769408] Note: subscribe buffer size is 280 bytes [INFO] [WallTime: 1440066372.769842] Setup subscriber on posicion [geometry_msgs/Point] [INFO] [WallTime: 1440066372.774876] Setup subscriber on modo [geometry_msgs/Vector3] [WARN] [WallTime: 1440066399.909818] Serial Port read returned short (expected 24 bytes, received 0 instead). [WARN] [WallTime: 1440066399.910426] Serial Port read failure: [INFO] [WallTime: 1440066399.911157] Packet Failed : Failed to read msg data [INFO] [WallTime: 1440066399.911781] msg len is 24 [INFO] [WallTime: 1440066399.947560] Setup publisher on angulo [geometry_msgs/Vector3] [WARN] [WallTime: 1440066404.668613] Serial Port read returned short (expected 24 bytes, received 21 instead). [WARN] [WallTime: 1440066404.669382] Serial Port read failure: [INFO] [WallTime: 1440066404.670133] Packet Failed : Failed to read msg data [INFO] [WallTime: 1440066404.670843] msg len is 24 Traceback (most recent call last): File "/opt/ros/indigo/lib/rosserial_python/serial_node.py", line 82, in <module> client.run() File "/opt/ros/indigo/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 495, in run self.requestTopics() File "/opt/ros/indigo/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 392, in requestTopics self.port.flushInput() File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 500, in flushInput termios.tcflush(self.fd, TERMIOS.TCIFLUSH) termios.error: (5, 'Input/output error') emilio@emilio-N61Vg:~/catkin_ws$ Thanks if anyone know what is the problem. |
2015-08-19 03:28:23 -0500 | received badge | ● Notable Question (source) |
2015-08-18 17:01:40 -0500 | received badge | ● Popular Question (source) |
2015-08-18 16:41:18 -0500 | commented answer | enter 2 arguments into a void function I'm sorry, i make mistake copying the code. |
2015-08-18 13:14:13 -0500 | received badge | ● Famous Question (source) |
2015-08-18 13:05:50 -0500 | asked a question | enter 2 arguments into a void function Hi all!! I want to make a function that has two vectors as arguments like this: geometry_msgs::Point point; geoemtry_msgs::Point posac; geoemtry_msgs::Point suma; void make_suma ( const geometry_msgs::Point& point, const geometry_msgs::Point& posac) { suma.x=point.x + posac.x; suma.y=point.y + posac.y; suma.z=point.z + posac.z; } I get the following error when i compile it. /home/usuario/catkin_ws/src/prueba/firmware/p1.cpp:33:60: error: invalid conversion from ‘void ()(const geometry_msgs::Point&, const geometry_msgs::Point&)’ to ‘ros::Subscriber<geometry_msgs::point>::CallbackT {aka void ()(const geometry_msgs::Point&)}’ [-fpermissive] ros::Subscriber<geometry_msgs::point> sub("operacion", make_suma); In file included from /home/usuario/catkin_ws/build/prueba/ros_lib/ros/node_handle.h:84:0, from /home/usuario/catkin_ws/build/prueba/ros_lib/ros.h:38, from /home/usuario/catkin_ws/src/prueba/firmware/p1.cpp:8: /home/usuario/catkin_ws/build/prueba/ros_lib/ros/subscriber.h:65:7: error: initializing argument 2 of ‘ros::Subscriber<msgt>::Subscriber(const char, ros::Subscriber<msgt>::CallbackT, int) [with MsgT = geometry_msgs::Point; ros::Subscriber<msgt>::CallbackT = void ()(const geometry_msgs::Point&)]’ [-fpermissive] Subscriber(const char * topic_name, CallbackT cb, int endpoint=rosserial_msgs::TopicInfo::ID_SUBSCRIBER) : make[7]: * [CMakeFiles/p1.dir/p1.cpp.obj] Error 1 make[6]: * [CMakeFiles/p1.dir/all] Error 2 make[5]: * [CMakeFiles/p1.dir/rule] Error 2 make[4]: * [p1] Error 2 make[3]: * [prueba/CMakeFiles/prueba_firmware_p1] Error 2 make[2]: * [prueba/CMakeFiles/prueba_firmware_p1.dir/all] Error 2 make[1]: * [prueba/CMakeFiles/prueba_firmware_p1.dir/rule] Error 2 make: * [prueba_firmware_p1] Error 2 Invoking "make prueba_firmware_p1 -j4 -l4" failed |
2015-08-18 12:09:02 -0500 | answered a question | control servo using sensor_msgs/JointState Adolfo Rodriguez T i write here because i can write more text. So I write in void function to turn on/off a blink each time i run a rostopic pub to check if when i run rostopic pub the program enter in void function. when i pub to two servos the blink state change, but when i pub to three servos blink doesn't change, so i think the problem can be this. void servo_cb( const sensor_msgs::JointState &giro) { digitalWrite(13, HIGH-digitalRead(13)); servo.write((int)giro.position[0]); servo1.write((int)giro.position[1]); servo2.write((int)giro.position[2]); } |
2015-08-18 10:58:09 -0500 | commented question | control servo using sensor_msgs/JointState I write in void setup: unsigned num=giro.name.size(); giro.position.resize(n); giro.velo.. giro.eff.. I get the following error emilio_arduino/firmware/move.cpp:50:16: error: request for member ‘size’ in‘giro.sensor_msgs::JointState::name’, which is of non-class type ‘char**’ num=giro.name.size() |
2015-08-18 05:35:14 -0500 | commented question | control servo using sensor_msgs/JointState If i use geometry_msgs/Vector3 instead of sensor_msgs/JointState to send the position to three servos with the same code changing the struct to Vector3 type, they work well so i think servos are not the problem and i don't know why with one type of message they work and they don't with other type. |
2015-08-17 11:48:02 -0500 | received badge | ● Popular Question (source) |
2015-08-17 05:25:27 -0500 | commented question | control servo using sensor_msgs/JointState Yes, I change the pins on the board but always work well using two servos.I think the problem is related to any third servo.When i run rostopic command in a terminal i don't get any error but servos don't work. I`m new user ROS so i don't know where can be the problem. |
2015-08-17 05:01:13 -0500 | received badge | ● Enthusiast |
2015-08-16 02:09:20 -0500 | received badge | ● Notable Question (source) |
2015-08-15 11:13:38 -0500 | asked a question | Control 3 servos using sensor_msgs/JointState Hi !! I try to control three servos in an Arduino board using sensor_msgs/JointState to send the position. I write this code for two servos and they work well, but when i include one more servo.write into the void function i don't get any error and the compilation is right but they don't work and i don't know what is wrong. ros::NodeHandle nh; sensor_msgs::JointState giro; Servo servo,servo1,servo2; void servo_cb( const sensor_msgs::JointState &giro) { servo.write((int)giro.position[0]); servo1.write((int)giro.position[1]); servo2.write((int)giro.position[2]); } Please replay if you know, i need help with the final project of my career. THANKS!! ;) ros::Subscriber<sensor_msgs::jointstate> sub("servo", servo_cb); void setup() { pinMode(13, OUTPUT); nh.initNode(); nh.subscribe(sub); servo2.attach(11); servo.attach(9); servo1.attach(8); } void loop() { nh.spinOnce(); delay(1); } |
2015-08-15 11:06:05 -0500 | received badge | ● Popular Question (source) |
2015-08-13 19:14:37 -0500 | received badge | ● Notable Question (source) |
2015-08-13 11:28:00 -0500 | commented question | control servo using sensor_msgs/JointState Sorry i just edit the post ! when i upload the code in the board and run rostopic pub i don't get any error message so i think that all is ok but servos don't move to the position i indicate in the position array in the command. |
2015-08-13 08:17:43 -0500 | asked a question | control servo using sensor_msgs/JointState I want to control some servos using sensor_msgs/JointState on Arduino UNO. I'm using Indigo. I write this code called move.cpp that i upload in the board. ros::NodeHandle nh; sensor_msgs::JointState giro; Servo servo,servo1,servo2; void servo_cb( const sensor_msgs::JointState &giro) { servo.write((int)giro.position[0]); servo1.write((int)giro.position[1]); servo2.write((int)giro.position[2]); } ros::Subscriber<sensor_msgs::jointstate> sub("servo", servo_cb); void setup() { pinMode(13, OUTPUT); nh.initNode(); nh.subscribe(sub); servo2.attach(11); servo.attach(9); servo1.attach(8); } void loop() { nh.spinOnce(); delay(1); } If i try to control two servos with the same code without one of then servo.write that works well, But when i try it with three servos they don't work and any error occurs. Someone know what can be the problem? Thanks |
2015-08-13 06:16:15 -0500 | marked best answer | rostopic pub /topic_name sensor_msgs/JointState [arguments] Hi ! I run this command line: |