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

hd271's profile - activity

2013-06-07 14:08:58 -0500 received badge  Famous Question (source)
2013-05-15 03:06:13 -0500 received badge  Teacher (source)
2013-05-01 17:22:40 -0500 answered a question rosserial_python can't connect to Arduino Leonardo

To my knowledge, you can't use the Arduino Serial library while sending/receiving ROS topics.

Since your data will be sent in the chatter.publish call, the rosserial_python node will see this data, as well as data sent with the Serial.println call, which is probably whats causing it to lose sync.

Try commenting out that Serial.println line in loop() and see if it can connect stably.

Also, I noticed that in your python solution you're using a baud rate of 115200, whereas the rosserial node is attempting to connect at 57600. Are you setting the serial rate to 115200 in your void setup() on the Arduino? You'll probably want to remove that as well as it will conflict with the rosserial configuration.

Best of luck!

2013-04-13 15:42:14 -0500 received badge  Famous Question (source)
2013-04-13 15:42:01 -0500 received badge  Supporter (source)
2013-04-11 19:05:33 -0500 received badge  Notable Question (source)
2013-04-04 22:19:47 -0500 received badge  Popular Question (source)
2013-03-09 13:01:38 -0500 received badge  Notable Question (source)
2013-03-08 15:50:38 -0500 received badge  Scholar (source)
2013-03-08 10:33:44 -0500 commented answer unable to use custom messages on arduino

Awesome, that worked for one of my machines, but the other machine i'm running gives me this error when running make_libraries.py: rospkg.common.ResourceNotFound: kobuki_qtestsuite. But as long as one of them generates them, I guess I can just copy to the other. Thanks for your help!

2013-03-08 09:34:14 -0500 received badge  Popular Question (source)
2013-03-07 11:13:12 -0500 asked a question unable to use custom messages on arduino

Hi Guys,

I'm trying to write a ros publisher on an arduino Uno using a custom message type and am running into compile errors for the arduino code. I followed the instructions here: link:http://ros.org/wiki/rosserial_arduino/Tutorials/Adding%20Custom%20Messages#Adding_Custom_Messages.28Generating_Message_Header_File.29 (Rosserial_arduino custom messages) and I'm able to include the generated header file. I then get the following error when I try to instantiate a variable of the message type:

I2C_Send_and_Receive.cpp:21:25: error: cannot declare variable ‘encoders’ to be of abstract type ‘GCRobotics::Encoder_msg’
In file included from I2C_Send_and_Receive.cpp:7:0:
/home/josh/sketchbook/libraries/ros_lib/GCRobotics/Encoder_msg.h:12:9: note:   because the following virtual functions are pure within ‘GCRobotics::Encoder_msg’:
In file included from /home/josh/sketchbook/libraries/ros_lib/std_msgs/Time.h:7:0,
                 from /home/josh/sketchbook/libraries/ros_lib/ros/node_handle.h:38,
                 from /home/josh/sketchbook/libraries/ros_lib/ros.h:38,
                 from I2C_Send_and_Receive.cpp:5:
/home/josh/sketchbook/libraries/ros_lib/ros/msg.h:44:19: note:  virtual int ros::Msg::serialize(unsigned char*) const
/home/josh/sketchbook/libraries/ros_lib/ros/msg.h:47:28: note:  virtual const char* ros::Msg::getMD5()

My code for creating it looks like this:

#include <ros.h>
#include <Wire.h>
#include <GCRobotics/Encoder_msg.h>
#include <GCRobotics/i2cData.h>
#include <std_msgs/String.h>

#include <TimerOne.h>

ros::NodeHandle n;
//std_msgs::String encoders;
GCRobotics::Encoder_msg encoders;
ros::Publisher pub("EncoderData", &encoders);

Im using Groovy and arduino 1.0.1, Any ideas on what I'm doing wrong or missing?

Thanks!

2013-03-05 20:19:33 -0500 received badge  Student (source)
2013-03-05 09:27:44 -0500 commented question Cannot run Freenect with Kinect on Roboard RB100 single board computer

Or, perhaps a better question would be, is there any way to use a separately compiled version of opencv with ros. I've compiled opencv separately with the sse flags disabled, but I don't know how to tie them into the existing ros install. Any help with this?

2013-03-05 05:13:24 -0500 asked a question Cannot run Freenect with Kinect on Roboard RB100 single board computer

Hello everyone, I'm having trouble using OpenNI or Freenect to get depth data out of a Kinect for Xbox. It is running on a Roboard RB100. Whenever I run the freenect.launch I receive the following output:

ROS_MASTER_URI=localhost:11311

process[rosout-1]: started with pid [6257]

started core service [/rosout]

process[camera_nodelet_manager-2]: started with pid [6279]

process[camera/driver-3]: started with pid [6304]

process[camera/rgb/debayer-4]: started with pid [6365]

process[camera/rgb/rectify_mono-5]: started with pid [6436]

process[camera/rgb/rectify_color-6]: started with pid [6547]

[camera_nodelet_manager-2] process has died [pid 6279, exit code -4, cmd

/opt/ros/fuerte/stacks/nodelet_core/nodelet/bin/nodelet manager __name:=camera_nodelet_manager __log:=/home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera_nodelet_manager-2.log].

log file: /home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera_nodelet_manager-2*.log

[camera/rgb/debayer-4] process has died [pid 6365, exit code 255, cmd /opt/ros/fuerte/stacks/nodelet_core/nodelet/bin/nodelet load image_proc/debayer /camera_nodelet_manager --no-bond __name:=debayer __log:=/home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-debayer-4.log].

log file: /home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-debayer-4*.log

[camera/rgb/rectify_color-6] process has died [pid 6547, exit code 255, cmd /opt/ros/fuerte/stacks/nodelet_core/nodelet/bin/nodelet load image_proc/rectify /camera_nodelet_manager --no-bond image_mono:=image_color image_rect:=image_rect_color __name:=rectify_color __log:=/home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-rectify_color-6.log].

log file: /home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-rectify_color-6*.log

[camera/rgb/rectify_mono-5] process has died [pid 6436, exit code 255, cmd /opt/ros/fuerte/stacks/nodelet_core/nodelet/bin/nodelet load image_proc/rectify /camera_nodelet_manager --no-bond __name:=rectify_mono __log:=/home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-rectify_mono-5.log].

log file: /home/gcr/.ros/log/0c591868-85b5-11e2-8bdb-001beb592637/camera-rgb-rectify_mono-5*.log

process[camera/ir/rectify_ir-7]: started with pid [6593]

process[camera/depth/rectify_depth-8]: started with pid [6646]

From the research I've done, I think the issue is with the RB100 computer (based off of a vortex86dx processor) not supporting sse, and opencv is compile to use them. the 'error code exit -4' above means illegal instruction, but I dont know if there is a way to recompile without using sse instructions. Is anyone familiar with this issue, or anyway to work around it? The processor is X86, but doesnt seem to support sse.

Thanks for your help, yell at me if any more information is needed or if I did something wrong, this is my first post here!

Thanks!