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

cjusto's profile - activity

2019-07-18 10:58:55 -0500 received badge  Famous Question (source)
2019-02-28 00:58:26 -0500 received badge  Famous Question (source)
2016-05-12 05:21:27 -0500 received badge  Notable Question (source)
2016-02-15 09:51:31 -0500 received badge  Popular Question (source)
2016-01-20 11:20:58 -0500 asked a question Is it possible to read on I2C when using rosserial?

I just noticed some problems on my code.

I'm using a ChipKit Max32 (Arduino mega compatible) running rosserial and communicating with I2C modules, from which i receive data.

With my initial code I am able to read data on I2C bus. After running ROS, i only can send data to I2C modules.

Are there any known issues on this situation??

Thank You

2015-11-19 11:58:41 -0500 received badge  Notable Question (source)
2015-11-19 07:00:17 -0500 answered a question Problem with subscriber on Chipkit

The problem was on bad defined custom package.

Problem solved.

2015-11-19 06:58:47 -0500 received badge  Popular Question (source)
2015-11-19 06:58:23 -0500 received badge  Scholar (source)
2015-11-19 06:56:20 -0500 received badge  Notable Question (source)
2015-11-19 06:55:41 -0500 asked a question rosserial problem with 2 publishers

HI guys!

I am working on a project in which I created my own package. So far all is working fine. I have 2 messages to publish with my chipkit MAX32 (Arduino Mega, compatible).

I am able to publish correctly on 1 of them called "AGVStatus". The second one it the "RangeArray" message. I have the packge compiled with no errors.

In my code I include the .h files

#include <ros.h>
#include <agv_ip/AgvStatus.h>
#include <agv_ip/RangeArray.h>

And I declare both the same way:

agv_ip::AgvStatus estado;
ros::Publisher Status("AGVipStatus", &estado);
agv_ip::RangeArray range;
ros::Publisher Ranges("AGVipRanges", &range);

Everyhting ok when uploading to the board.

This is what I get when running only the Status message:

[INFO] [WallTime: 1447935106.608875] ROS Serial Python Node
[INFO] [WallTime: 1447935106.624654] Connecting to /dev/ttyUSB2 at 57600 baud
[INFO] [WallTime: 1447935108.767896] Note: publish buffer size is 1024 bytes
[INFO] [WallTime: 1447935108.768334] Setup publisher on AGVipleiriaStatus [agv_ipleiria/AgvStatus]

And this when running with both:

[INFO] [WallTime: 1447935805.383154] ROS Serial Python Node
[INFO] [WallTime: 1447935805.388700] Connecting to /dev/ttyUSB3 at 57600 baud
[ERROR] [WallTime: 1447935822.498212] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

(Ros indigo with Kubuntu 14.04)

Can You help me here with some tips?

2015-09-23 15:23:22 -0500 received badge  Popular Question (source)
2015-09-22 18:39:57 -0500 commented answer Adding a standard msg within the custom msg

Thank You so much Mani.

As soon as I finish all the message content, i'll make them and I'll let You know on the success.

:)

2015-09-22 17:56:51 -0500 asked a question Adding a standard msg within the custom msg

Hi! I've made my custom message following the tutorial here. It works fine. What i want to do is to include some information in my message, as a twist.msg, for instance.

How can I declare this on my .msg file? Something like this? :

geometry_msgs/Twist Base
geometry_msgs/Quaternion Turret
uint8  battery

would this work when catkin making all the custom messages?

Thanks in advance.

2015-08-12 12:31:12 -0500 received badge  Enthusiast
2015-08-05 15:43:21 -0500 commented answer Problem with subscriber on Chipkit

well, i've seen that on some projects. And it worked.

2015-08-05 14:50:01 -0500 asked a question Problem with subscriber on Chipkit

Hi. I'm working on a project using a Chipkit Max32. I made all the tutorials on the arduino ros serial and it works fine.

Now the problem is that i have a publisher on my computer (running Kubuntu 14.04) and i program my chipkit. After doing this:

rosrun rosserial_python serial_node.py /dev/ttyUSB1

I get the error:

[ERROR] [WallTime: 1438803266.042381] Creation of subscriber failed: agv_ipleiria ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks

my code is:

#include <ros.h>
#include <std_msgs/String.h>
#include <agv_ipleiria/AgvGeneral.h>


ros::NodeHandle  nh;

std_msgs::String str_msg;
ros::Publisher chatter("chatter", &str_msg);

void messageCb( const agv_ipleiria::AgvGeneral& msg){
   digitalWrite(PIN_LED2, LOW);    // set the LED off
   delay(5000);
}


ros::Subscriber<agv_ipleiria::AgvGeneral> sub("AGVipleiriaChatter", &messageCb );


char hello[13] = "hello world!";

void setup()
{
     pinMode(PIN_LED2, OUTPUT);  
  digitalWrite(PIN_LED2, LOW);    // set the LED off

  delay(5000);
  nh.initNode();
  nh.advertise(chatter);
  nh.subscribe(sub);
  digitalWrite(PIN_LED2, HIGH);   // set the LED on
  delay(700);              // wait for a second
}

void loop()
{
  str_msg.data = hello;
  chatter.publish( &str_msg );
  nh.spinOnce();
  delay(1000);
}

Where is the problem on this code?

Thank You.

2015-04-27 08:10:33 -0500 asked a question How to configure ros_serial on Chipkit

Hi everybody.

i'm working on a project with a chipkit. I need to use ros serial on it. I tried to follow the tutorials on adding new hardware but i can't figure out what to do.

On Arduino there is a folder with libraries and in it the ros_lib folder, it works fine. I tried to do the same on chipkit, but i'm no succeded on this task. The tutorial explains somehow the code needed, but where do i place the correct files?

I'm running a mchine with Kubuntu 14.04LTS, Ros Indigo, and using Mpide 0023.

Any hints on the steps i have to do?