Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken version.h file #3004

Open
saikishor opened this issue Sep 18, 2024 · 0 comments
Open

Broken version.h file #3004

saikishor opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@saikishor
Copy link

Description

root@417ad4e895ce:/# cat /opt/ros/rolling/include/moveit_core/moveit/version.h 

/*********************************************************************
* Software License Agreement (BSD License)
*
*  Copyright (c) 2013, Willow Garage, Inc.
*  All rights reserved.
*
*  Redistribution and use in source and binary forms, with or without
*  modification, are permitted provided that the following conditions
*  are met:
*
*   * Redistributions of source code must retain the above copyright
*     notice, this list of conditions and the following disclaimer.
*   * Redistributions in binary form must reproduce the above
*     copyright notice, this list of conditions and the following
*     disclaimer in the documentation and/or other materials provided
*     with the distribution.
*   * Neither the name of the Willow Garage nor the names of its
*     contributors may be used to endorse or promote products derived
*     from this software without specific prior written permission.
*
*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
*  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
*  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
*  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
*  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
*  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
*  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
*  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
*  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
*  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
*  POSSIBILITY OF SUCH DAMAGE.
*********************************************************************/

#pragma once

#define MOVEIT_VERSION_STR "..-devel"

#define MOVEIT_VERSION_MAJOR 
#define MOVEIT_VERSION_MINOR 
#define MOVEIT_VERSION_PATCH 

#define MOVEIT_GIT_NAME ""
#define MOVEIT_GIT_COMMIT_HASH ""

/// MOVEIT_VERSION is (major << 16) + (minor << 8) + patch.
#define MOVEIT_VERSION MOVEIT_VERSION_CHECK(MOVEIT_VERSION_MAJOR, MOVEIT_VERSION_MINOR, MOVEIT_VERSION_PATCH)

/// Use like: #if MOVEIT_VERSION >= MOVEIT_VERSION_CHECK(1, 0, 0)
#define MOVEIT_VERSION_CHECK(major, minor, patch) ((major << 16) | (minor << 8) | (patch))

it seems like the version.h is not properly defined at all. I believe it should have the proper numbers from the respective tags.

The issue is observed in Iron, Rolling as well as jazzy. I suspect the problem is after this change: f6d9aa4

One more thing, the verison.h in Humble is placed in /opt/ros/humble/include/moveit/version.h and the one of rolling and iron are placed in moveit_core/moveit/version.h , I think it is better to unify it for better reusing between distros

ROS Distro

Iron

OS and version

Ubuntu 22.04

Source or binary build?

Binary

If binary, which release version?

2.8.0 (The issue could be from 2.7.0)

If source, which branch?

No response

Which RMW are you using?

None

Steps to Reproduce

cat /opt/ros/rolling/include/moveit_core/moveit/version.h

Expected behavior

Properly defined

#define MOVEIT_VERSION_MAJOR 2
#define MOVEIT_VERSION_MINOR 10
#define MOVEIT_VERSION_PATCH 0

### Actual behavior

#define MOVEIT_VERSION_MAJOR
#define MOVEIT_VERSION_MINOR
#define MOVEIT_VERSION_PATCH

Backtrace or Console output

No response

@saikishor saikishor added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant