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

jhassold's profile - activity

2022-10-12 04:38:54 -0500 marked best answer Unable to load ROS2 workspace into CLion

I've been trying to get Ros2 to work with my copy of CLion using this guide on the Discussion Forums, but have been having no luck. I was wondering if there were more up-to-date instructions, since these were written in 2017. Or if I'm inadvertently messing something up. Probably the latter.

Before we start, this is all on Ubuntu version 18.04 LTE, running on a Lenovo ThinkPad P52.

So first off, the step for compilation seems to have a couple stderrors for me. I don't think they're the cause of my pain, but I'm a bit new to this, so who knows!

Starting >>> ament_package
Starting >>> ament_flake8
Starting >>> fastcdr
Starting >>> poco_vendor
Starting >>> ament_cppcheck
Starting >>> tinydir_vendor
Starting >>> gtest_vendor
Starting >>> osrf_pycommon
Starting >>> tinyxml2_vendor
Starting >>> tinyxml_vendor
Starting >>> urdfdom_headers
Starting >>> orocos_kdl
Finished <<< ament_package [0.97s]                                                                                                                                                               
Starting >>> ament_cmake_core
Finished <<< gtest_vendor [1.18s]                                                                                                                                                                   
Starting >>> gmock_vendor
Finished <<< gmock_vendor [0.24s]                                                                                                                                                            
Starting >>> osrf_testing_tools_cpp
Finished <<< poco_vendor [1.61s]                                                                                                                                                               
Starting >>> ament_pep8
Finished <<< ament_flake8 [2.03s]                                                                                                                                                                
Starting >>> ament_pep257
Finished <<< ament_cmake_core [1.54s]                                                                                                                                              
Starting >>> ament_cmake_test                                                                                                                                                      
Finished <<< ament_cppcheck [2.67s]                                                                                                                                                  
Starting >>> ament_cmake_libraries
Finished <<< tinyxml2_vendor [2.71s]
Finished <<< tinyxml_vendor [2.73s]
Finished <<< urdfdom_headers [2.76s]                                                                                                                                                   
Starting >>> ament_cmake_export_libraries
Starting >>> ament_cmake_include_directories
Starting >>> ament_cmake_export_definitions
Finished <<< osrf_pycommon [3.41s]                                                                                                                                                                   
Starting >>> ament_cmake_export_include_directories                                                                                                                                               
Finished <<< ament_cmake_test [1.85s]                                                                                                                                                               
Starting >>> ament_cmake_export_link_flags
Finished <<< ament_pep8 [2.88s]                                                                                                                                                                     
Starting >>> ament_cmake_python
Finished <<< ament_cmake_include_directories [2.23s]                                                                                                                                                  
Starting >>> ament_lint_auto
Finished <<< ament_cmake_libraries [2.41s]                                                                                                                                                            
Finished <<< ament_cmake_export_definitions [2.40s]                                                                                                                                                
Starting >>> ament_cmake_export_dependencies
Starting >>> ament_cmake_target_dependencies
Finished <<< ament_cmake_export_libraries [2.55s]                                                                                                                                                  
Starting >>> ament_cmake_export_interfaces                                                                                                                                                         
Finished <<< fastcdr [5.66s]                                                                                                                                                                            
Starting >>> fastrtps
Finished <<< ament_pep257 [3.96s]                                                                                                                                         
Starting >>> ament_copyright
Finished <<< ament_cmake_export_include_directories [3.61s]                                                                                         
Finished <<< ament_cmake_export_link_flags [2.81s]                                                                                                                                            
Starting >>> ament_index_python
Starting >>> ament_cmake_gtest
Finished <<< ament_cmake_python [4.27s]                                                                                                                                                 
Starting >>> ament_cmake_pytest                                                                                                                                                      
Finished <<< ament_copyright [3.01s]                                                                                                                                                 
Starting >>> ament_lint_cmake
Finished <<< ament_cmake_target_dependencies [5.25s]                                                                                                                                    
Finished <<< ament_cmake_export_dependencies [5.42s]                                                                                                                                 
Finished <<< ament_lint_auto [5.65s]
Finished <<< ament_cmake_export_interfaces [5.33s]
Starting >>> ament_cmake
Starting >>> ament_cpplint                                                                                                                                                                             
Starting >>> ament_xmllint
Starting >>> launch
Finished <<< ament_index_python [3.66s]                                                                                                                                          
Starting >>> ament_pyflakes                                                                                                                                                      
Finished <<< tinydir_vendor [11.9s]                                                                                                                                               
Starting >>> ament_clang_format                                                                                                                                                
Finished <<< ament_lint_cmake [5.24s]                                                                                                                                          
Finished <<< ament_cmake_pytest [5.55s]                                                                                                                                        
Finished <<< ament_cmake_gtest [7.18s]
Starting >>> ament_cmake_lint_cmake
Starting >>> ament_cmake_gmock                                                                                                                                                                
Starting >>> ament_pclint
Finished <<< ament_xmllint [5.40s]                                                                                                                                                             
Starting >>> ros_environment
Finished <<< ament_cmake [5.96s]                                                                                                                                                                 
Starting >>> uncrustify_vendor                                                                                                                                                      
Finished <<< ament_cmake_lint_cmake [2.33s]
Starting >>> ament_cmake_copyright
Finished <<< ament_cmake_gmock [2.34s]                                                                                                                                              
Starting >>> libyaml_vendor
Finished <<< ament_cpplint [6.25s]                                                                                                                                                     
Starting >>> console_bridge_vendor
Finished <<< ament_pyflakes [7.62s]                                                                                                                                                      
Starting >>> libcurl_vendor                                                                                                                                                                  
Finished <<< ros_environment [2.52s]                                                                                                                                                         
Starting >>> ament_cmake_auto
Finished <<< ament_cmake_copyright [3.01s]                                                                                                                                                    
Starting >>> ament_cmake_cppcheck                                                                                                                                                             
Finished <<< launch [9.10s]
Starting >>> ament_cmake_cpplint                                                                                                                                                                    
Finished <<< ament_clang_format [6.95s]                                                                                                                                                              
Starting >>> ament_cmake_flake8
Finished <<< osrf_testing_tools_cpp [20.9s]                                                                                                                                                                
Starting >>> ament_cmake_pep257
Finished <<< ament_cmake_auto [3.87s]                                                                                                                                                      
Starting >>> ament_cmake_xmllint
Finished <<< ament_pclint [8.25s]                                                                                                                                                          
Starting >>> rviz_assimp_vendor
Finished <<< ament_cmake_cpplint [3.38s]                                                                                                                                                                  
Starting >>> rviz_ogre_vendor
Finished <<< ament_cmake_cppcheck [3.68s]                                                                                                                                                                 
Starting >>> yaml_cpp_vendor
Finished <<< ament_cmake_flake8 [3.38s]                                                                                                                                                                   
Starting >>> test_osrf_testing_tools_cpp
Finished <<< ament_cmake_pep257 [3.53s]                                                                                                                                       
Starting >>> ament_cmake_nose
Finished <<< orocos_kdl [26.3s]                                                                                                                                                 
Starting >>> ament_cmake_clang_format
Finished <<< ament_cmake_xmllint [3.81s]                                                                                                                                               
Starting >>> ament_cmake_pclint
Finished <<< libcurl_vendor [9.30s]                                                                                                                                                       
Starting >>> ament_cmake_pep8                                                                                                                                                             
Finished <<< ament_cmake_nose [2.78s]                                                                                                                                                     
Starting >>> ament_cmake_pyflakes                                                                                                                                                         
Finished <<< ament_cmake_clang_format [3.51s]                                                                                                                                             
Finished <<< ament_cmake_pclint [3.48s]                                                                                                                                                   
Finished <<< ament_cmake_pep8 [3.15s]                                                                                                                                                     
Finished <<< ament_cmake_pyflakes [3.33s]                                                                                                                                                 
Finished <<< rviz_assimp_vendor [9.36s]                                                                                                                                                   
Finished <<< libyaml_vendor [17.1s]                                                                                                                                                         
Finished <<< test_osrf_testing_tools_cpp [25.1s]                                                                                                                                           
Finished <<< yaml_cpp_vendor [27.7s]                                                                                                                                                       
Finished <<< console_bridge_vendor [35.7s]                                                                                                                                                
Starting >>> urdfdom
Finished <<< uncrustify_vendor [45.3s]                                                                                                                                         
Starting >>> ament_uncrustify
Finished <<< ament_uncrustify [0.95s]                                                                                                                            
Starting >>> ament_cmake_uncrustify ...
(more)
2020-10-02 12:24:17 -0500 received badge  Famous Question (source)
2020-08-17 13:19:51 -0500 received badge  Notable Question (source)
2020-08-17 13:19:51 -0500 received badge  Popular Question (source)
2020-07-10 06:37:52 -0500 commented answer ROS2 Windows - rmw_implementation error when running examples

Setting the variable to rmw_fastrtps_cpp creates the following error: C:\Users\Testing>ros2 node list [ERROR] [15943

2020-07-09 10:39:10 -0500 asked a question ROS2 Windows - rmw_implementation error when running examples

ROS2 Windows - rmw_implementation error when running examples I have been trying to install ROS 2 from binary onto Windo

2020-03-19 06:01:05 -0500 received badge  Favorite Question (source)
2019-12-02 05:23:34 -0500 received badge  Famous Question (source)
2019-08-16 08:58:06 -0500 received badge  Notable Question (source)
2019-06-27 10:09:24 -0500 answered a question ROS2 launch.py, execute node on actual terminal

It looks like your return statement is outside of the generate_launch_description() function. Do you still get an error

2019-06-27 10:09:24 -0500 received badge  Rapid Responder (source)
2019-06-11 01:41:39 -0500 received badge  Popular Question (source)
2019-06-10 13:56:28 -0500 marked best answer Difference between launch and launch_ros

Possibly a silly question, but here goes: What is the difference between ros2/launch and ros2/launch_ros? When should one be used over the other?

They both have similar names, and (superficially) similar jobs, so I'm a little unclear which one I should be more heavily leaning on when writing ROS 2 launch files.

2019-06-10 06:56:32 -0500 asked a question Difference between launch and launch_ros

Difference between launch and launch_ros Possibly a silly question, but here goes: What is the difference between ros2/l

2019-06-03 08:34:09 -0500 received badge  Famous Question (source)
2019-04-22 14:17:21 -0500 received badge  Teacher (source)
2019-04-22 14:17:21 -0500 received badge  Self-Learner (source)
2019-04-17 04:48:57 -0500 received badge  Famous Question (source)
2019-04-06 18:20:19 -0500 received badge  Notable Question (source)
2019-04-05 09:07:27 -0500 received badge  Notable Question (source)
2019-04-04 13:20:06 -0500 received badge  Popular Question (source)
2019-04-04 13:09:57 -0500 received badge  Supporter (source)
2019-04-04 13:09:57 -0500 marked best answer Compilation Error on latest version of RCLCPP

When I try to build the latest version of RCLCPP using Colcon, I get an error saying that a function was not declared in this scope:

~/ros2_ws$ colcon build --symlink-install --merge-install --packages-select rclcpp --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo
Starting >>> rclcpp  
--- stderr: rclcpp                               
/home/jhassold/ros2_ws/src/ros2/rclcpp/rclcpp/src/rclcpp/publisher.cpp: In member function ‘rmw_qos_profile_t rclcpp::PublisherBase::get_actual_qos() const’:
/home/jhassold/ros2_ws/src/ros2/rclcpp/rclcpp/src/rclcpp/publisher.cpp:202:35: error: ‘rcl_publisher_get_actual_qos’ was not declared in this scope
   const rmw_qos_profile_t * qos = rcl_publisher_get_actual_qos(&publisher_handle_);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jhassold/ros2_ws/src/ros2/rclcpp/rclcpp/src/rclcpp/publisher.cpp:202:35: note: suggested alternative: ‘rcl_publisher_get_options’
   const rmw_qos_profile_t * qos = rcl_publisher_get_actual_qos(&publisher_handle_);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   rcl_publisher_get_options
make[2]: *** [CMakeFiles/rclcpp.dir/src/rclcpp/publisher.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/rclcpp.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< rclcpp [ Exited with code 2 ]

Summary: 0 packages finished [21.2s]
  1 package failed: rclcpp
  1 package had stderr output: rclcpp

I have tried backing up through the master branch, and the error consistently occurs at this commit: https://github.com/ros2/rclcpp/commit... . Any commits before that on the master branch will build just fine, whereas that one and all future ones will fail (always with the exact same error). The error continues to occur even if I delete my build and install folders, and try to have colcon reconstruct everything.

HOWEVER I'm not sure that it's actually that commit's fault - my colleague is able to build rclcpp just fine. Which leads me to think that something got messed up in my environment. However, I don't really know where to start looking.

Has anyone else run into this sort of an issue before? Was it an environment error? And if so, what should I do to make sure that this doesn't happen in future? I'm hoping that I can fix this without having to completely reinstall ROS2...

2019-04-04 13:09:57 -0500 received badge  Scholar (source)
2019-04-04 13:08:15 -0500 commented answer Compilation Error on latest version of RCLCPP

This seems to mostly work, but during the rebuild workspace step I'm getting an error in the compilation of logging_demo

2019-04-04 13:08:04 -0500 commented answer Compilation Error on latest version of RCLCPP

This seems to mostly work, but during the rebuild workspace step I'm getting an error in the compilation of logging_demo

2019-04-04 12:57:54 -0500 commented answer Compilation Error on latest version of RCLCPP

This seems to mostly work, but during the rebuild workspace step I'm getting an error in the compilation of logging_demo

2019-04-04 11:53:03 -0500 edited question Compilation Error on latest version of RCLCPP

Compilation Error on latest version of RCLCPP When I try to build the latest version of RCLCPP using Colcon, I get an er

2019-04-04 11:52:19 -0500 asked a question Compilation Error on latest version of RCLCPP

Compilation Error on latest version of RCLCPP When I try to build the latest version of RCLCPP using Colcon, I get an er

2019-04-04 07:19:51 -0500 received badge  Enthusiast
2019-04-01 15:45:47 -0500 received badge  Student (source)
2019-04-01 13:23:17 -0500 received badge  Popular Question (source)
2019-04-01 12:54:53 -0500 answered a question Unable to load ROS2 workspace into CLion

After significant fighting, I have not been able to successfully get the entire workspace into CLion. However, you can s

2019-03-29 14:22:47 -0500 commented question Unable to load ROS2 workspace into CLion

CLion has JUST added support for compilation databases, and external build tools. I'm currently experimenting on seeing

2019-03-29 13:45:27 -0500 commented question Unable to load ROS2 workspace into CLion

CLion has JUST added support for compilation databases, and external build tools. I'm currently experimenting on seeing

2019-03-29 09:21:48 -0500 commented question How to transform a vector in rospy?

Possibly a silly comment, but are you sure that gimbal lock isn't a factor here? Are you able to do the calculations in

2019-03-27 16:55:26 -0500 asked a question Unable to load ROS2 workspace into CLion

Unable to load ROS2 workspace into CLion I've been trying to get Ros2 to work with my copy of CLion using this guide on