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

david.hodo's profile - activity

2023-04-07 06:34:02 -0500 received badge  Nice Answer (source)
2020-02-06 11:07:30 -0500 received badge  Famous Question (source)
2020-02-06 11:07:30 -0500 received badge  Notable Question (source)
2019-07-08 19:00:16 -0500 received badge  Famous Question (source)
2019-06-21 16:53:36 -0500 answered a question How to compute odometry from encoder ticks

I didn't check the posted code, but there is a working C++ example here: https://github.com/GAVLab/gavlab_atrv/blob/mas

2019-06-21 16:53:36 -0500 received badge  Rapid Responder (source)
2019-06-16 18:32:53 -0500 received badge  Notable Question (source)
2019-06-12 14:43:27 -0500 received badge  Popular Question (source)
2019-06-10 22:19:47 -0500 commented answer Minimal ROS2 Installation

Awesome. I didn't even think to try the old setup. Thanks.

2019-06-10 22:19:01 -0500 marked best answer Minimal ROS2 Installation

Is there a repo file available that produces a minimal ROS2 installation similar to ros-base from ROS1?

2019-06-10 22:14:21 -0500 commented question Why doesn't ros2 pkg list show the packages that I built?

Have you sourced the install/setup.bash file in the workspace where you built publish?

2019-06-10 21:59:06 -0500 edited answer communication using ROS failed

ROS_HOSTNAME should be your local hostname, not the name of the master you're trying to connect to. In your example on

2019-06-10 21:58:50 -0500 received badge  Rapid Responder (source)
2019-06-10 21:58:50 -0500 answered a question communication using ROS failed

ROS_HOSTNAME should be your local hostname, not the name of the master you're trying to connect to. In your example on

2019-06-10 21:25:41 -0500 asked a question Minimal ROS2 Installation

Minimal ROS2 Installation Is there a repo file available that produces a minimal ROS2 installation similar to ros-base f

2019-06-08 12:22:35 -0500 commented answer Use ros2-FastRTPS with standalone FastRTPS programs

There's an example project that demonstrates talking between native FastRTPS and ROS2 here if it's useful to anyone.

2019-06-05 00:57:14 -0500 received badge  Popular Question (source)
2019-06-04 20:40:57 -0500 marked best answer ROS2 Messages from IDL Files

I've seen in the release notes for Dashing that the message generation pipeline now supports IDL files directly. Are there any examples available on how to actually use an IDL file directly in a messages package? Can I pass a list of IDL files directly to rosidl_generate_interfaces()?

[UPDATE]

Based on the advice of sloretz I've tried creating an example project that includes the MyMessage.idl test case from rosidl_parser. It's located at idl_msgs. It tries to generate messages from a single IDL file. On Ubuntu 18.04 with Dashing, running 'colcon build' on the package produces several errors:

davidhodo@ubuntu:~/devel/idl_test_ws$ colcon build
Starting >>> idl_msgs
--- stderr: idl_msgs
AssertionError in template '/opt/ros/dashing/share/rosidl_generator_cpp/cmake/../resource/msg__struct.hpp.em': unknown primitive type 'long double'
AssertionError when expanding 'idl__struct.hpp.em' into '/home/davidhodo/devel/idl_test_ws/build/idl_msgs/rosidl_generator_cpp/idl_msgs/idl/my_message__struct.hpp': unknown primiti
ve type 'long double'
Error processing idl file: /home/davidhodo/devel/idl_test_ws/src/idl_msgs/idl/MyMessage.idl
TypeError in template '/opt/ros/dashing/share/rosidl_generator_dds_idl/resource/msg.idl.em': %d format: a number is required, not str
TypeError when expanding 'idl.idl.em' into '/home/davidhodo/devel/idl_test_ws/build/idl_msgs/rosidl_generator_dds_idl/idl_msgs/idl/dds_opensplice/MyMessage_.idl': %d format: a numb
er is required, not str
Error processing idl file: /home/davidhodo/devel/idl_test_ws/src/idl_msgs/idl/MyMessage.idl

The full error output is available here.

Any suggestions would be appreciated.

[UPDATE2]

I was able to get it to build with a few modifications. I had to remove the long double and wchar types as well as the includes. I also had to change the top level module name to match my package name and the next level module name from 'msg' to 'idl'.

module idl_msgs{
  module idl {

}
}

That compiled and gave me a working message. The updated code is available at: https://github.com/davidhodo/idl_msgs.git

Thanks,

David

2019-06-04 20:40:55 -0500 edited question ROS2 Messages from IDL Files

ROS2 Messages from IDL Files I've seen in the release notes for Dashing that the message generation pipeline now support

2019-06-04 09:03:09 -0500 commented answer ROS2 Messages from IDL Files

Thanks. I've tried creating a basic package based on those test messages and haven't been able to get it successfully b

2019-06-04 08:56:53 -0500 edited question ROS2 Messages from IDL Files

ROS2 Messages from IDL Files I've seen in the release notes for Dashing that the message generation pipeline now support

2019-06-03 17:48:25 -0500 asked a question ROS2 Messages from IDL Files

ROS2 Messages from IDL Files I've seen in the release notes for Dashing that the message generation pipeline now support

2019-04-23 14:55:22 -0500 received badge  Famous Question (source)
2019-03-20 11:19:26 -0500 received badge  Notable Question (source)
2019-03-05 17:27:03 -0500 commented answer How do you run rosbag2 in ROS2 Crystal?

Thanks. That fixed it. Having a ros2bag and rosbag2 package is somewhat confusing. Is there any documentation on the

2019-03-05 17:26:30 -0500 marked best answer How do you run rosbag2 in ROS2 Crystal?

I'm running ROS2 Crystal on Ubuntu 18.04. I've installed the ros-crystal-rosbag2 package, but am not sure how to run it. From the Github readme it looks like this should add a verb to the ROS2 command, but when I run:

ros2 bag record -a

I get the following error:

usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...
ros2: error: argument Call `ros2 <command> -h` for more detailed usage.: invalid choice: 'bag' (choose from 'daemon', 'extension_points', 'extensions', 'launch', 'lifecycle', 'msg', 'multicast', 'node', 'param', 'pkg', 'run', 'service', 'srv', 'topic')

How do I run rosbag2 in Crystal?

Thanks,

David

2019-03-05 17:12:29 -0500 received badge  Popular Question (source)
2019-03-03 11:21:17 -0500 received badge  Enthusiast
2019-03-02 11:20:04 -0500 asked a question How do you run rosbag2 in ROS2 Crystal?

How do you run rosbag2 in ROS2 Crystal? I'm running ROS2 Crystal on Ubuntu 18.04. I've installed the ros-crystal-rosbag

2019-01-02 14:48:47 -0500 commented question Ros2: Subscriber listens to messages while LifecycleNode is unconfigured or inactive.

Were you ever able to figure this out? I've hit the same issue. The lifecycle publishers have on_activate and on_deact

2018-12-06 17:55:40 -0500 commented answer Use identical package.xml for ROS1 and ROS2 pkgs

I see where the changes to the REP were merged, but it doesn't look like the condition on build_type is being checked in

2015-03-11 03:56:51 -0500 received badge  Famous Question (source)
2015-03-11 03:56:51 -0500 received badge  Notable Question (source)
2014-08-12 01:37:52 -0500 received badge  Popular Question (source)
2014-08-11 11:33:34 -0500 commented question Error building bondcpp on Windows.

I had assumed it was because the win_ros tools don't officially support VS2012. I had not looked into it. The boost packages and the other ROS packages build fine and work. They produce the same warning so I'm not sure it's related, but I'll look into it. Thanks.

2014-08-11 09:20:27 -0500 asked a question Error building bondcpp on Windows.

I'm trying to add the bondcpp package to an existing workspace on Windows using the win_ros tools. I'm running the Hydro version of the tools and have built the core ROS modules following the instructions on the Wiki. I'm using 64-bit Windows 7 with Visual Studio 2012 Update 4.

I've tried adding the bond_core package to both the core ROS workspace and to my project workspace. The bond packages compile without error, but only a DLL is generated. The other ROS packages build both a DLL and a static lib file. When building bondcpp in the ROS workspace, my project fails to compile due to the find_package call in CMake failing to find the bondcpp.lib library (since it doesn't exist).

When I include the bond_core package in my project workspace I get the following output:

[ 98%] Building CXX object bond_core/bondcpp/CMakeFiles/bondcpp.dir/src/BondSM_sm.cpp.obj
BondSM_sm.cpp
Unknown compiler version - please run the configure tests and report the results
C:\devel\auxos_ws\src\bond_core\smclib\include\smclib/statemap.h(89) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable d
eprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\string.h(191) : see declaration of 'strncpy'
C:\devel\auxos_ws\src\bond_core\bondcpp\include\bondcpp/bond.h(187) : warning C4099: 'BondSM' : type name first seen using 'class' now seen using 'struct'
        c:\devel\auxos_ws\src\bond_core\bondcpp\include\bondcpp\BondSM_sm.h(25) : see declaration of 'BondSM'
Linking CXX shared library C:\devel\auxos_ws\devel\bin\bondcpp.dll
[ 98%] Built target bondcpp
Scanning dependencies of target auxos_client
[100%] Building CXX object auxos_client/CMakeFiles/auxos_client.dir/src/client_node.cpp.obj
client_node.cpp
Unknown compiler version - please run the configure tests and report the results
C:\devel\auxos_ws\src\bond_core\smclib\include\smclib/statemap.h(89) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable d
eprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\string.h(191) : see declaration of 'strncpy'
C:\devel\auxos_ws\src\bond_core\bondcpp\include\bondcpp/bond.h(187) : warning C4099: 'BondSM' : type name first seen using 'class' now seen using 'struct'
        c:\devel\auxos_ws\src\bond_core\bondcpp\include\bondcpp\BondSM_sm.h(25) : see declaration of 'BondSM'
NMAKE : fatal error U1073: don't know how to make 'C:\devel\auxos_ws\devel\lib\bondcpp.lib'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Bond_core appears to build successfully and generates DLL files for all of the packages. It doesn't generate a static lib, however, and the following package that attempts to link against bondcpp fails to compile. I can't see any ... (more)

2014-04-20 13:05:45 -0500 marked best answer Building Rviz/Ogre on OSX Mountain Lion

I'm trying to compile Rviz on OSX (10.8) and am having trouble getting the Ogre dependency to compile. It fails with the following error:

BUILD FAILED: Plugin_CgProgramManager.dylib not created. Is nvidia-cg-toolkit installed correctly?

I found a previous discussion of this issue for Lion here: http://answers.ros.org/question/12825/more-problems-building-ogre-on-osx-lion/ but trying the suggestions there does not fix the issue.

The Nvidia Cg toolkit (version 3.0) was installed from the package linked to from the ROS OSX installation instructions. The file mentioned in the previous question "/usr/local/share/ros/nvidia-cg-version.installed" does not exist, but running "rosdep install ogre" states that all dependencies are correctly installed. Cmake also seems to correctly find the Cg Framework installation directory (/Library/Frameworks/Cg.framework)

Any suggestions?

Thanks.

EDIT: The full build output can be found at: https://gist.github.com/3625440

EDIT 2: It actually looks like the error might be caused by an issue with pbxcp being moved in XCode 4.3. There is a patch dealing with the issue here: https://code.ros.org/trac/ros-pkg/browser/stacks/visualization_common/trunk/ogre/ditto_pbxcp_osx.patch?rev=39177 but the patch fails to install on my system when trying to patch "Samples/Browser/CMakeLists.txt"

2014-04-20 06:53:51 -0500 marked best answer Chaining catkin workspaces on Windows

I'm been able to install ROS Groovy on Windows using the win_ros instructions (thanks to the win_ros guys for all the great work on that recently!). I'm having trouble building my own catkin packages though. How do you set up a chained catkin workspace on Windows? Is this even a feature that is supported yet?

I have my main ROS workspace in c:\win_ros\src, c:\win_ros\devel, and c:\win_ros\build. Everything built properly and the tutorial apps work. I'm trying to create a new workspace for my catkinized packages in c:\my_ws in the same way I do on Linux but without success. I've tried the following:

 c:\win_ros\devel\setup.bat
 cd\my_ws
 winros_init_workspace ./
 winros_init_build
 winros_make

Cmake is unable to find catkin and gives the following error:

CMake Error at CMakeLists.txt:47 (message):
  find_package(catkin) failed.  catkin was neither found in the workspace nor
  in the CMAKE_PREFIX_PATH.  One reason may be that no ROS setup.sh was
  sourced before.


-- Configuring incomplete, errors occurred!

Executing nmake in the root build directory

Any suggestions? Thanks.