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

David Galdeano's profile - activity

2017-02-15 10:41:29 -0500 received badge  Commentator
2017-02-15 10:41:29 -0500 commented answer a question about Float64MultiArray

It works but maybe not in your case, as explained here: https://stackoverflow.com/questions/4...

2016-02-15 04:45:20 -0500 commented answer ROS version on RPi 2

No, since raspberry pi 2 (armv7), you can install pre build packages on Raspbian too using the Ubuntu arm installation. No need to build from sources.

2016-02-15 04:11:37 -0500 answered a question How can I use ROS with arduino robot?

Hi!

You should use rosserial_arduino package; It has a lot of tutorials and can be easily extended:

http://wiki.ros.org/rosserial_arduino...

2016-02-15 03:56:46 -0500 answered a question ROS version on RPi 2

Hi!

On raspberry pi 2 with raspbian, you should follow the arm installation:

http://wiki.ros.org/indigo/Installati...

and you can't have the desktop version, because all package haven't be build for arm processor. You can check package availability here:

http://repositories.ros.org/status_pa...

2014-02-05 21:10:14 -0500 commented answer publish a char

0 to 255 is the range of char; to use ascii use atoi() function (ascii to integer) or equivalent to make a char.

2014-02-03 19:28:18 -0500 received badge  Enthusiast
2014-02-02 22:05:14 -0500 commented answer How to publish a array msgs with large data size in Arduino?

ok, try to upgrade only the 280 (or 150) to 512 part. You can try to lower the use of nh.spinOnce() by using larger delay in your code, to be sure that the spped of usb com is not the bottleneck.

2014-02-02 20:54:28 -0500 commented answer How to publish a array msgs with large data size in Arduino?

if you just make the change on sketchbook/Libraries/ros_lib/ros.h it should be ok! Run rosrun rosserial_arduino make_libraries.py is only for the case of changing the original sources of the rosserial lib.

2014-02-02 19:10:47 -0500 answered a question How to publish a array msgs with large data size in Arduino?

changing from 6,6,150,150 to 100,100,150,150 will change the number of Publishers/Subscribers from 6 to 100 and do not change the buffer size (150). try to change:

typedef NodeHandle_<arduinohardware, 25,="" 280="" 280,=""> NodeHandle;

to

typedef NodeHandle_<arduinohardware, 25,="" 512="" 512,=""> NodeHandle;

in 'rosserial/rosserial_arduino/src/ros_lib/ros.h' if you use the ATmega328P. Dont forget to run make_libraries.py. If you are using an arduino uno, think of upgrading to a arduino mega.</arduinohardware,&gt;<>

2014-01-23 02:17:23 -0500 answered a question How we lost karma?

Downvote a question or an answer make you loose 2 karma points.

2014-01-13 03:29:52 -0500 commented answer error creating ros_lib with groovy

You must create a sketchbook/libraries folder in your home folder. The rosrun rosserial_arduino make_libraries.py can be then executed to create ros_lib directory.

2013-12-20 06:51:43 -0500 answered a question Rotating Hokuyo on the Atlas?

To make a 3D point cloud to sense the environement.

This is realy precise.

Some explaination and results here: http://www.ais.uni-bonn.de/papers/SSRR_2013_Schadler_3D_Laser_Mapping_Tracking.pdf

2013-12-19 11:25:03 -0500 commented answer Stuart platform

Kinematics loop crated in parallel robots contain physical constraints which must be solve at high rate, maybe ROS is not adapted for these constraints and cant separate the command algorithms and the motor control. You can write a small controller (IK) for the robot an take advantage of the ROS framework by using its own communication mechanisms.

2013-12-19 04:26:23 -0500 answered a question Stuart platform
2013-12-19 04:24:23 -0500 received badge  Organizer (source)
2013-12-19 03:59:57 -0500 answered a question Making Subscriber and Publisher work in the same node

I think that your: pub_data.publish(tw); and publisher related stuff must go in tour callback function.

Something like that:

class PublishData
{
  ros::NodeHandle n;
  ros::NodeHandle n1;
  geometry_msgs::Twist tw;
public:
  PublishData()
  {
    tw.linear.x = 0.1;
    ros::Publisher pub_data = n.advertise<geometry_msgs::Twist>("/mobile_base/commands/velocity", 10);
    ros::Subscriber bumper = n.subscribe("/mobile_base/events/bumper",1,callback);
    ROS_INFO("DataPublished");
    while(ros::ok())
    {
        //ROS_WARN("In Loop.");
        ros::spin();
    }
  }
  void callback(const kobuki_msgs::BumperEventConstPtr msg)
  {
     ROS_ERROR("MOVE!!! Bumper pressed.");
     ROS_INFO("MOVE!!! Bumper pressed.");
     pub_data.publish(tw);
  }
};
2013-12-19 03:48:27 -0500 commented answer Publishing .bag file for different nodes
2013-12-19 03:37:06 -0500 commented answer Publishing .bag file for different nodes

I do not understand, why would you access the data on the rosbag file, while you have the real time data published? If you still need to manipulate bag files, use: http://wiki.ros.org/rosbag/Code%20API#cpp_api but as said in the begin of the document: 'Note that the rosbag API's are not thread-safe for reading and writing any given bag file. Users of the APIs must ensure no concurrent input/output operations are performed on different threads.' So you can't read and write at the same time.

2013-12-19 01:24:12 -0500 answered a question Publishing .bag file for different nodes

Hello, you can subscribe to /chatter1 and /chatter1 with a node while rosbag is running. You can have many subscriber to one publisher.

2013-12-17 22:10:06 -0500 received badge  Nice Answer (source)
2013-12-17 05:51:53 -0500 answered a question Rosbag as a workspace

Hello, use the command tool rosbag record -a to record in a bag file.

See: http://wiki.ros.org/rosbag/Tutorials/Recording%20and%20playing%20back%20data

If you really need the API for python, see: http://wiki.ros.org/rosbag/Code%20API where read and write from python to a bag file are detailled.

2013-12-16 22:49:25 -0500 answered a question How to exchange data between nodes?

Hello, you should create an intermediate node wich subscribe to /mobile_base/events/bumper and publish on /mobile_base/commands/velocity. In this node, create your reactive behaviour.

No need of pipes and sockets, the publisher/subscriber mechanism is develloped to allows the communications.

2013-12-16 21:36:30 -0500 received badge  Critic (source)
2013-12-16 08:35:28 -0500 answered a question a question about Float64MultiArray

Declare the lib:

#include <std_msgs/Float64MultiArray.h> //include the lib

use it:

std_msgs::Float64MultiArray Atest; //declare Atest
Atest.data.resize(5); //resize the array to assign to existent values
Atest.data[4] = 5; //put the desired value
2013-12-16 04:34:07 -0500 commented answer Can I run rviz on ubuntu arm with hydro

Mostly because it is too heavy to run on the beableboard, since it is useless to take time to do the port. Some tried: http://answers.ros.org/question/52098/unable-to-compile-rviz-on-ubuntu-armhf/ but i have no echo of a succesful build.

2013-12-16 04:21:08 -0500 answered a question Can I run rviz on ubuntu arm with hydro

The Beableboard runs on an arm processor.

Rviz is likely too heavy to run on the Beaglebone.

However, you can launch rviz on a distant computer and visualise data on the distant computer using: http://wiki.ros.org/ROS/Tutorials/MultipleMachines

2013-12-16 04:00:25 -0500 commented question Loading of mechanical drawing

Hello, if you want to visualize them on rviz (ROS 3D viewer), this tread can help: http://answers.ros.org/question/10177/query-on-urdfxacro-file/

This can help too: http://wiki.ros.org/sw_urdf_exporter

2013-12-15 20:18:04 -0500 commented question error creating ros_lib with groovy

Hello, in http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup follows the steps "3.2 Installing from Source onto the ROS workstation" and "3.3 Install ros_lib into the Arduino Environment" when you install rosserial on the raspberry pi.

Instalation from binaries is broken ("3.1 Installing Binaries on the ROS workstation"). This is due to https://github.com/ros-drivers/rosserial/issues/79 and have been fixed on sources but not in the raspbian build farm.

This works with rosserial/groovy/raspbian

2013-12-13 07:12:06 -0500 received badge  Teacher (source)