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

[PN-126] Combine spot_driver and spot_driver_cpp #241

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

gbrooks-bdai
Copy link
Contributor

@gbrooks-bdai gbrooks-bdai commented Jan 25, 2024

PN-126 Move driver python code and rename but not configs and launch

PN-126 Move configs and launch

Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

Copy link
Contributor

@jschornak-bdai jschornak-bdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • There are a few uses of the old spot_driver_cpp package name in spot_driver/launch/spot_driver.launch.py that'll need to be updated. Right now the driver doesn't launch because it's looking for the nodes in spot_driver_cpp instead of spot_driver.
  • The C++ header files in spot_driver/include/spot_driver_cpp should be moved to spot_driver/include/spot_driver. This will be fairly annoying since all the uses of these headers in the C++ code will need to be updated too, but I think it's a requirement/expectation for this directory to have a name that matches its package.

spot_driver/package.xml Outdated Show resolved Hide resolved
@gbrooks-bdai
Copy link
Contributor Author

Interesting that things are still building and tests aren't failing

@gbrooks-bdai
Copy link
Contributor Author

oh, I see why. My bad

@gbrooks-bdai gbrooks-bdai force-pushed the pn-126-combine-spot-driver branch from 3bde36d to 4ac5822 Compare February 2, 2024 22:03
@gbrooks-bdai
Copy link
Contributor Author

Ok @jschornak-bdai , can you check again?

Copy link
Collaborator

@tcappellari-bdai tcappellari-bdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to start the driver like I usually would but am getting errors (sounds like a launch file has some formatting error that causes some TF errors down the line or something -> nevermind the TF errors are still there there when im testing something else but they dont stop the driver from actually starting properly like this error seems to

[INFO] [launch]: All log files can be found below /home/tcappellari/.ros/log/2024-02-05-15-18-51-093711-tcappellari-LT-46083
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [spot_ros2-1]: exception occurred while executing process:
Traceback (most recent call last):
  File "/opt/ros/humble/lib/python3.10/site-packages/launch/actions/execute_local.py", line 546, in __execute_process
    transport, self._subprocess_protocol = await async_execute_process(
  File "/opt/ros/humble/lib/python3.10/site-packages/osrf_pycommon/process_utils/async_execute_process_asyncio/impl.py", line 139, in async_execute_process
    transport, protocol = await _async_execute_process_nopty(
  File "/opt/ros/humble/lib/python3.10/site-packages/osrf_pycommon/process_utils/async_execute_process_asyncio/impl.py", line 45, in _async_execute_process_nopty
    transport, protocol = await loop.subprocess_exec(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1681, in subprocess_exec
    transport = await self._make_subprocess_transport(
  File "/usr/lib/python3.10/asyncio/unix_events.py", line 207, in _make_subprocess_transport
    transp = _UnixSubprocessTransport(self, protocol, args, shell,
  File "/usr/lib/python3.10/asyncio/base_subprocess.py", line 36, in __init__
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "/usr/lib/python3.10/asyncio/unix_events.py", line 799, in _start
    self._proc = subprocess.Popen(
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1751, in _execute_child
    self._posix_spawn(args, executable, env, restore_signals,
  File "/usr/lib/python3.10/subprocess.py", line 1696, in _posix_spawn
    self.pid = os.posix_spawn(executable, args, env, **kwargs)
OSError: [Errno 8] Exec format error: '/workspaces/bdai/_build/install/spot_driver/lib/spot_driver/spot_ros2'

Copy link
Collaborator

@tcappellari-bdai tcappellari-bdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gbrooks-bdai gbrooks-bdai force-pushed the pn-126-combine-spot-driver branch from 882bc91 to f7fb7e3 Compare February 5, 2024 22:18
Copy link
Contributor

@jschornak-bdai jschornak-bdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One very minor little thing and then I think this is all set:

spot_driver/README.md Outdated Show resolved Hide resolved
@gbrooks-bdai gbrooks-bdai force-pushed the pn-126-combine-spot-driver branch from 900c985 to ce27954 Compare February 5, 2024 23:56
@gbrooks-bdai gbrooks-bdai force-pushed the pn-126-combine-spot-driver branch from ce27954 to 31bc64d Compare February 6, 2024 16:17
@gbrooks-bdai gbrooks-bdai merged commit 4e095b2 into main Feb 6, 2024
5 checks passed
@gbrooks-bdai gbrooks-bdai deleted the pn-126-combine-spot-driver branch February 6, 2024 16:24
Copy link
Contributor Author

Merge activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants