Ask Your Question

vmatos's profile - activity

2017-09-15 05:04:39 -0500 received badge  Nice Answer (source)
2017-04-25 09:35:43 -0500 commented question How do I send an array of int16's using rosserial

Please provide more information. What do you mean "it doesn't work" ?. Does it compile? Does it communicate? Does it rec

2017-04-12 11:33:27 -0500 received badge  Critic (source)
2017-04-12 05:30:32 -0500 answered a question Ros Arduino link problem

I think you forgot to advertise the topic after initlizing the node:

nh.initNode();
nh.advertise(pu);

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

Tip: Before trying to connect using rosserial, check if the Arduino is still running: blinking leds or something.

For formating: There's a button with zeros/ones in the top.

2017-03-27 05:19:25 -0500 answered a question Kinetic error: opencv2/core/core.hpp No such file or directory

Looks like you're a new Kinetic user.

Are you specifying opencv2 on your CMakeLists.txt?

http://wiki.ros.org/opencv3#Usage

2017-03-21 09:43:02 -0500 commented answer Why do I get a rosserial_tutorials_tivac catkin_make error?

Did you delete build and devel folders before trying the procedure?

2017-03-20 06:32:29 -0500 answered a question Int16MultiArray messages with rosserial_tivac

You also need to set the length of your array in the message you're publishing. I don't recall if there is an explicit rosserial tutorial with this information. But you can check a ros_lib message definition, e.g.: build/rosserial_tivac_tutorials/ros_lib/std_msgs/Int16MultiArray.h

There's a data_lengthfield in the message definition. It doesn't publish the data, because your data_length==0.

You're missing my_array.data_length = 8; before publishing.

2017-03-20 05:36:10 -0500 answered a question Why do I get a rosserial_tutorials_tivac catkin_make error?

There should be no issue with your kinectic distro.

This is an issue with the cmake target *_roslib, and the fact that messages are defined in the same catkin package as the rosserial targets. At build time, if target _roslib doesn't find the messages in $PYTHON_PATH, it won't generate them for rosserial targets.

Please try the following procedure:

rm devel build -fr
catkin_make rosserial_tivac_tutorials_generate_messages
source devel/setup.bash
catkin_make
2016-09-14 11:49:58 -0500 commented answer callback function c++

You should provide more information regarding your errors. e.g. compilation errors, and some of the remaining code.

pose_message.data is int, not std::string. int is no class, and has no method c_str

2016-09-14 03:33:42 -0500 commented question Robot location jump in RVIZ window

I would suggest reading up on SLAM, particularly particle filter SLAM. https://www.youtube.com/watch?v=aUkBa... It seems the robot can't find itself due to the similarity of map regions. What's the laser range? You can also have a discrepancy in unit size between odometry/grid map/laser data.

2016-09-13 04:36:31 -0500 commented question Robot location jump in RVIZ window

Ok, What are the red arrows? Where does that information come from?

2016-09-13 03:38:31 -0500 commented question Robot location jump in RVIZ window

Where does the position information for the RVIZ comes from? From a localization method? Could you provide more information on what you're doing in the simulation?

2016-07-07 06:53:31 -0500 commented question Custom message header file not generated

Please accept his answer, so the topic is closed.

2016-07-07 06:50:56 -0500 commented answer install rosserial on ROS Kinetic Help

Commands can be found on another answer: http://answers.ros.org/question/23635...

Edit the question to include all your steps and errors you obtain.

2016-07-07 06:48:38 -0500 commented question cannot install rosserial in kinetic

Could you explain all the steps you took?

If you downloaded the source and built the package, have you sourced setup.bash?

2016-07-07 06:48:09 -0500 answered a question cannot install rosserial in kinetic

Could you explain all the steps you took?

If you downloaded the source and built the package, have you sourced setup.bash?

2016-07-07 06:45:34 -0500 answered a question Rosserial help

Does that mean I simply publish and subscribe in my ino file (which need not be in my catkin_ws folder) and just upload it to arduino and run roscore+other nodes ?

Yes. You write your .ino file, with ros libraries included.

As spmaniato has stated, follow the tutorials first to understand how it works: http://wiki.ros.org/rosserial_arduino... From 1 up to 4 should be enough.

2016-07-07 06:42:26 -0500 commented question HELP! Problem with rosserial-python

Can you try with rosserial_server's serial_node?

2016-07-07 06:36:55 -0500 received badge  Editor (source)
2016-07-07 06:33:26 -0500 answered a question Cannot read rosserial getParam()

I just created a minimal example for rosserial_tivac : https://github.com/robosavvy/rosseria...

Indeed it fails to get the parameter using rosserial_server's serial_node. However it seems to work with rosserial_python's serial_node.py.

rosserial_python:

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0
[INFO] [WallTime: 1467891171.957798] ROS Serial Python Node
[INFO] [WallTime: 1467891171.970288] Connecting to /dev/ttyACM0 at 57600 baud
[INFO] [WallTime: 1467891174.101582] Note: publish buffer size is 512 bytes
[INFO] [WallTime: 1467891174.102729] Setup publisher on param [std_msgs/Float32]

rosserial_server:

rosrun rosserial_server serial_node _my_param=1.0
[ INFO] [1467891309.190024440]: Opening serial port.
[ INFO] [1467891309.190750509]: Starting session.
[ INFO] [1467891309.192754634]: Attached client is using protocol VER2 (hydro)
[ INFO] [1467891309.213501578]: waitForService: Service [/message_info] has not been advertised, waiting...
[ WARN] [1467891331.743387558]: Failed to call message_info service. Proceeding without full message definition.
[ WARN] [1467891331.743583542]: Advertising on topic [/param] with an empty message definition.  Some tools (e.g. rosbag) may not work correctly.
[ WARN] [1467891331.744745683]: Received message with unrecognized topicId (6).

Edit: Ticket here: https://github.com/ros-drivers/rosser...

2016-07-07 05:27:26 -0500 answered a question Rosserial_arduino on Ubuntu Xenial. Jade on Xenial.

Hi!

Download the source from github, and built it within your workspace. It builds and works fine on Kinetic.

2016-04-20 11:27:24 -0500 received badge  Teacher (source)
2016-04-20 09:10:20 -0500 answered a question Tried to publish before configured topic id 125

Can serial_node.py access the msg definition? Looks like you haven't run message generation through catkin for your custom message package. Or you haven't added devel/install space into your path.

Tutorial here: http://wiki.ros.org/ROS/Tutorials/Cre...

2015-10-23 06:12:34 -0500 received badge  Enthusiast
2015-10-20 03:10:28 -0500 received badge  Supporter (source)
2015-10-19 09:29:22 -0500 answered a question Serial Port read failure: device reports readiness to read but returned no data (device disconnected?)

I just had the same result. And it was working on this computer a few weeks before. It seems unrelated to rosserial package: Ubuntu bug ticket

Downgrade to 3.13.0-62-generic and it should work.