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

kpax77's profile - activity

2015-08-11 11:06:43 -0500 received badge  Student (source)
2015-02-27 05:13:40 -0500 commented answer Ros Matlab i/o and /tf

And now if you know on an example how to use /tf in order to obtain the position of a joint, don't hesitate.

2015-02-27 05:13:03 -0500 received badge  Famous Question (source)
2015-02-26 13:09:19 -0500 received badge  Teacher (source)
2015-02-26 13:09:19 -0500 received badge  Self-Learner (source)
2015-02-26 05:50:10 -0500 received badge  Notable Question (source)
2015-02-26 05:29:14 -0500 answered a question Ros Matlab i/o and /tf

I answer my own question. Finally the problem is that tfMessage is not part of the standard roscore distribution. So you have to add it in the ROSMatlab path.

The procedure is the following: * Download the tf.jar here: https://github.com/rosjava/rosjava_mv... Don't forget to download it in 'raw'. * Add the jar files to \toolbox\psp\rosmatlab\jars * Edit <\MATLAB>\toolbox\local\classpath.txt by adding the full path to the jar file above the line “# ROS-MATLAB-END” * Restart MATLAB.

And it should work.

2015-02-24 14:51:25 -0500 received badge  Famous Question (source)
2015-02-18 03:52:14 -0500 received badge  Popular Question (source)
2015-02-13 10:38:52 -0500 asked a question Ros Matlab i/o and /tf

Hello everybody, I try to use the topic /tf in order to obtain the pose of the end-effector of the PR2. Unfortunately I can't subscribe to the topic, I have this error:

>SubTf = rosmatlab.subscriber('/tf', 'tf/tfMessage',100,node);

Error using rosmatlab.node/addSubscriber (line 661)
Java exception occurred:
org.ros.exception.RosMessageRuntimeException: java.lang.ClassNotFoundException: tf.tfMessage
    at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(MessageDefinitionReflectionProvider.java:58)
    at org.ros.internal.message.Md5Generator.generate(Md5Generator.java:44)
    at org.ros.internal.message.topic.TopicDescriptionFactory.newFromType(TopicDescriptionFactory.java:36)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:286)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:297)
Caused by: java.lang.ClassNotFoundException: tf.tfMessage
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(MessageDefinitionReflectionProvider.java:54)
    ... 4 more

Error in rosmatlab.subscriber (line 38)
                sub = node.addSubscriber(topicName,topicMessageType,bufferLimit);

If you have any idea to resolve it, it would be great.

2015-01-23 03:51:09 -0500 commented answer Final Step for ROS installation failing

And how did you do it if it was already installed via brew ?

2015-01-23 01:27:36 -0500 received badge  Notable Question (source)
2015-01-21 10:16:08 -0500 commented answer Problem libOpenni2 for hydro installation with homebrew

Now it almost compiled everything but it doesn't find the linux/usbdevice_fs.h:

/Users/skynet/ros_catkin_ws/src/openni2_camera/src/usb_reset.c:40:10: fatal error: 'linux/usbdevice_fs.h' file not found #include <linux usbdevice_fs.h=""> ^ 1 error generated.

2015-01-21 03:23:39 -0500 received badge  Popular Question (source)
2015-01-21 02:43:51 -0500 received badge  Editor (source)
2015-01-21 02:40:57 -0500 answered a question Problem libOpenni2 for hydro installation with homebrew
openni2: stable 2.2.0.33, HEAD
http://structure.io/openni
/usr/local/Cellar/openni2/2.2.0.33 (149 files, 6,8M) *
  Built from source
From: https://github.com/homebrew/homebrew-science/blob/master/openni2.rb
==> Dependencies
Required: libusb ✔
==> Options
--universal
    Build a universal binary
--with-docs
    Build documentation using javadoc (might fail with Java 1.8)
--HEAD
    Install HEAD version
==> Caveats
Add the recommended variables to your dotfiles.
 * On Bash, add them to `~/.bash_profile`.
 * On Zsh, add them to `~/.zprofile` instead.

export OPENNI2_INCLUDE=/usr/local/include/ni2
export OPENNI2_REDIST=/usr/local/lib/ni2
2015-01-20 04:30:37 -0500 commented answer Problem libOpenni2 for hydro installation with homebrew

Thank you. I did it and I have the same problem now it doesn't find openni2.

2015-01-20 04:22:23 -0500 answered a question Problem libOpenni2 for hydro installation with homebrew

Thank you. I did it and I have the same problem now it doesn't find openni2.

-- catkin 0.5.90 -- Boost version: 1.57.0 -- Found the following Boost libraries: -- system -- thread -- checking for module 'libopenni2' -- package 'libopenni2' not found -- checking for module 'openni2' -- package 'openni2' not found CMake Error at /opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:341 (message): A required package was not found Call Stack (most recent call first): /opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal) CMakeLists.txt:11 (pkg_check_modules)

2015-01-19 04:59:47 -0500 asked a question Problem libOpenni2 for hydro installation with homebrew

Hi everybody,

I try to install ROS Hydro on my mac with homebrew following this tutorial http://wiki.ros.org/hydro/Installatio... And I face a problem. For the installation of openni2_camera, I have the following error.

-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28")
-- checking for module 'libopenni2'
--   package 'libopenni2' not found
CMake Error at /opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:341 (message):
  A required package was not found
Call Stack (most recent call first):
  /opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal)
  CMakeLists.txt:9 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

Of course I installed openni2 via hombrew but it seems like it doesn't create any libopenni2.pc which is a problem.

Any ideas about it ?

Thank you.

UPDATE

This is the result of brew info openni2

openni2: stable 2.2.0.33, HEAD
http://structure.io/openni
/usr/local/Cellar/openni2/2.2.0.33 (149 files, 6,8M) *
  Built from source
From: https://github.com/homebrew/homebrew-science/blob/master/openni2.rb
==> Dependencies
Required: libusb ✔
==> Options
--universal
    Build a universal binary
--with-docs
    Build documentation using javadoc (might fail with Java 1.8)
--HEAD
    Install HEAD version
==> Caveats
Add the recommended variables to your dotfiles.
 * On Bash, add them to `~/.bash_profile`.
 * On Zsh, add them to `~/.zprofile` instead.

export OPENNI2_INCLUDE=/usr/local/include/ni2
export OPENNI2_REDIST=/usr/local/lib/ni2
2015-01-16 02:37:39 -0500 received badge  Enthusiast
2015-01-15 13:59:11 -0500 commented question Matlab's rosmatlab i/o extension and service calls

It seems it has not been developed yet. I have the same problem.

2015-01-14 11:08:18 -0500 received badge  Popular Question (source)
2015-01-11 07:36:48 -0500 asked a question ROS Matlab I/O publisher don't work

Hi everybody,

I try ti create a publisher via rosmtlab with message of type 'trajectory_msgs/JointTrajectory' but it doesn't work. On matlab the command never ends. DO you have any idea why ? Is the management of this kind of messages implemented in rosmatlab ?

Thanks.