Giter Club home page Giter Club logo

sigmaai / self-driving-golf-cart Goto Github PK

View Code? Open in Web Editor NEW
250.0 17.0 69.0 1.62 GB

Be Driven 🚘

Home Page: https://neilnie.com/self-driving-golf-cart/

License: MIT License

Python 33.52% C++ 51.90% Shell 0.13% CMake 7.63% Jupyter Notebook 6.70% Dockerfile 0.11%
self-driving-car behavioral-cloning machine-learning artificial-intelligence convolutional-neural-networks ros microcontroller autonomous-driving autonomous-vehicles deep-learning

self-driving-golf-cart's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

self-driving-golf-cart's Issues

Invoking "make -j12 -l12" failed

Catkin_make doesn't work and everything falls apart when the process reaches cv_camera_node or that what I think.
Here is a log of the Error

[ 80%] Building CXX object sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/src/cv_camera_nodelet.cpp.o [ 80%] Built target autopilot_generate_messages_cpp [ 80%] Built target autopilot_generate_messages_py [ 86%] Built target rosbridge_library_generate_messages_cpp [ 93%] Built target rosbridge_library_generate_messages_py [100%] Built target rosbridge_library_generate_messages_lisp [100%] Built target autopilot_generate_messages_eus [100%] Built target autopilot_generate_messages_lisp [100%] Built target object_detection_generate_messages [100%] Built target simulation_generate_messages [100%] Built target segmentation_generate_messages /usr/bin/ld: cannot find -luv /usr/bin/ld: cannot find -luWS [100%] Built target rosapi_generate_messages [100%] Built target rosbridge_library_generate_messages collect2: error: ld returned 1 exit status localization/CMakeFiles/particle_filter.dir/build.make:139: recipe for target '/media/bazkleer/Fast_Stuff/Carla Stable/self-driving-golf-cart/ros/devel/lib/localization/particle_filter' failed make[2]: *** [/media/bazkleer/Fast_Stuff/Carla Stable/self-driving-golf-cart/ros/devel/lib/localization/particle_filter] Error 1 CMakeFiles/Makefile2:8821: recipe for target 'localization/CMakeFiles/particle_filter.dir/all' failed make[1]: *** [localization/CMakeFiles/particle_filter.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Built target autopilot_generate_messages /media/bazkleer/Fast_Stuff/Carla Stable/self-driving-golf-cart/ros/src/sensors/cv_camera/src/cv_camera_nodelet.cpp:80:24: error: expected constructor, destructor, or type conversion before ‘(’ token PLUGINLIB_DECLARE_CLASS(cv_camera, CvCameraNodelet, cv_camera::CvCameraNodelet, nodelet::Nodelet); ^ sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/build.make:62: recipe for target 'sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/src/cv_camera_nodelet.cpp.o' failed make[2]: *** [sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/src/cv_camera_nodelet.cpp.o] Error 1 CMakeFiles/Makefile2:6479: recipe for target 'sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/all' failed make[1]: *** [sensors/cv_camera/CMakeFiles/cv_camera_nodelet.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j12 -l12" failed

How to set config file to get sensor output in Rviz?

Document says:
There should be no sensor data yet. You can setup the vehicle configuration config/settings.yaml.

Can you please give me an example of this - like what changes I have to make in below file?

use_sim_time: true
carla:
the network connection for the python connection to CARLA
host: localhost
port: 2000
configuration values for the ego vehicle
ego_vehicle:
# the role name of the vehicle that acts as ego vehicle for this ros bridge instance
# (the vehicle from CARLA is selected which has the attribute 'role_name' set to this value
role_name: hero
# select the ego vehicle control mode:
# pedal: CarlaVehicleControl ROS messages from /carla/ego_vehicle/vehicle_control_cmd are forwarded
# to CARLA (this is the default)
# ackermann: AckermannDrive ROS messages from /carla/ego_vehicle/ackermann_cmd provide the target values, a
# cascaded PID controller tries to achieve
control_mode: ackermann
# override the default values of the pid speed controller
# (only relevant for ackermann control mode)
speed_Kp: 0.05
speed_Ki: 0.00
speed_Kd: 0.50
# override the default values of the pid acceleration controller
# (only relevant for ackermann control mode)
accel_Kp: 0.02
accel_Ki: 0.00
accel_Kd: 0.05
# set the minimum acceleration in (m/s^2)
# This border value is used to enable the speed controller which is used to control driving
# at more or less constant speed.
# If the absolute value of the ackermann drive target acceleration exceeds this value,
# directly the input acceleration is controlled
min_accel: 1.0

Can the mapping method used in this library be built in the Carla simulator?

Hello.
I am very interested in your project.
I found that the actual auto-driving function was implemented in the project using traditional auto-driving methods (such as sensing, planning, and control), but it was not implemented in the Carla simulator. Is the method you use available in the Carla simulator? For example, can you map with rtabamp in the Carla simulator, and if so, what should I do?

Documentation outdated

Here are the following sections that need to be added or updated on the documentation website.

  • Drive by Wire
    • Steering hardware setup
    • Braking hardware setup
    • Accelerator control
  • Navigation
    • Mapping with rtabmap
    • Path planning
    • Parameter
  • Behavior Control
    • Steering command actuation
    • Linear velocity command actuation

Unsucessfull catkin_make

ROS Kinetic
Ubuntu 16.04
CUDA 10.1

Hi,

I just got to know about this repository and seems very interesting for me, but I cannot build the ws at all, neither do I find any instruction how to install dependencies.

Thanks in advance!

[ 48%] Generating EusLisp code from simulation/EgoVehicleControlTarget.msg
Scanning dependencies of target object_detection_generate_messages_py
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/vehicle_init_pose.cpp:17:38: fatal error: mapping/set_initial_pose.h: No such file or directory
compilation terminated.
navigation/mapping/CMakeFiles/vehicle_init_pose.dir/build.make:62: recipe for target 'navigation/mapping/CMakeFiles/vehicle_init_pose.dir/src/vehicle_init_pose.cpp.o' failed
make[2]: *** [navigation/mapping/CMakeFiles/vehicle_init_pose.dir/src/vehicle_init_pose.cpp.o] Error 1
CMakeFiles/Makefile2:8609: recipe for target 'navigation/mapping/CMakeFiles/vehicle_init_pose.dir/all' failed
make[1]: *** [navigation/mapping/CMakeFiles/vehicle_init_pose.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 49%] Generating Python from MSG object_detection/DetectionResults
[ 50%] Generating Python from MSG object_detection/DetectionResult
[ 50%] Built target object_detection_generate_messages_nodejs
[ 50%] Built target segmentation_generate_messages_eus
[ 50%] Generating Python msg init.py for object_detection
[ 50%] Built target simulation_generate_messages_cpp
[ 50%] Built target object_detection_generate_messages_py
[ 50%] Built target simulation_generate_messages_eus
[ 51%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/mapping/robot_pose_publisher
[ 51%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/joy/joy_node
In file included from /usr/include/c++/5/chrono:35:0,
from /home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp:24:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^
[ 51%] Built target joy_node
In file included from /usr/include/c++/5/chrono:35:0,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:27:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^
[ 51%] Built target robot_pose_publisher
[ 52%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/path_planning/dynamic_navigation_goals
[ 53%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/path_planning/navigation_goals
[ 53%] Built target dynamic_navigation_goals
[ 53%] Built target navigation_goals
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp: In function ‘void cloud_callback_new(const PointCloud2ConstPtr&)’:
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:73:22: error: ISO C++ forbids declaration of ‘region_index’ with no type [-fpermissive]
for (const auto &region_index : region_indices){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:73:37: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const auto &region_index : region_indices){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:75:26: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
if (region_index.indices.size () > 1000){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:77:49: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
for (size_t j = 0; j < region_index.indices.size (); j++){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:79:69: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
pcl::PointXYZ ground_pt (cloud->points[region_index.indices[j]].x,
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:80:69: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
cloud->points[region_index.indices[j]].y,
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:81:69: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
cloud->points[region_index.indices[j]].z);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:83:51: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].g = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].g + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:83:122: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].g = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].g + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:84:50: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].r = 0;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:85:50: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].g = 255;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:86:50: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].b = 0;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:90:71: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
pcl::computeMeanAndCovarianceMatrix (cloud, region_index.indices, clust_cov, clust_centroid);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:116:51: error: no matching function for call to ‘std::vectorpcl::PointIndices::push_back(const int&)’
inlier_indices.push_back (region_index);
^
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/format.hpp:17,
from /usr/include/boost/math/policies/error_handling.hpp:31,
from /usr/include/boost/math/special_functions/round.hpp:14,
from /opt/ros/kinetic/include/ros/time.h:58,
from /opt/ros/kinetic/include/ros/ros.h:38,
from /home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:5:
/usr/include/c++/5/bits/stl_vector.h:913:7: note: candidate: void std::vector<_Tp, Alloc>::push_back(const value_type&) [with Tp = pcl::PointIndices; Alloc = std::allocatorpcl::PointIndices; std::vector<Tp, Alloc>::value_type = pcl::PointIndices]
push_back(const value_type& x)
^
/usr/include/c++/5/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from ‘const int’ to ‘const value_type& {aka const pcl::PointIndices&}’
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:155:22: error: ISO C++ forbids declaration of ‘region_index’ with no type [-fpermissive]
for (const auto &region_index : region_indices){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:155:37: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const auto &region_index : region_indices){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:157:26: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
if (region_index.indices.size () > 1000){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:159:49: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
for (size_t j = 0; j < region_index.indices.size (); j++){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:162:55: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
if (ground_image->points[region_index.indices[j]].g == ground_image->points[region_index.indices[j]].b){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:162:106: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
if (ground_image->points[region_index.indices[j]].g == ground_image->points[region_index.indices[j]].b){
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:164:73: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
pcl::PointXYZ ground_pt (cloud->points[region_index.indices[j]].x,
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:165:73: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
cloud->points[region_index.indices[j]].y,
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:166:73: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
cloud->points[region_index.indices[j]].z);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:168:55: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].r = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].r + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:168:126: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].r = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].r + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:169:55: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].g = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].g + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:169:126: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
ground_image->points[region_index.indices[j]].g = static_castpcl::uint8_t ((cloud->points[region_index.indices[j]].g + 255) / 2);
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:170:54: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].r = 128;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:171:54: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].g = 128;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/ground_plane_detection.cpp:172:54: error: request for member ‘indices’ in ‘region_index’, which is of non-class type ‘const int’
label_image->points[region_index.indices[j]].b = 0;
^
In file included from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:11:0,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/TypeDefs.hpp:27:3: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class InterpolationMethods{
^
In file included from /opt/ros/kinetic/include/grid_map_core/GridMap.hpp:13:0,
from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:12,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/BufferRegion.hpp:26:3: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class Quadrant
^
/opt/ros/kinetic/include/grid_map_core/BufferRegion.hpp:35:3: error: ‘constexpr’ does not name a type
constexpr static unsigned int nQuadrants = 4;
^
/opt/ros/kinetic/include/grid_map_core/BufferRegion.hpp:35:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:12:0,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:60:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
GridMap(const GridMap&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:61:40: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
GridMap& operator=(const GridMap&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:62:18: error: expected ‘,’ or ‘...’ before ‘&&’ token
GridMap(GridMap&&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:62:24: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
GridMap(GridMap&&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:62:24: error: invalid constructor; you probably meant ‘grid_map::GridMap (const grid_map::GridMap&)’
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:63:29: error: expected ‘,’ or ‘...’ before ‘&&’ token
GridMap& operator=(GridMap&&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:63:35: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
GridMap& operator=(GridMap&&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:499:8: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
std::unordered_map<std::string, Matrix> data
;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:63:12: error: defaulted declaration ‘grid_map::GridMap& grid_map::GridMap::operator=(grid_map::GridMap)’
GridMap& operator=(GridMap&&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:63:12: error: does not match expected signature ‘grid_map::GridMap& grid_map::GridMap::operator=(grid_map::GridMap&)’
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:200:63: error: ‘InterpolationMethods’ is not a class or namespace
InterpolationMethods interpolationMethod = InterpolationMethods::INTER_NEAREST) const;
^
In file included from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:16:0,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/Polygon.hpp:25:3: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class TriangulationMethods {
^
/opt/ros/kinetic/include/grid_map_core/Polygon.hpp:173:73: error: ‘TriangulationMethods’ is not a class or namespace
std::vector triangulate(const TriangulationMethods& method = TriangulationMethods::FAN) const;
^
In file included from /opt/ros/kinetic/include/grid_map_core/iterators/iterators.hpp:13:0,
from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:17,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/iterators/CircleIterator.hpp:94:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr internalIterator
;
^
In file included from /opt/ros/kinetic/include/grid_map_core/iterators/iterators.hpp:14:0,
from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:17,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/iterators/EllipseIterator.hpp:103:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr internalIterator
;
^
In file included from /opt/ros/kinetic/include/grid_map_core/iterators/iterators.hpp:17:0,
from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:17,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/iterators/PolygonIterator.hpp:84:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr internalIterator;
^
In file included from /opt/ros/kinetic/include/grid_map_core/iterators/iterators.hpp:18:0,
from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:17,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/iterators/SlidingWindowIterator.hpp:28:3: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class EdgeHandling {
^
/opt/ros/kinetic/include/grid_map_core/iterators/SlidingWindowIterator.hpp:43:60: error: ‘EdgeHandling’ is not a class or namespace
const EdgeHandling& edgeHandling = EdgeHandling::CROP,
^
In file included from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:12:0,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_ros/message_traits.hpp:13:97: error: ‘>>’ should be ‘> >’ within a nested template argument list
struct Header<grid_map_msgs::GridMap, typename boost::enable_if<HasHeader<grid_map_msgs::GridMap>>::type>
^
/opt/ros/kinetic/include/grid_map_ros/message_traits.hpp:27:98: error: ‘>>’ should be ‘> >’ within a nested template argument list
struct FrameId<grid_map_msgs::GridMap, typename boost::enable_if<HasHeader<grid_map_msgs::GridMap>>::type>
^
/opt/ros/kinetic/include/grid_map_ros/message_traits.hpp:46:100: error: ‘>>’ should be ‘> >’ within a nested template argument list
struct TimeStamp<grid_map_msgs::GridMap, typename boost::enable_if<HasHeader<grid_map_msgs::GridMap>>::type>
^
In file included from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:15:0,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:28:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class StorageIndices {
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp: In function ‘bool grid_map::isRowMajor(const MultiArrayMessageType&)’:
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:45:76: error: ‘grid_map::StorageIndices’ is not a class or namespace
if (message.layout.dim[0].label == grid_map::storageIndexNames[grid_map::StorageIndices::Column]) return false;
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:46:81: error: ‘grid_map::StorageIndices’ is not a class or namespace
else if (message.layout.dim[0].label == grid_map::storageIndexNames[grid_map::StorageIndices::Row]) return true;
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp: In function ‘bool grid_map::matrixEigenCopyToMultiArrayMessage(const EigenType&, MultiArrayMessageType&)’:
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:97:47: error: ‘StorageIndices’ is not a class or namespace
m.layout.dim[0].label = storageIndexNames[StorageIndices::Row];
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:98:47: error: ‘StorageIndices’ is not a class or namespace
m.layout.dim[1].label = storageIndexNames[StorageIndices::Column];
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:100:47: error: ‘StorageIndices’ is not a class or namespace
m.layout.dim[0].label = storageIndexNames[StorageIndices::Column];
^
/opt/ros/kinetic/include/grid_map_ros/GridMapMsgHelpers.hpp:101:47: error: ‘StorageIndices’ is not a class or namespace
m.layout.dim[1].label = storageIndexNames[StorageIndices::Row];
^
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp: In function ‘void cloud_callback(const PointCloud2ConstPtr&)’:
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:88:14: error: ‘point’ does not name a type
auto point = temp_cloud->points[i];
^
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:90:36: error: ‘point’ was not declared in this scope
float pos_x = (round_float(point.x)) <= (12.0f) ? (round_float(point.x)) : (12.0);
^
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp: In function ‘int main(int, char*)’:
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:134:35: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
local_map = grid_map::GridMap({"elevation"});
^
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:134:48: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
local_map = grid_map::GridMap({"elevation"});
^
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:134:48: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
/home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:134:48: error: no matching function for call to ‘grid_map::GridMap::GridMap()’
In file included from /opt/ros/kinetic/include/grid_map_core/grid_map_core.hpp:12:0,
from /opt/ros/kinetic/include/grid_map_ros/grid_map_ros.hpp:11,
from /home/ocp/self-driving-golf-cart/ros/src/navigation/mapping/src/build_map.cpp:29:
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:60:3: note: candidate: grid_map::GridMap::GridMap(const grid_map::GridMap&)
GridMap(const GridMap&) = default;
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:60:3: note: no known conversion for argument 1 from ‘’ to ‘const grid_map::GridMap&’
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:55:3: note: candidate: grid_map::GridMap::GridMap()
GridMap();
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:55:3: note: candidate expects 0 arguments, 1 provided
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:50:3: note: candidate: grid_map::GridMap::GridMap(const std::vector<std::__cxx11::basic_string >&)
GridMap(const std::vectorstd::string& layers);
^
/opt/ros/kinetic/include/grid_map_core/GridMap.hpp:50:3: note: no known conversion for argument 1 from ‘’ to ‘const std::vector<std::__cxx11::basic_string >&’
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp: In function ‘void cloud_callback(const PointCloud2ConstPtr&)’:
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp:67:18: error: ‘index’ does not name a type
auto index = i * segmentation_image.cols + j;
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp:68:46: error: invalid types ‘uchar* {aka unsigned char*}[]’ for array subscript
if (segmentation_image.data[index] == 255)
^
/home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp:69:49: error: no matching function for call to ‘std::vector::push_back()’
inliers->indices.push_back(index);
^
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/format.hpp:17,
from /usr/include/boost/math/policies/error_handling.hpp:31,
from /usr/include/boost/math/special_functions/round.hpp:14,
from /opt/ros/kinetic/include/ros/time.h:58,
from /opt/ros/kinetic/include/ros/ros.h:38,
from /home/ocp/self-driving-golf-cart/ros/src/point_cloud/src/rgb_segmentation_point_cloud.cpp:6:
/usr/include/c++/5/bits/stl_vector.h:913:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::value_type = int]
push_back(const value_type& __x)
^
/usr/include/c++/5/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from ‘’ to ‘const value_type& {aka const int&}’
[ 54%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/point_cloud/planar_segmentation
[ 54%] Built target planar_segmentation
[ 56%] Linking CXX executable /home/ocp/self-driving-golf-cart/ros/devel/lib/point_cloud/point_cloud_transform
[ 56%] Built target point_cloud_transform
navigation/mapping/CMakeFiles/build_map.dir/build.make:62: recipe for target 'navigation/mapping/CMakeFiles/build_map.dir/src/build_map.cpp.o' failed
make[2]: *** [navigation/mapping/CMakeFiles/build_map.dir/src/build_map.cpp.o] Error 1
CMakeFiles/Makefile2:8775: recipe for target 'navigation/mapping/CMakeFiles/build_map.dir/all' failed
make[1]: *** [navigation/mapping/CMakeFiles/build_map.dir/all] Error 2
point_cloud/CMakeFiles/ground_plane_detection.dir/build.make:62: recipe for target 'point_cloud/CMakeFiles/ground_plane_detection.dir/src/ground_plane_detection.cpp.o' failed
make[2]: *** [point_cloud/CMakeFiles/ground_plane_detection.dir/src/ground_plane_detection.cpp.o] Error 1
CMakeFiles/Makefile2:7226: recipe for target 'point_cloud/CMakeFiles/ground_plane_detection.dir/all' failed
make[1]: *** [point_cloud/CMakeFiles/ground_plane_detection.dir/all] Error 2
point_cloud/CMakeFiles/rgb_segmentation_point_cloud.dir/build.make:62: recipe for target 'point_cloud/CMakeFiles/rgb_segmentation_point_cloud.dir/src/rgb_segmentation_point_cloud.cpp.o' failed
make[2]: *** [point_cloud/CMakeFiles/rgb_segmentation_point_cloud.dir/src/rgb_segmentation_point_cloud.cpp.o] Error 1
CMakeFiles/Makefile2:7263: recipe for target 'point_cloud/CMakeFiles/rgb_segmentation_point_cloud.dir/all' failed
make[1]: *** [point_cloud/CMakeFiles/rgb_segmentation_point_cloud.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Hardcoded path

Hi, some of the Makefile paths are hardcoded causes installation problem on other machine.

~/Desktop/self-driving-golf-cart/ros/Makefile

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/neil/Workspace/self-driving-golf-cart/ros/src

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/neil/Workspace/self-driving-golf-cart/ros/src

Could not find a package configuration file provided by "derived_object_msgs"

Am getting error on running catkin_make
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"derived_object_msgs" with any of the following names:

derived_object_msgsConfig.cmake
derived_object_msgs-config.cmake

Add the installation prefix of "derived_object_msgs" to CMAKE_PREFIX_PATH
or set "derived_object_msgs_DIR" to a directory containing one of the above
files. If "derived_object_msgs" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
simulation/CMakeLists.txt:5 (find_package)

Ubuntu: 18.04
Ros: Melodic

Tried to do below step:
sudo apt-get install ros-melodic-derived-object-sensor-msgs

It says:
E: Unable to locate package ros-melodic-derived-object-sensor-msgs

Any idea how to fix?

Question in the mapping package ?

Hello.
I found that there is some launch files being used for mapping which use the rtabmap_ros package,what is the function of build_map node in the mapping package?

[Solved] ValueError: 'geodesy/sphere.pyx' doesn't match any files

While installing the geodesy package, I get the following error:

Collecting geodesy==1.1 (from -r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/a9/09/09f530aa98cea743e0b999a3a2ec13fb3e99aecfaee60ce2e1ed43f21a8d/geodesy-1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-lZieNc/geodesy/setup.py", line 38, in <module>
        ext_modules=cythonize(extensions),
      File "/home/hkpatel/.local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 967, in cythonize
        aliases=aliases)
      File "/home/hkpatel/.local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 812, in create_extension_list
        for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
      File "/home/hkpatel/.local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 111, in nonempty
        raise ValueError(error_msg)
    ValueError: 'geodesy/sphere.pyx' doesn't match any files

Solved it by installing the package directly from the git repo:

 pip install cython numpy
 pip install git+git://github.com/xolive/geodesy.git

Could not find a package configuration file provided by "nodelet"

Hi, this project is interesting I wanted to try running on my machine but I have some trouble setting up. When I ran catkin_make this error shows up, I already installed nodelet but the error still persist

Base path: /home/overlapjho/Desktop/golf/ros
Source space: /home/overlapjho/Desktop/golf/ros/src
Build space: /home/overlapjho/Desktop/golf/ros/build
Devel space: /home/overlapjho/Desktop/golf/ros/devel
Install space: /home/overlapjho/Desktop/golf/ros/install
####
#### Running command: "make cmake_check_build_system" in "/home/overlapjho/Desktop/golf/ros/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/overlapjho/Desktop/golf/ros/src/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/overlapjho/Desktop/golf/ros/src/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.14
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 12 packages in topological order:
-- ~~  - gps
-- ~~  - segmentation
-- ~~  - lane_detection
-- ~~  - object_detection
-- ~~  - cv_camera
-- ~~  - autopilot
-- ~~  - data_logger
-- ~~  - driver
-- ~~  - localization
-- ~~  - osm_cartography
-- ~~  - path_planning
-- ~~  - simulation
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'gps'
-- ==> add_subdirectory(sensors/gps)
-- +++ processing catkin package: 'segmentation'
-- ==> add_subdirectory(segmentation)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- segmentation: 1 messages, 0 services
-- +++ processing catkin package: 'lane_detection'
-- ==> add_subdirectory(detection/lane_detection)
-- +++ processing catkin package: 'object_detection'
-- ==> add_subdirectory(detection/object_detection)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- object_detection: 2 messages, 0 services
-- +++ processing catkin package: 'cv_camera'
-- ==> add_subdirectory(sensors/cv_camera)
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "nodelet" with any
  of the following names:

    nodeletConfig.cmake
    nodelet-config.cmake

  Add the installation prefix of "nodelet" to CMAKE_PREFIX_PATH or set
  "nodelet_DIR" to a directory containing one of the above files.  If
  "nodelet" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  sensors/cv_camera/CMakeLists.txt:4 (find_package)


-- Could not find the required component 'nodelet'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "nodelet" with any
  of the following names:

    nodeletConfig.cmake
    nodelet-config.cmake

  Add the installation prefix of "nodelet" to CMAKE_PREFIX_PATH or set
  "nodelet_DIR" to a directory containing one of the above files.  If
  "nodelet" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  sensors/cv_camera/CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/overlapjho/Desktop/golf/ros/src/CMakeFiles/CMakeOutput.log".
See also "/home/overlapjho/Desktop/golf/ros/src/CMakeFiles/CMakeError.log".
Makefile:2280: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

QUESTION ABOUT NAVIGATION

IS YOUR VEHICLE CREATES A MAP AND LOCALIZES IN IT AND THEN NAVIGATE IN IT OR IT WILL NAVIGATE IN REAL TIME AND STORES MAP?
IS IT SELF DRIVING OR USES ROS NAVIGATION STACK?
I WANT TO USE REAL TIME NAVIGATION WITHOUT CREATION OF MAP BUT NOT SELF DRIVING JUST TO FOLLOW A TARGET OBJECT IT NEEDS TO TAKE A PATH AVOIDING OBSTACLES WITH ONBOARD SENSORS AND USING PATH PLANNING ALGORITHMS BUT I DON'T WANT TO CREATE A MAP INITIALLY TO USE AMCL.
AND ONE MORE IMPORTANT THING YOU GUYS DIDN'T WRITE HARDWARE INTERFACE NODE THEN HOW THE NAVIGATION STACK IS WORKING HOW THE VELOCITY IS TRANSFERRED AND RVIZ IS UPDATING THE CURRENT POSE OF VEHICLE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.