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

Cesare's profile - activity

2020-01-23 06:36:28 -0500 received badge  Nice Question (source)
2018-02-05 11:13:24 -0500 commented answer ros-kinetic-opencv3 and apriltags regression?

Eureka! Matx33f -> Matx33d just works ^_^

2017-11-23 19:43:59 -0500 received badge  Popular Question (source)
2017-11-23 05:29:24 -0500 asked a question Noobie: Watching logs

Noobie: Watching logs Hello there, I'm working on a project with several nodes. I have a main launch file that includes

2016-07-13 17:07:51 -0500 received badge  Famous Question (source)
2016-06-07 13:30:14 -0500 received badge  Famous Question (source)
2015-09-10 16:59:34 -0500 received badge  Famous Question (source)
2015-09-09 14:00:42 -0500 received badge  Famous Question (source)
2015-09-09 14:00:42 -0500 received badge  Notable Question (source)
2015-09-07 03:39:13 -0500 received badge  Famous Question (source)
2015-07-21 21:37:48 -0500 received badge  Popular Question (source)
2015-07-21 21:37:48 -0500 received badge  Notable Question (source)
2015-07-15 11:32:51 -0500 received badge  Notable Question (source)
2015-06-24 11:37:37 -0500 received badge  Notable Question (source)
2015-06-18 06:12:13 -0500 commented answer Fix catkin workspace, can't launch newly compiled nodes

Thank you for all the help, i found my way out :) actually i don't think i need install() :)

2015-06-18 06:08:58 -0500 received badge  Popular Question (source)
2015-06-18 05:13:13 -0500 commented question Fix catkin workspace, can't launch newly compiled nodes
2015-06-18 05:10:03 -0500 commented question Fix catkin workspace, can't launch newly compiled nodes

Sorry, I didn't understood you wanted the CMakeList.txt, posted :)
Now works, I found the problem (but I don't understand), apparently it was caused by add_executable being called to early in the CMakeList (see comment in file)... however I like to know more about the install(..) ^_^

2015-06-17 08:51:59 -0500 asked a question Fix catkin workspace, can't launch newly compiled nodes

Hello I'm having issues running new modules, the compilation goes right but rosrun can't find the new nodes, i guess it's en environment issue, but as I'm a noob, it's just a guess :)

I have the catkin ws under ~/ros_ws/, in this folder i have my package pcltest, that have a single source file src/pcltest_node.cpp When i run catkin_make i can see the compilation having success:

...
[100%] Building CXX object pcltest/CMakeFiles/pcltest_node.dir/src/pcltest_node.cpp.o
Linking CXX executable pcltest_node
[100%] Built target pcltest_node
...

And I can find my binary compiled in ~/ros_ws/build/pcltest/pcltest_node

This is the output of catkin_make install

-- Install configuration: ""
-- Up-to-date: /home/cesare/ros_ws/install/_setup_util.py
-- Up-to-date: /home/cesare/ros_ws/install/env.sh
-- Up-to-date: /home/cesare/ros_ws/install/setup.bash
-- Up-to-date: /home/cesare/ros_ws/install/setup.sh
-- Up-to-date: /home/cesare/ros_ws/install/setup.zsh
-- Up-to-date: /home/cesare/ros_ws/install/.rosinstall
-- Up-to-date: /home/cesare/ros_ws/install/lib/pkgconfig/pcltest.pc
-- Up-to-date: /home/cesare/ros_ws/install/share/pcltest/cmake/pcltestConfig.cmake
-- Up-to-date: /home/cesare/ros_ws/install/share/pcltest/cmake/pcltestConfig-version.cmake
-- Up-to-date: /home/cesare/ros_ws/install/share/pcltest/package.xml

then usually I source /home/cesare/ros_ws/install/setup.bash but when i try to run the node with rosrun pcltest xxx i have an error, it looks like it's not copying the binary from the build to the install folder... what am I doing wrong ?

----- ----- ----- EDIT ----- ----- -----
I've tried to source /home/cesare/ros_ws/devel/setup.bash but it doesn't change much. In both the cases rosrun is able to find (and autocoplete) the package but it can't find che binary :(

This is how it looks my 'devel/share' dir

.
└── pcltest
    └── cmake
        ├── pcltestConfig.cmake
        └── pcltestConfig-version.cmake

This is the install/share dir

.
└── pcltest
    ├── cmake
    │   ├── pcltestConfig.cmake
    │   └── pcltestConfig-version.cmake
    └── package.xml

This is the package in the build dir

drwxrwxr-x  4 cesare cesare   4096 giu 18 10:46 .
drwxrwxr-x  8 cesare cesare   4096 giu 18 10:47 ..
drwxrwxr-x  4 cesare cesare   4096 giu 18 10:46 catkin_generated
drwxrwxr-x 47 cesare cesare   4096 giu 18 10:46 CMakeFiles
-rw-rw-r--  1 cesare cesare   2280 giu 18 10:46 cmake_install.cmake
-rw-rw-r--  1 cesare cesare    277 giu 18 10:46 CTestTestfile.cmake
-rw-rw-r--  1 cesare cesare  41872 giu 18 10:46 Makefile
-rwxrwxr-x  1 cesare cesare 466725 giu 18 10:46 pcltest_node

CMakeList.txt

cmake_minimum_required(VERSION 2.8.3)
project(pcltest)

find_package(catkin REQUIRED COMPONENTS
  pcl_ros
  roscpp
  rospy
  std_msgs
)
#add_executable(pcltest src/pcltest.cpp) #in this position doesn't work :(
catkin_package(
)

include_directories(
  ${catkin_INCLUDE_DIRS}
)


add_executable(pcltest src/pcltest.cpp)

target_link_libraries(pcltest
   ${catkin_LIBRARIES}
)

Thank you :)

2015-06-17 06:35:59 -0500 answered a question Is ROS compatible with Python and can it run on a Raspberry Pi

ROS is a so called meta-operating system, this means that it's not an OS itself, it need an OS like Ubuntu to run. Beside that, the two main languages supported by ROS are C++ and python.

2015-06-11 10:46:06 -0500 asked a question uvc_get_stream_ctrl_format_size: Invalid mode

Hello I'm having some issues in running libuvc_camera. I've done as described in the wiki, but i still have some issue, roslaunch it's returning terminating with uvc_get_stream_ctrl_format_size: Invalid mode

I've being double checking vendor, product, serial, res, format and fps but it looks good, any advice ?

Thank you :)

lsusb

Bus 001 Device 007: ID 0ac8:3410 Z-Star Microelectronics Corp. 
Bus 001 Device 006: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera

v4l2-ctl --list-formats-ext

ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'YUYV'
    Name        : YUV 4:2:2 (YUYV)
        Size: Discrete 640x480
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
        Size: Discrete 352x288
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
        Size: Discrete 320x240
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
        Size: Discrete 176x144
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
        Size: Discrete 160x120
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.067s (15.000 fps)

camera.launch

<launch>
  <group ns="rosbot">
    <node pkg="libuvc_camera" type="camera_node" name="left">
      <!-- Parameters used to find the camera -->
      <param name="vendor" value="0x0ac8"/>
      <param name="product" value="0x3410"/>
      <param name="serial" value="0"/>
      <!-- If the above parameters aren't unique, choose the first match: -->
      <param name="index" value="0"/>

      <!-- Image size and type -->
      <param name="width" value="640"/>
      <param name="height" value="480"/>
      <!-- choose whichever uncompressed format the camera supports: -->
      <param name="video_mode" value="yuyv"/> <!-- or yuyv/nv12/jpeg -->
      <param name="frame_rate" value="15"/>

      <param name="timestamp_method" value="start"/> <!-- start of frame -->
      <param name="camera_info_url" value="file:///home/cesare/.ros/camera_info/left_camera.yaml"/>

      <!-- <param name="auto_exposure" value="3"/> --> <!-- use aperture_priority auto exposure -->
      <!-- <param name="auto_white_balance" value="false"/> -->
    </node>
  </group>
</launch>

roslaunch camera.launch

... logging to /home/cesare/.ros/log/7550031c-104c-11e5-916e-0c4de9a94f19/roslaunch-cesare-6762.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ros_master:56671/

SUMMARY
========

PARAMETERS
 * /rosbot/left/camera_info_url: file:///home/cesa...
 * /rosbot/left/frame_rate: 15
 * /rosbot/left/height: 480
 * /rosbot/left/index: 0
 * /rosbot/left/product: 0x3410
 * /rosbot/left/serial: 0
 * /rosbot/left/timestamp_method: start
 * /rosbot/left/vendor: 0x0ac8
 * /rosbot/left/video_mode: yuyv
 * /rosbot/left/width: 640
 * /rosdistro: indigo
 * /rosversion: 1.11.10

NODES
  /rosbot/
    left (libuvc_camera/camera_node)

ROS_MASTER_URI=http://ros_master:11311
core service [/rosout] found
process[rosbot/left-1]: started with pid [6780]
uvc_get_stream_ctrl_format_size: Invalid mode (-51)
[rosbot/left-1] process has died [pid 6780, exit code 255, cmd /opt/ros/indigo/lib/libuvc_camera/camera_node __name:=left __log:=/home/cesare/.ros/log/7550031c-104c-11e5-916e-0c4de9a94f19/rosbot-left-1.log].
log file: /home/cesare/.ros/log/7550031c-104c-11e5-916e-0c4de9a94f19/rosbot-left-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
2015-06-04 12:39:00 -0500 received badge  Popular Question (source)
2015-06-04 12:38:37 -0500 received badge  Enthusiast
2015-06-03 00:17:34 -0500 received badge  Student (source)
2015-06-01 09:53:16 -0500 commented answer RoS and OSX issues: No handlers could be found for logger "roslaunch"

Found it! I was missing to source the the catkin WS in my home source ~/ros_catkin_ws/install_isolated/setup.bash thank you very much for guiding me :)

2015-06-01 09:37:46 -0500 asked a question Best stereo camera for beginners

Hello, I'm new to ROS, I have great ambitions and little budget ^_^, so I'm looking for some cheap hardware that would offer me results decent enough to continue my experimentation.

I've been looking into how to obtain hardware for learning about stereo vision and 3D reconstruction, I found two basic ways: - buy 2 cheap webcams and DIY - buy a stereo camera

For what I understood little variations in distance and inclination can easily compromise the diff map and so the DIY version might end up requiring constant calibrations, however on the other end, so buying "professional" stereo camera range from 500 euro to infinite.

For the moment I trying something in between, like the minoru 3d, however the overall performance of the camera looks a bit poor also because it's a 2009 product, however I can't find any more recent product offering a similar solution.

Can you suggest me what would be the best way/product/guide to archive decent results without spending a fortune ?

Thank you very much :)

2015-06-01 09:08:33 -0500 commented answer RoS and OSX issues: No handlers could be found for logger "roslaunch"

Something is wrongs, where is supposed to be located ?

rosversion roslaunch Cannot locate [roslaunch]
2015-06-01 05:07:31 -0500 received badge  Supporter (source)
2015-06-01 05:05:36 -0500 received badge  Popular Question (source)
2015-06-01 04:27:51 -0500 received badge  Editor (source)
2015-06-01 04:27:51 -0500 edited question RoS and OSX issues: No handlers could be found for logger "roslaunch"

Hello,
I'm new to RoS, I'm installing it on my OSX machine (following http://wiki.ros.org/indigo/Installati... ) and I have been having various issues during the setup, however I managed to make it compile successfully. However, now when I try to run the core it's giving me the following error:

Cesare:~ cesare$ roscore 
WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt

Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1]. 

Param xml is <param command="rosversion roslaunch" name="rosversion"/>
The traceback for the exception was written to the log file
No handlers could be found for logger "roslaunch"

Here is my Env

Cesare:~ cesare$ env | grep ROS
ROS_ROOT=/opt/ros/indigo/share/ros
ROS_PACKAGE_PATH=/opt/ros/indigo/share:/opt/ros/indigo/stacks
ROS_MASTER_URI=http://localhost:11311
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=indigo
ROS_ETC_DIR=/opt/ros/indigo/etc/ros

Do you have any clue about what have I done wrong ?

Thank you

2015-06-01 04:27:06 -0500 commented answer RoS and OSX issues: No handlers could be found for logger "roslaunch"

I've added source /opt/ros/indigo/setup.bash into my .bashrc, any other check I can run ? I added my env to the answer